Updated docs to include composer information.

pull/184/head
Mike Cao 10 years ago
parent 9ee72d401f
commit e715471a2c

@ -25,8 +25,16 @@ Flight is released under the [MIT](http://flightphp.com/license) license.
# Installation
1\. [Download](https://github.com/mikecao/flight/tarball/master) and extract
the Flight framework files to your web directory.
1\. Download the files.
If you're using [Composer](https://getcomposer.org/), you can run the following command:
```
composer require mikecao/flight
```
OR you can [download](https://github.com/mikecao/flight/archive/master.zip) them directly
and extract them to your web directory.
2\. Configure your webserver.
@ -56,6 +64,12 @@ First include the framework.
require 'flight/Flight.php';
```
If you're using Composer, run the autoloader instead.
```php
require 'vendor/autoload.php';
```
Then define a route and assign a function to handle the request.
```php

Loading…
Cancel
Save