Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reisraff/phulp-server
The server addon for phulp
https://github.com/reisraff/phulp-server
php php-server phulp phulp-server phulpplugin server
Last synced: 26 days ago
JSON representation
The server addon for phulp
- Host: GitHub
- URL: https://github.com/reisraff/phulp-server
- Owner: reisraff
- License: mit
- Created: 2016-10-20T02:31:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-27T19:09:32.000Z (almost 4 years ago)
- Last Synced: 2024-04-09T22:01:36.311Z (7 months ago)
- Topics: php, php-server, phulp, phulp-server, phulpplugin, server
- Language: PHP
- Homepage: https://github.com/reisraff/phulp
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phulp Server
============It's a third-party project that's wrapper for "php built-in server"
#### Usage
##### Install:
```bash
$ composer require --dev reisraff/phulp-server
```##### Coding:
```php
'localhost',
'port' => '8000',
'router' => 'router.php',
'path' => '/www/data',
]);$server->fireRun();
```##### Using with [PHULP](https://github.com/reisraff/phulp).
```php
task('serve', function ($phulp) use ($config) {
$server = new Server(
[
'address' => 'localhost',
'port' => '8000',
'router' => 'router.php',
'path' => $config['project_path'],
],
$phulp->getLoop()
);
});```
## Credits
[@reisraff](http://www.twitter.com/reisraff)