Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)