Giter VIP home page Giter VIP logo

androidphp's Introduction

AndroidPHP

select language

select version(coming soon)

Android 4-6(and more)

This is a php binary for PocketMine-MP.
For using it on Android, need a terminal emulator.

note

This php binary is for 64bit.
Please note that 32bit will not work.
This method has been tested on Android6 and Raspberry Pi 3b only and may not work on newer Android versions.

This php binary can still connect to the Internet.
Also, the Raspberry Pi can connect to the Internet as is.
To connect to the Internet on Android, you need to prepare resolv.conf and cacert.pem, which can be found in the download link in the description below.
To run the server on Android, you need to prepare PMMP by yourself.

Required Applications

In this section, we will use "Android Terminal Emulator" as a terminal emulator.

https://play.google.com/store/apps/details?id=jackpal.androidterm

Installing php

Download php

The PHP can be downloaded from the This release page.

img1

Installing php

Please execute the following command.
To paste text from the clipboard, press and hold the screen in the "Android Terminal Emulator" application, and please select "Paste".

cp /storage/emulated/0/Download/php /data/data/jackpal.androidterm/app_HOME/php
chmod 777 /data/data/jackpal.androidterm/app_HOME/php

Download various files to connect to the Internet

Please Download the various files (resolv.conf, cacert.pem, php.ini) from the following download links.

direct downloads

Placing the various files

Please copy all the downloaded files cacert.pem, resolv.conf, and php.ini to the /storage/emulated/0/PocketMine/config/ folder.

Install PocketMine-MP

Please download "PocketMine-MP.phar" from the following link and copy it to "/storage/emulated/0/PocketMine/". https://github.com/pmmp/PocketMine-MP/releases/latest/download/PocketMine-MP.phar

launch PocketMine-MP

Launch "Android Terminal Emulator" downloaded from Google Play, and execute the following command.

cd /storage/emulated/0/PocketMine/
env LESMI_RESOLV_CONF_DIR=/storage/emulated/0/PocketMine/config/resolv.conf SSL_CERT_FILE=/storage/emulated/0/PocketMine/config/cacert.pem /data/data/jackpal.androidterm/app_HOME/php -c /storage/emulated/0/PocketMine/config/php.ini /storage/emulated/0/PocketMine/PocketMine-MP.phar

The LESMI_RESOLV_CONF_DIR environment variable is created by the modified musl (gcc).


Other information

A url that links directly to the latest binary.
pm3
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php-gd
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php-gd-no-modification
pm3-zip
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php.zip
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/zip-php-gd.zip
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/zip-php-gd-no-modification.zip
php.ini
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php-pm4.ini
pm4
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php-pm4-gd
pm4-zip
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php-pm4-gd.zip
php.ini
https://github.com/DaisukeDaisuke/AndroidPHP/releases/latest/download/php.ini

androidphp's People

Contributors

daisukedaisuke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

androidphp's Issues

version.txt

I will release a "version.txt" text file with "8.0.11" in it to make it easier to check for php versions and updates.
I use the preg_match function to extract the version, and release it with options such as "-fix" removed from the tag name.

Thanks bro

Bro thanks you saved my life
❤️❤️

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.