Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iturgeon/fuel-oilserver
FuelPHP package that allows you to use the php 5.4 built in server with the framework via oil commands
https://github.com/iturgeon/fuel-oilserver
Last synced: about 2 months ago
JSON representation
FuelPHP package that allows you to use the php 5.4 built in server with the framework via oil commands
- Host: GitHub
- URL: https://github.com/iturgeon/fuel-oilserver
- Owner: iturgeon
- Created: 2013-03-28T01:31:37.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-28T02:01:42.000Z (almost 12 years ago)
- Last Synced: 2024-10-12T19:37:00.011Z (3 months ago)
- Language: PHP
- Size: 125 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fuel-oilserver
==============FuelPHP package that allows you to use the php 5.4 built in server with the framework via oil commands.
**REQUIRES PHP 5.4 TO RUN BUILT IN SERVER**
Installation
============Clone a copy and put it in your fuel/packages directory.
Just clone it:
```git clone [email protected]:iturgeon/fuel-oilserver.git fuel/packages/oilserver```
Or Add as a submodule:
```git submodule add [email protected]:iturgeon/fuel-oilserver.git fuel/packages/oilserver```
### Add a oilserver to your Config
in app/config/config.php add oilserver to 'always_load' > 'packages' array
```php
'always_load' => array(
'packages' => array(
'orm',
'auth',
// Add it in
'oilserver',
),
```Usage
======### Run the server
```php oil server``` or ```php oil s```
Will run a built in php server, use the default rewrite routing, all on localhost:8000
### Options
```php oil server option=value ...```
#### Bind the server to an IP
host=0.0.0.0#### Bind the server to a specific port
port=8080#### Path to the public directory if not default
docroot="public/"#### Override the built in server router
router="/path/to/a/router.php"#### Override the default php executable to use
php="/dir/to/alternate/php"