Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

TPHP

Engine for running PHP code with VCL support

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

TPHP

PHP Engine written in Pascal. PHP version required 5.3+ and up. This engine is based on CodeThurst.

Some ZendApi functions were taken from the PHP4Delphi repository and some gui_ functions (like gui_methodParams, gui_propType) from SoulEngine repo.

Building

RAD Studio version: 10.3 Rio.

  1. Open TPHP.dproj or TPHP.dpr in your RAD Studio.
  2. Click Project->Compile, Completed!, Executable file will be located in the "build/executables" path.
  3. It remains only to put php5ts.dll version 5.3 and up and above near TPHP.exe. PHP 5.6.40 is present by default.

Runing

By default (when no params) engine run file "core/include.php". To run other file you can execute the command:

bat
TPHP.exe <path/to/php.script>

Comand line interface

If you need to display help message, you can execute the command:

bat
TPHP.exe -h