PHPackages                             dconco/phantom-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dconco/phantom-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dconco/phantom-php
==================

A PHP android web server for the Acode app, allowing you to serve your PHP applications both locally and share them online. It boasts fast performance and high reliability.

v1.0.3(1y ago)3721MITShell

Since Nov 18Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/codetesla51/phantom-php)[ Packagist](https://packagist.org/packages/dconco/phantom-php)[ Docs](https://github.com/codetesla51/phantom-php)[ RSS](/packages/dconco-phantom-php/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

 [![Version](https://camo.githubusercontent.com/ac0e6350bd1a747fd6c3ffa64781612d3997df0c837a082a30d7af82a79ee225/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302d626c7565)](https://camo.githubusercontent.com/ac0e6350bd1a747fd6c3ffa64781612d3997df0c837a082a30d7af82a79ee225/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302d626c7565) [![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)

 [![PhantomPHP Server Screenshot](https://raw.githubusercontent.com/codetesla51/phantom-php/refs/heads/main/icon.png)](https://raw.githubusercontent.com/codetesla51/phantom-php/refs/heads/main/icon.png)

---

Table of Contents
-----------------

[](#table-of-contents)

- [Overview](#overview)
- [Key Features](#key-features)
- [Installing PhantomPHP](#installing-phantomphp)
    - [Installation Requirements](#installation-requirements)
    - [Installation Steps](#installation-steps)
- [Usage](#usage)
    - [Serving](#serving)
    - [Port Selection](#port-selection)
    - [Port Forwarding](#port-forwarding)
    - [Direct File Running in PHP](#direct-file-running-in-php)
    - [Further Help](#further-help)
- [Contributing](#contributing)
- [License](#license)

---

Overview
--------

[](#overview)

**PhantomPHP** is a PHP web server for Android, designed for use with the Acode app, enabling you to run and share PHP and MySQL applications from your device. It’s built to provide fast performance, high reliability, and easy integration with MySQL databases for powerful, dynamic web development.

Key Features
------------

[](#key-features)

- **PHP Serving**: Run PHP files directly from Acode.
- **Port Forwarding**: Share your local server with others securely.
- **Direct PHP File Execution**: Execute files without additional configuration.
- **Seamless Fast Auto Installation Integration**: Quick automatic setup, you don't have to do much.
- **MySQLi and phpMyAdmin Support**: Manage databases with ease.
- **Custom Port Selection**: Choose your preferred port.
- **User-Friendly Interface**: Optimized for ease of use.

---

Installing PhantomPHP
---------------------

[](#installing-phantomphp)

To install PhantomPHP on your Android device, you’ll need the following prerequisites:

### Installation Requirements

[](#installation-requirements)

1. **Termux**:
    A powerful Linux terminal emulator for Android, available on [F-Droid](https://f-droid.org) and [GitHub](https://github.com/termux/termux-app/releases).
    This will allow you to run a Linux environment on your Android device.
2. **Acode**:
    A code editor for Android, available on the [Google Play Store](https://play.google.com/store).
    Ideal for editing and writing your code directly on your Android device.
3. **PHP (version 7.4 or above)**:
    Installable via Termux.
    PHP is required for running server-side scripts and applications.
4. **Composer**:
    A PHP package manager used for handling dependencies and libraries in PHP projects.
    You can install Composer in Termux to manage PHP packages.
5. **MariaDB**:
    A popular open-source database management system, forked from MySQL.
    Required for managing databases in your projects.
6. **phpMyAdmin**:
    A web-based tool for managing MySQL and MariaDB databases.
    It provides an easy-to-use interface for database administration.

### Installation Steps

[](#installation-steps)

1. **Install Termux**:

    - Download and install Termux from [F-Droid](https://f-droid.org) or the [Termux GitHub releases page](https://github.com/termux/termux-app/releases).
2. **Install Acode**:

    - Download and install Acode from the [Google Play Store](https://play.google.com/store).
3. **Install Composer**:

    - Open Termux and run the following commands to install Composer:

    ```
    pkg update
    pkg upgrade
    pkg install php
    pkg install curl
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/data/data/com.termux/files/usr/bin --filename=composer
    ```

    This will install **Composer** globally in Termux.
4. **Run Auto Installation Command**:

    - Once **Composer** is installed, copy and paste the following commands to automatically install and configure the required dependencies:

    ```
    composer global require dconco/phantom-php
    echo export PATH="$PATH:~/.composer/vendor/bin" >> ~/.profile
    phantom --install
    phantom -v
    ```
5. **Access phpMyAdmin**:

    - Use the `phantom` command to start the PHP server for phpMyAdmin access. Replace `` with the desired port number (e.g., 8080):

    ```
    phantom --db
    ```

Now, you should be able to access phpMyAdmin through your browser by navigating to `http://localhost:`.

### Testing

[](#testing)

To test your setup, navigate to your project directory and run the following command:

```
phantom -v
```

---

### Usage

[](#usage)

**Basic Usage Outline for PhantomPHP Server**

### Serving

[](#serving)

This is the basic way to serve your PHP project. It will run a local server with the default port 8000.

**example:**

```
cd /path/to/your-project-directory
phantom --serve
```

---

### Port Selection

[](#port-selection)

In case the default port 8000 is already in use, you can change the port by using the -p option followed by your desired port number (e.g., 8080).

**example**

```
phantom --serve 8080
```

#### This will run the local server on the selected port.

[](#this-will-run-the-local-server-on-the-selected-port)

---

### phpMyAdmin Initialization

[](#phpmyadmin-initialization)

To start both MySQL and phpMyAdmin for database interaction, you can specify a custom port with the -D flag. In this example, we use port 8880. If a port is already in use, the server will not run.

**example**

```
phantom --db 8880
```

---

### Port Forwarding

[](#port-forwarding)

Want to share your work with your team or friends? PhantomPHP allows you to forward your local server port and share it with others, including SSL certification for a secure connection. Use the -f flag to enable port forwarding.

**example**

```
phantom -serve 8080 -f
#or use --forward
```

#### This will run the local server on port 8080 and forward the port for others to access.

[](#this-will-run-the-local-server-on-port-8080-and-forward-the-port-for-others-to-access)

---

### Direct File Running in PHP

[](#direct-file-running-in-php)

To quickly run your PHP file and get immediate output, you can use the following command without needing to add the `.php` extension. Simply provide the filename.

**Usage Example:**

```
phantom -run filename
```

#### For instance:

[](#for-instance)

```
phantom --run init
```

#### This will run the init.php file.

[](#this-will-run-the-initphp-file)

---

### Need Further Help?

[](#need-further-help)

If you're still having trouble, you can contact the repository owner or contributors for assistance. You can also email your issue to:

**Email:** ,

For additional command options, you can view the help menu with:

```
phantom --help
```

---

Contributing
------------

[](#contributing)

We welcome contributions! If you'd like to improve or fix something, please open an issue to start a discussion. Once your idea is approved, feel free to submit a pull request.

License
-------

[](#license)

#### This project is licensed under the \*\*MIT License\*\*, which allows you to freely use, modify, and distribute the code. See the `LICENSE` file for full details.

[](#this-project-is-licensed-under-the-mit-license-which-allows-you-tofreely-use-modify-and-distribute-the-code-see-the-license-file-for-fulldetails)

---

Leave a Star ⭐
--------------

[](#leave-a-star-)

If you find **PhantomPHP Server** useful, please consider leaving a star on the repository! Your support helps others discover the project and motivates us to keep improving it.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance48

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aff7e7d7d6268a283ff2f4968de6430a826972a58b9d719cdea57b98aaf5fdb2?d=identicon)[dconco](/maintainers/dconco)

---

Top Contributors

[![codetesla51](https://avatars.githubusercontent.com/u/149274873?v=4)](https://github.com/codetesla51 "codetesla51 (19 commits)")[![dconco](https://avatars.githubusercontent.com/u/118613296?v=4)](https://github.com/dconco "dconco (14 commits)")

---

Tags

Phantomphantom-phpPhantomPHPacode-plugin

### Embed Badge

![Health badge](/badges/dconco-phantom-php/health.svg)

```
[![Health](https://phpackages.com/badges/dconco-phantom-php/health.svg)](https://phpackages.com/packages/dconco-phantom-php)
```

###  Alternatives

[madebybob/php-number

Deal with numbers the right way

979.2k1](/packages/madebybob-php-number)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
