light weight and versatile PHP framework
The framework implements Model-View-Controller pattern, the Active Record pattern and a search friendly route logic.
composer require viames/pair
After having installed Pair framework you can get singleton object $app
and the just start MVC. You can check any session before MVC, like in the following example.
use Pair\Application;
// initialize the framework
require 'vendor/autoload.php';
// declare your product version
define ('PRODUCT_VERSION', '1.0');
// intialize the Application
$app = Application::getInstance();
// any session
$app->manageSession();
// start controller and then display
$app->startMvc();
If you want to test code that is in the master branch, which hasn’t been pushed as a release, you can use master.
composer require viames/pair dev-master
You can download it here: https://getcomposer.org/
An example project that uses Pair PHP framework can be found here.
If you would like to contribute to this project, please feel free to submit a pull request.
MIT