Skeleton project to run Pair PHP framework in seconds
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes Updated to Pair 1.4 with 2 new modules Sep 21, 2018
installer Pair/User improvements Oct 29, 2018
modules Bug fix Dec 6, 2018
templates/Basic Bug fixes Nov 22, 2018
translations Bug fixes and improvements in locales Oct 28, 2018
widgets Routes examples. Bug fixes. Oct 24, 2018
.gitignore Created a web installer Jan 25, 2018
.htaccess Wide bug fixing Oct 12, 2017
LICENSE fix to composer Mar 19, 2017
README.md Update README.md Jul 1, 2018
composer.json MySQL 8 patch Nov 26, 2018
composer.lock Pair/User improvements Oct 29, 2018
index.php Updated to Pair 1.4 with 2 new modules Sep 21, 2018
routes.php Bug fixes Oct 28, 2018

README.md

Pair example

a skeleton project to use Pair PHP Framework easily

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

This base project allows a fast start to develop small to medium PHP applications like CRM or web-portals. With the addition of a few files more, here provided as sample, and an initial database structure, your web project will be up and running in a breeze.

Features

This basic project manages users authentication, creates new custom ActiveRecord classes and CRUD modules starting from a DB table by a magic module named developer, all thru a friendly route logic. Also it acts as REST API server.

Quick start

The Installer is used to configure the basic data of your web project. It starts automatically when the URL for the root folder is first launched, creates a custom configuration file and auto-deletes after checking that everything is OK and that the installation was successful.

After the installation is completed, all the fields declared in the installer can subsequently be customized by modifying the configuration file except those related to the user created. For the latter, it is sufficient to modify it via the Users module.

Create a new project

To start a web project with the Pair framework, this sequence is the suggested one:

1. Install Pair_example

Use Composer to copy php files to a folder into your web server documents path:

composer create-project viames/pair_example my_project_name

2. Run it by the browser

Launch the browser to the base address of the Pair_example project to start the Installer.

http://localhost/my_project_name

The project is ready to accept login and will let you manage users.

3. Expand it according to your needs

Create additional InnoDB tables for database of your project and set the foreign keys properly, these are useful for getting the most out of ActiveRecord. Then start the built-in Developer module, which will allow you to create a complete CRUD and class module for each of your custom tables.

4. Customize the template

Your project deserves a unique aspect, so proceed to customize the existing template or install a new template plugin via the built-in Template module.


Contributing

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

License

MIT