2017 © Pedro PelĂĄez
 

library pair

lightweight PHP framework as the air

image

viames/pair

lightweight PHP framework as the air

  • Monday, July 16, 2018
  • by Viames
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 129 % Grown

The README.md

, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Features

Pair is simple and fast, few frills, maybe none. It was written with simplicity in mind, while trying to achieve the most frequent needs of web applications. It implements Model-View-Controller pattern and a search friendly route logic by default., (*3)

Everyone knows that you do not need a truck to go shopping. You do not even need the car to go and buy the newspaper at the nearby newsstand. You need the right medium for everything., (*4)

If you’re already tired of starting a new web project due to the complexity of the famous frameworks used around, you should take a look at Pair. For a small or medium web project, it fits really well., (*5)

Pair acquires the logical connections of the database tables and automatically uses caching functions to reuse the data that has already been retrieved. While Pair sends the ready-made web page to the browser, some of the most popular frameworks haven't even loaded all the libraries yet., (*6)

Using also the advanced functions of Pair for the efficient management of the information already extracted from the DB, it is possible to create a web page of an application that reads millions of records and many related tables in an astounding time of just 10 ms., (*7)

ActiveRecord

Pair allows the creation of objects related to each respective database table using the ActiveRecord class. Objects retrieved from the DB are cast in both directions to the required type (int, bool, DateTime, float, csv). See Automatic properties cast page in the wiki., (*8)

In addition, each class inherited from ActiveRecord supports many convenient methods including those for caching data that save queries., (*9)

The Pair base tables are InnoDB utf-8mb4., (*10)

Plugins

Pair supports modules and templates as installable plugins, but can easily be extended to other types of custom plugins. The Pair’s Plugin class allows you to create the manifest file, the ZIP package with the contents of the plugin and the installation of the plugin of your Pair’s application., (*11)

Time zone

The automatic time zone management allows to store the data on UTC and to obtain it already converted according to the connected user’s time zone automatically., (*12)

Log bar

A nice log bar shows all the details of the loaded objects, the system memory load, the time taken for each step and for the queries, the SQL code of the executed queries and the backtrace of the detected errors. Custom messages can be added for each step of the code., (*13)

Installation

Composer

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., (*14)

use Pair\Application;

// initialize the framework
require 'vendor/autoload.php';

// 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., (*15)

composer require viames/pair dev-master

If you don’t have Composer, you can download it., (*16)

Documentation

Please consult the Wiki of this project. Below are its most interesting pages that illustrate some features of Pair., (*17)

Requirements

Software Recommended Minimum Configuration
Apache 2.4+ 2.2 modules: mod_rewrite
MySQL 8.0 5.6 character_set: utf8mb4
collation: utf8mb4_unicode_ci
storage_engine: InnoDB
PHP 7.3+ 7.0 extensions: fileinfo, json, pcre, PDO, pdo_mysql, Reflection

Examples

The pair_boilerplate is a good starting point to build your new web project in a breeze with Pair PHP framework using the installer wizard., (*18)

Contributing

If you would like to contribute to this project, please feel free to submit a pull request., (*19)

License

MIT, (*20)

The Versions

16/07 2018

dev-master

9999999-dev https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair api-server mvc-framework plugin-system

22/05 2018

1.2.5

1.2.5.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

22/04 2018

1.2.4

1.2.4.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

30/03 2018

1.2.3

1.2.3.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

16/02 2018

1.2.2

1.2.2.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

08/02 2018

1.2.1

1.2.1.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

06/02 2018

1.2.0

1.2.0.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

25/01 2018

1.1.0

1.1.0.0 https://github.com/Viames/Pair

lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair plugin-system

28/09 2017

1.0.0

1.0.0.0 https://github.com/Viames/Pair

a lightweight PHP framework as the air

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-pdo *

 

framework php pagination multilingual active-record rest-api router pair api-server mvc-framework plugin-system