Download the PHP package syntaxx/phpx-starter-kit without Composer
On this page you can find all versions of the php package syntaxx/phpx-starter-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phpx-starter-kit
PHPX Starter Kit
React-like components in PHP, running in your browser via WebAssembly.
Build interactive web applications using familiar JSX syntax, component-based architecture, and React hooksβall in PHP!
Quick Start
Create a new PHPX project in seconds:
Open http://localhost:9999 and start building! π
Your First Component
Create interactive components with JSX syntax and React hooks:
That's it! You now have a fully interactive counter running PHP in your browser.
What You Get
β
JSX Syntax - Write <div> just like React
β
React Hooks - useState, state management
β
Component Architecture - Composable, reusable components
β
Event Handling - onClick, onChange, and more
β
Zero JavaScript - Everything is PHP (compiled to WebAssembly)
β
Fast Builds - Vendor caching, watch mode, live reload ready
Development Workflow
Edit your .phpx files in src/, save, and refresh your browser. Changes appear instantly!
Project Structure
Available Commands
| Command | Description |
|---|---|
composer wasm |
Build for production |
composer wasm:watch |
Auto-rebuild on file changes |
composer serve |
Start development server (auto-detects port from 9999) |
composer wasm:dev |
Development build with source maps |
How It Works
- Write Components - Create
.phpxfiles with JSX syntax - Compile - PHPX compiler transforms JSX β PHP
- Pack - WebAssembly packer bundles your app
- Run - PHP WebAssembly runtime executes in browser
- Interact - VRZNO bridge connects PHP β JavaScript/DOM
Result: Your PHP code runs entirely in the browser, no server required!
Learn More
- Full Documentation: docs.phpx.dev (coming soon)
- Examples: Check the
src/directory for more component examples - Framework Docs: See
vendor/syntaxx/phpx-framework/README.md - Build System: See
vendor/syntaxx/phpx-build-tools/README.md
Requirements
- PHP 8.4+ (for local development/builds)
- Composer (dependency management)
- Modern Browser with WebAssembly support (Chrome, Firefox, Safari, Edge)
Features
π― React-like Experience
- JSX syntax:
<button onClick={$handler}>Click me</button> - Hooks:
useState(), state management - Component composition and props
- Declarative UI updates
β‘ Fast Development
- Vendor caching (10-15s β 0.4s rebuilds)
- Watch mode with auto-rebuild
- Port auto-detection (no conflicts!)
- Source maps for debugging
Troubleshooting
Build errors?
Port already in use?
The serve command auto-detects available ports (9999 β 9998 β 9997...).
Browser not loading? Check browser console (F12) for errors. Ensure WebAssembly is supported.
Contributing
Found a bug? Have a feature idea? We'd love your contribution!
- Fork the repository
- Create a feature branch
- Submit a pull request
License
MIT License - See LICENSE file for details.
Acknowledgments
Built with:
- PHPX Framework - React-like components for PHP
- PHPX Compiler - JSX to PHP transformer
- PHPX BuildTools - Build system
- PHP WebAssembly Runtime - PHP in the browser
All versions of phpx-starter-kit with dependencies
syntaxx/wasm-php-runtime-vrzno Version 8.3.0
syntaxx/phpx-framework Version ^0.1.0