tzmfreedom / phphp
PHP written by PHP
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tzmfreedom/phphp
Requires
- php: >=7.2
- nikic/php-parser: ^4.3
This package is auto-updated.
Last update: 2025-09-29 02:49:55 UTC
README
PHP written by PHP
Install
$ composer global require tzmfreedom/phphp
Usage
$ phphp /path/to/file
With Apache
-
Enable CGI
-
Put CGI Bridge code to your PATH
$ echo "$(which php) $(which phphp) \$1" > /usr/local/bin/phphp $ chmod +x /usr/local/bin/phphp
- Put your PHPHP code on CGI Directory
/usr/lib/cgi-bin/hello.cgi
#!/bin/bash /usr/local/bin/phphp Content-type: text/html <?php echo "Hello<br/>"; function hoge($i) { echo $i . "<br/>"; } hoge("World"); ?>
LICENSE
MIT