Edit Create extension


There is a simple way to develop a extension library for JPHP. To do that, you need Gradle build system.

Create a build.gradle:

apply plugin: 'java'

repositories {
   jcenter()
   mavenCentral()
}

dependencies {
   compile 'org.develnext:jphp-runtime:0.7+'
}

Also you need to create the JPHP-INF/extensions.list file with full names of your Extension classes (read about it here: For Contributors), for example:

in extensions.list

com.example.my.ext.MyExtension1
com.example.my.ext.MyExtension2

The JPHP Launcher will use this config to load and register your extensions automatically if they declares in the dependencie’s section.