https://github.com/gingteam/amphp-runtime
https://github.com/gingteam/amphp-runtime
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gingteam/amphp-runtime
- Owner: gingteam
- Created: 2022-01-02T10:23:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-06T10:54:09.000Z (about 4 years ago)
- Last Synced: 2024-04-26T15:45:18.666Z (almost 2 years ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```php
// worker.php
dirname(__DIR__, 1),
'document_root' => __DIR__,
'port' => 8000,
];
$runtime = new Runtime($options);
[$app, $args] = $runtime->getResolver($app)->resolve();
$app = $app(...$args);
$runtime->getRunner($app)->run();
```