Download the PHP package dconco/phantom-php without Composer

On this page you can find all versions of the php package dconco/phantom-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phantom-php

Version License

PhantomPHP Server Screenshot


Table of Contents


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


Installing PhantomPHP

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

Installation Requirements

  1. Termux:
    A powerful Linux terminal emulator for Android, available on F-Droid and GitHub.
    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.
    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

  1. Install Termux:

  2. Install Acode:

  3. Install Composer:

    • Open Termux and run the following commands to install 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:
  5. Access phpMyAdmin:
    • Use the phantom command to start the PHP server for phpMyAdmin access. Replace <port> with the desired port number (e.g., 8080):

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

Testing

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


Usage

Basic Usage Outline for PhantomPHP Server

Serving

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

example:


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

This will run the local server on the selected port.


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


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

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


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:

For instance:

This will run the init.php file.


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: [email protected], [email protected]

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


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

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.


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.


All versions of phantom-php with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dconco/phantom-php contains the following files

Loading the files please wait ....