From e715471a2cfc0db3557381610659ee99c1d391d2 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 14 Apr 2015 21:47:05 -0700 Subject: [PATCH] Updated docs to include composer information. --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b04fd8d..3f77661 100644 --- a/README.md +++ b/README.md @@ -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