2017 © Pedro Peláez
 

library phulp-server

The server addon for phulp

image

reisraff/phulp-server

The server addon for phulp

  • Thursday, March 15, 2018
  • by reisraff
  • Repository
  • 1 Watchers
  • 2 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Phulp Server

It's a third-party project that's wrapper for "php built-in server", (*1)

Usage

Install:
$ composer require --dev reisraff/phulp-server
Coding:
<?php

use Phulp\Server\Server;

$server = new Server([
    'address' => 'localhost',
    'port' => '8000',
    'router' => 'router.php',
    'path' => '/www/data',
]);

$server->fireRun();
Using with PHULP.
<?php

use Phulp\Server\Server;

$phulp->task('serve', function ($phulp) use ($config) {
    $server = new Server(
        [
            'address' => 'localhost',
            'port' => '8000',
            'router' => 'router.php',
            'path' => $config['project_path'],
        ],
        $phulp->getLoop()
    );
});

Credits

@reisraff, (*2)

The Versions

15/03 2018

dev-master

9999999-dev

The server addon for phulp

  Sources   Download

MIT

The Requires

 

php server phulp phulpplugin php-server phulp-server

27/10 2016

1.0.0

1.0.0.0

The server addon for phulp

  Sources   Download

MIT

The Requires

 

php server phulp phulpplugin