https://github.com/miyako/php
4d-class 4d-component php
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/miyako/php
- Owner: miyako
- License: mit
- Created: 2024-08-22T05:30:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-15T01:33:10.000Z (8 months ago)
- Last Synced: 2025-05-15T01:37:38.621Z (8 months ago)
- Topics: 4d-class, 4d-component, php
- Language: 4D
- Homepage: https://miyako.github.io/php/
- Size: 43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](LICENSE)

### Licensing
* the source code of this component is licensed under the [MIT license](https://github.com/miyako/php/blob/master/LICENSE).
* see [php.net](https://www.php.net/license/index.php) for the licensing of **PHP**.
switch to [`20.x`](https://github.com/miyako/php/tree/20.x) branch for 4D 20 LTS compatible version.
### Compatibility

* [shared singleton](https://blog.4d.com/singletons-in-4d/)

* [variadic function](https://blog.4d.com/a-fresh-approach-to-writing-variadic-functions/)
# php
## dependencies.json
```json
{
"dependencies": {
"php": {
"github": "miyako/php",
"version": "latest"
}
}
}
```
Based on [miyako/4d-class-php](https://github.com/miyako/4d-class-php).
The CGI class has been refactored as a Shared Singleton.
## Usage
```4d
$CGI:=cs.PHP.PHP_CGI.new(cs.PHP._PHP_CGI_Controller).cgi()
$php:="