Pascal and PHP

From Lazarus wiki

If you're a Delphi user, Serge Perevoznyk's PHP4Delphi ( is everything you'll need for integrating your Pascal and PHP code. PHP4Delphi is even used in CodeGear's Delphi for PHP IDE.

If you're a Lazarus user, a subset of the PHP API for creating PHP extensions (libraries) with Pascal is available as part of the PHP Toolkit. A forum with additional links is here:

With the PHP Toolkit you can also convert your Delphi and Lazarus form design files (.dfm/.lfm) to VCL for PHP files, as well as configure Lazarus for use as a PHP IDE.