jsor / application-server-service-provider
A simple application server for your Silex applications
Installs: 175
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/jsor/application-server-service-provider
Requires
- php: >=5.3.0
Requires (Dev)
- silex/silex: 1.0.*
This package is auto-updated.
Last update: 2021-09-05 11:40:40 UTC
README
A simple application server for your Silex applications.
Note: This is a POC, is meant to be used locally for testing purposes and is not production ready.
Usage
Create a file with following content and run it from the command line:
#!/usr/bin/env php <?php $app = new Silex\Application(); $app->register(new Jsor\ApplicationServerServiceProvider()); $app->get('/', function() { return "Hello world"; }); $app['application_server']->listen('8080', '127.0.0.1', '/index.php');
This will start the application server on 127.0.0.1:8080
with the base path /index.php
.