The easiest way of installing FuelPHP is through the use of curl
(or wget
) and a stripped down version of Oil, the FuelPHP command-line tool.
To install the quick installer, you can run the following command from the shell or a terminal window:
$ curl get.fuelphp.com/oil | sh*
This will ask for your password to install the new files to the /usr/bin
directory.
After this is over, you only need to use oil
rather than php oil
, but both will work for the command-line iterations.
Note
If you have used a FuelPHP version older than 1.6 previously, you will need to reinstall FuelPHP to allow it to use the Composer tool.
To create a new project, simply run the following command:
$ oil create <project>
In this, <project>
is the name of your project. This will create a folder of the project name in the current directory. All of your application code and packages will be created in the project folder.