Download the PHP package viames/pair without Composer

On this page you can find all versions of the php package viames/pair. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pair

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

What’s new

Welcome to Pair version 2. Many new features have been introduced and existing ones improved. Among these improvements are Collection, Migrations, third-party products and services support incorporated into Pair to make it easy to create lightning-fast server-side web applications, including: Amazon S3, Amazon SES, Chart.js, ELK logger, InsightHub, Sentry, Telegram.

Features

Pair is a simple and fast PHP framework with little or no frills. It was written with simplicity in mind, trying to satisfy the most frequent needs of web applications. It implements the Model-View-Controller pattern and intuitive, search engine friendly routing by default.

Pair is a simple and fast PHP framework with little or no frills. It was written with simplicity in mind, trying to satisfy the most frequent needs of web applications. It implements the Model-View-Controller pattern and intuitive routing logic by default.

Everyone knows that you don’t need a truck to go grocery shopping. You don't even need a car to go to the local newsstand to buy the newspaper. You need the right vehicle for every occasion.

If starting a new web project is a hassle because of the complexity and slowness of the famous pachyderm frameworks used around, you should take a look at Pair. For a small or medium web project, it might surprise you.

Pair learns the referential constraints of database tables and automatically uses magic functions to reuse the data already read via cache. While Pair sends the complete web page to the browser, some of the most popular frameworks still have to load all the server-side libraries.

Additionally using Pair's advanced features for efficiently managing information already extracted from the DB, you can create a web page of an application that reads millions of records and numerous related tables in the incredible time of just 10 ms.

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.

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

The Pair base tables are InnoDB utf-8mb4.

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.

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.

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.

Installation

Composer

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.

If you want to test code that is in the master branch, which hasn’t been pushed as a release, you can use master.

If you don’t have Composer, you can download it.

Documentation

Please consult the Wiki of this project. Below are its most interesting pages that illustrate some features of Pair.

Requirements

Software Recommended Minimum Configuration
Apache 2.4+ 2.2 modules: mod_rewrite
MySQL 9.2 8.0 character_set: utf8mb4
collation: utf8mb4_unicode_ci
storage_engine: InnoDB
PHP 8.3 8.3 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.

Contributing

Feedback, code integration, and documentation adjustments are welcome.

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

Update from Pair v1 to v2

Instructions and a script for upgrading applications from Pair 1 to Pair 2 are available in the file UPGRADE.md.

License

MIT


All versions of pair with dependencies

PHP Build Version
Package Version
Requires php Version 8.3
bugsnag/bugsnag Version ^3
daniel-zahariev/php-aws-ses Version ^0.9
league/flysystem-aws-s3-v3 Version ^1|^3
phpmailer/phpmailer Version ^6
phpoffice/phpspreadsheet Version ^1|^2|^3
sentry/sdk Version ^4
sistemi-etime/flysystem-plugin-aws-s3-v3 Version ^1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package viames/pair contains the following files

Loading the files please wait ....