https://github.com/jsor/silexapplicationserverserviceprovider
A simple application server for your Silex applications.
https://github.com/jsor/silexapplicationserverserviceprovider
Last synced: 5 months ago
JSON representation
A simple application server for your Silex applications.
- Host: GitHub
- URL: https://github.com/jsor/silexapplicationserverserviceprovider
- Owner: jsor
- License: mit
- Archived: true
- Created: 2011-05-10T14:54:12.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2014-09-22T07:59:30.000Z (over 11 years ago)
- Last Synced: 2026-01-13T21:35:33.701Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 316 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
ApplicationServerServiceProvider for Silex
==========================================
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:
```php
#!/usr/bin/env php
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`.