Skip to content
Bojan edited this page Oct 11, 2017 · 6 revisions

Pckg/database provides simple ORM for PDO, MySQL and Faker. Organize and map your database to records, entities, repositories, define data relations, handle changes with events and many more. It works really well with pckg/framework.

Installation

For standalone usage simply require pckg/database in composer.

$ composer require pckg/database

Dependencies

Package depends on several composer packages:

  • pckg/concept
  • pckg/collection
  • pckg/cache
  • pckg/locale

And some optional packages

  • maximebf/debugbar - for better debugging experience on frontend when developing web applications
  • fzaninotto/faker - for automatic tests and dummy data retrieval

Tests

Test can be run with codeception

$ cp ./codeception.sample.yml ./codeception.yml
$ codecept run

Clone this wiki locally