API References¶
-
Complete Documentation
Comprehensive guides for all PhpSPA APIs and utilities
-
Code Examples
Practical examples for every feature
-
Best Practices
Learn the recommended patterns and techniques
-
Always Current
Updated documentation for the latest version
HTTP & Networking¶
-
Response API
Build and customize HTTP responses with fluent API
-
useFetch Hook
Async HTTP client with parallel execution support
Helpers & Utilities¶
-
fmt() Helper
Type-safe prop passing with automatic serialization
-
File Import Utility
Secure file imports with validation and metadata
Performance¶
-
Native Compression (C++ FFI)
Enable lightning-fast HTML/CSS/JS minification with the C++ compressor
Browse by Category¶
| Hook | Description | Version |
|---|---|---|
useFetch() | Async HTTP client with parallel execution | v2.0.1 |
useState() | Reactive state management | v2.0.0 |
useEffect() | Side effects and lifecycle hooks | v2.0.0 |
useFunction() | Call PHP functions from JavaScript | v1.1.5 |
| Helper | Description | Version |
|---|---|---|
fmt() | Type preservation for component props | v2.0.1 |
import() | Secure file imports | v1.1.0 |
response() | HTTP response builder | v1.1.8 |
router() | Router instance access | v1.1.8 |
| Component | Description | Version |
|---|---|---|
<Component.Link> | Client-side navigation | v1.1.0 |
<Component.Csrf> | CSRF token management | v1.1.5 |
<Component.Navigate> | Programmatic navigation | v1.1.0 |
| Feature | Description | Version |
|---|---|---|
| Native Compression (C++ FFI) | Lightning-fast HTML/CSS/JS minification | v2.0.3 |