Skip to content

Latest commit

 

History

History
165 lines (125 loc) · 2.87 KB

README.md

File metadata and controls

165 lines (125 loc) · 2.87 KB

PhantomPHP

A Powerful PHP Development Server for Termux

Version License PHP Version


Run PHP & MySQL applications directly from your Android device

Features

Development Tools

  • PHP server with live reload
  • Direct file execution
  • Custom port selection
  • Automatic installation

Database Integration

  • Built-in MySQL support
  • phpMyAdmin interface
  • Database management tools
  • Secure connections

Prerequisites

Required Software:

  • Termux (F-Droid | GitHub)
  • PHP 7.4 or higher
  • Composer
  • MariaDB
  • phpMyAdmin

Installation

  1. Install PhantomPHP:
git clone https://github.com/codetesla51/phantomphp.git
cd phantomphp
chmod +x install
./install
  1. Verify Installation:
phantom -v

Usage Guide

Start PHP Server

# Default port (8000)
phantom --serve

# Custom port
phantom --serve 8080

Access Database

# Start phpMyAdmin
phantom --db 8080

# Access at: http://localhost:8080
# Username: root
# Password: root

Run PHP Files

# Run a PHP file
phantom --run filename

# Example
phantom --run init

Port Forwarding

# Start server with forwarding
phantom --serve 8080

# Press 'F' when prompted to enable forwarding

Command Reference

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

Security Notes

  • Always use strong passwords for database access
  • Enable port forwarding only when necessary
  • Keep Termux and all components updated
  • Use HTTPS when possible

Support

Need help? Contact us:

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Submit a pull request

License

This project is licensed under the MIT License. See LICENSE for details.


Found PhantomPHP helpful? Leave a star to show your support!

⭐ Star on GitHub