Example conversion of laravel done by the Runtime Converter (RuntimeConverter.com)
cd laravel-converted
./gradlew bootRun
- In browser navigate to http://localhost:8080/public/index.php
Currently works on Mac OS and Linux. JNI binaries are downloaded via gradle.
Requires JVM 8+ installed.
Requires PHP extensions not yet distributed with maven or converted to Java.
/laravel contains the INPUT files (PHP)
/laravel-converted contains the OUTPUT files (Java)
The code in this repository is licensed via MIT license, but note that this does not cover modules downloaded by gradle, including runtimeconverterlib. The license for runtimeconverterlib can be found by converting a file or project at php2java.com. This codebase is an EXAMPLE of what the the RuntimeConverter is capable of and is NOT inteded for any other purpose. To discuss the conversion of projects using laravel, visit runtimeconverter.com.
The output at "http://localhost:8080/public/index.php" is the standard laravel welcome screen.
The code in this repository is converted from MULTIPLE sources gathered together by the "composer.json" file in the laravel project. The source code for the INPUT code is provided inside of the folder "larvel" and subtree. See laravel/vendor. Additionally, the provision of MIT license for this code is only for the translated work and is still subject to the licenses provided by each INPUT file.
Laravel uses a generated code cache that was converted with the project to avoid having to convert php to java at runtime. The file "Compiler.java" (Illuminate/View/Compilers) has been modified to use relative paths and avoid code cache expiration. The input code is otherwise not modified.