A Powerful PHP Development Server for Termux
Run PHP & MySQL applications directly from your Android device
Development Tools
|
Database Integration
|
Required Software:
- Install PhantomPHP:
git clone https://github.com/codetesla51/phantomphp.git
cd phantomphp
chmod +x install
./install
- Verify Installation:
phantom -v
# Default port (8000)
phantom --serve
# Custom port
phantom --serve 8080
# Start phpMyAdmin
phantom --db 8080
# Access at: http://localhost:8080
# Username: root
# Password: root
# Run a PHP file
phantom --run filename
# Example
phantom --run init
# Start server with forwarding
phantom --serve 8080
# Press 'F' when prompted to enable forwarding
Command | Description |
---|---|
--serve [port] |
Start PHP server (default: 8000) |
--db [port] |
Launch phpMyAdmin interface |
--run [file] |
Execute PHP file directly |
-v |
Display version information |
--help |
Show help menu |
- Always use strong passwords for database access
- Enable port forwarding only when necessary
- Keep Termux and all components updated
- Use HTTPS when possible
Need help? Contact us:
- Email: [email protected]
- GitHub Issues: Open an issue
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Submit a pull request
This project is licensed under the MIT License. See LICENSE for details.