Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

VenityStudio/jphp-android-old

Repository files navigation

The JPHP for Android Project

Build Status Venity project status Donate

Tools and libraries for building android apps on jphp

How it works ?

Plugin for jppm create compiled jar file from your php sources and dependencies. This jar file gets into gralde dependencies and gradle build your apk file.

How to install ?

Install the lasted version of jppm and JDK 8. Before install execute command jppm build

How to start new Android Project ?

Install the lasted version of Android SDK. Create new directory and execute commands:

jppm init                                                # adding app plugin
jppm remove jphp-core && jppm remove jphp-zend-ext       # remove not working dependencies
jppm add jppm-android-plugin --dev                       # add android plugin
jppm android:init                                        # init new android project

Building your project

To build your project use jppm android:compile --packageDebug command. You can find apk file in build\outputs\apk dir.

Project tree :

- .venity/
  - compiler.jar            # jphp compiler
- src/                   
  - main/                   # sources dir
     - jphp/                # php sources dir
        - index.php         # bootstrap php file
     - res/
        - ...           
     - AndroidManifest.xml  # android manifest (see android docs)
- vendor/                   # jppm dependencies
  - ....
- package.php.yml           # jppm project file
- build.gradle              # gradle build script
- gradlew
- gradlew.bat               # gradle starters

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published