Use Breeze to quickly setup and start building JSON APIs with PHP. A lightweight framework that takes care of versioning and routing, built on top of mikecao/flight.
Use Breeze to quickly setup and start building JSON APIs with PHP. Breeze is a lightweight framework that takes care of versioning and routing, built on top of mikecao/flight.
Requires PHP 5.6 or greater.
Released under the MIT License.
Download Breeze OR clone the repo in your project's root directory:
git clone https://github.com/geogkary/breeze.git
Download Flight OR clone the repo inside
cd engine/flight/ git clone https://github.com/mikecao/flight.git
require 'engine/Breeze.php'; Breeze::init();
Require and load the package:
composer require geogkary/breeze v1.0.4-beta
// autoload require 'vendor/autoload.php'; // manually require 'vendor/geogkary/breeze/engine/composer.php';
First things first, create a subidrectory
versions/ inside your project's root directory.
You can download the boilerplate API version, so you don't have to start from scratch. Just unzip inside the subdirectory. Edit
config.php located in Breeze's root directory.