Download the PHP package glynnforrest/active-doctrine without Composer
On this page you can find all versions of the php package glynnforrest/active-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download glynnforrest/active-doctrine
More information about glynnforrest/active-doctrine
Files in glynnforrest/active-doctrine
Package active-doctrine
Short Description An active record implementation on top of the Doctrine DBAL.
License MIT
Informations about the package active-doctrine
Active Doctrine
An active record implementation on top of the Doctrine DBAL.
Project goals
- An active record implementation focusing on simplicity and ease of use.
- Support for a large amount of database vendors by leveraging the DBAL.
- A select-only query builder for selecting entities. Unlike the Doctrine query builder which is designed to cover a large amount of query possibilities, this builder has a small amount of methods that are safe from sql injection.
Installation
Add glynnforrest/active-doctrine
to your composer.json file:
Quickstart
There are many more features. Documentation and examples are in the
docs/
folder.
Tests
As well as unit tests, there are functional tests which run against a real database connection. By default this uses an in-memory sqlite database, so will fail if the sqlite extension is not set up.
phpunit
runs all tests.phpunit --testsuite unit
runs the unit tests only.phpunit --testsuite functional
runs the functional tests only.
Changing connection parameters
To change the database used in the functional tests, copy
phpunit.xml.dist
to a new file and set the db_*
environment
variables.
Make sure the target database exists, then run the tests with the new configuration.
phpunit -c mysql.xml
License
MIT, see LICENSE for details.
Copyright 2014 Glynn Forrest