© 2017 RuntimeConverter

February 1, 2019

January 23, 2019

Please reload

Recent Posts

About 2 weeks ago, we published that we had successfully converted a PHPUnit example project and it ran just the same as if it had been run with PHP....

PHPUnit [Beta] Full-Native Java Test Results

June 11, 2018

1/3
Please reload

Featured Posts

Adding Gradle and Spring Boot

September 27, 2017

Along with speed improvements and namespaces, the next version of the runtime converter will also feature support for gradle and spring boot. Previous versions created annotated servlet classes to represent php file routes. After conversion, it was up to the user to structure the project files, build and deploy. With version 2.0, we create these same servlet files, but also include a "build.gradle" build file and a Spring Boot "SpringBootApplication" class. As a result, if the conversion was 100% successful, it can be run immediately either as server or CLI tool.

 

We've created a maven repository to hold the "Runtime Converter Library" dependency, along with its JNI library components for MacOS and Ubuntu. We don't do any special refactoring to take advantage of the Spring framework - its just working as server, but you can certainly use the Spring framework to develop your converted project.

 

To load a web server from a completed conversion, just install gradle and execute the command:

 

gradle bootRun

 

To run a converted project as if it were a PHP CLI script, execute:

 

gradle -q executeCLI -DruntimeConverterScriptName="/test.php" -DruntimeConverterWorkingPath="/"

 

Where "/test.php" is the virtual path to your include, and "/" is the virtual working path. You can use the servlet annotations as a reference to the virtual path system, which is based off your uploaded .zip file structure.

Share on Facebook
Share on Twitter
Please reload

Follow Us
Please reload

Search By Tags
Please reload

Archive
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square