Download the PHP package arekx/pql without Composer
On this page you can find all versions of the php package arekx/pql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pql
PQL
PHP Database Query Library
This library is a database abstraction layer which abstracts the query commands (Select, Delete, Update, etc.) out from the drivers (MySQL, Postgres, SQL Server, etc.). Queries are defined in an eloquent way allowing you to write almost all kinds of queries without having to rely on passing raw query data.
Installation
Installing this library is done via composer composer install arekxv/pql
(still WIP)
Usage
First you need to decide on which driver you will use. Following drivers are supported:
- MySQL
After you decide on the driver, writing a query is as simple as:
Documentation
Documentation is available in here (in docs folder).
HTML version of the docs is available at: https://pql.readthedocs.io/
Testing
Run composer install
and then run composer test
. This will run unit and integration tests.
For integration tests, database docker containers must be running otherwise those tests will fail.
To setup docker containers install docker and inside tests
folder run docker-compose up -d
.
To just run unit tests run composer test-unit
.
For coverage report run composer coverage
or you can take a look at
it here.
License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
All versions of pql with dependencies
ext-json Version *
ext-pdo Version *