Download the PHP package conserto/pomm-model-manager without Composer
On this page you can find all versions of the php package conserto/pomm-model-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download conserto/pomm-model-manager
More information about conserto/pomm-model-manager
Files in conserto/pomm-model-manager
Package pomm-model-manager
Short Description PHP Object Model Manager for Postgresql
License MIT
Homepage http://www.pomm-project.org
Informations about the package pomm-model-manager
Pomm ModelManager
This as fork of ModelManager, a Pomm project package. It makes developers able to manage entities upon the database through model classes. It is not an ORM, it grants developers with the ability to perform native queries using all of Postgres’SQL and use almost all its types. This makes model layer to meet with performances while staying lean.
This package will provide:
- Model classes with all common built-in queries (CRUD but also,
count
andexists
). - Flexible entities
- Embedded entities converter
- Model Layer to group model computations in transactions.
The model layer also proposes methods to leverage Postgres nice transaction settings (constraint deferring, isolation levels, read / write access modes etc.).
Installation
Pomm components are available on packagist using composer. To install and use Pomm's model manager, add a require line to "conserto/pomm-model-manager"
in your composer.json
file. It is advised to install the CLI package as well.
In order to load the model manager's poolers at startup, it is possible to use the provided SessionBuilder
in Pomm's configuration:
It is better to provide dedicated session builders with your project.
Documentation
The model manager’s documentation is available either online or directly in the documentation
folder.
Tests
This package uses Atoum as unit test framework. The tests are located in sources/tests
. This package also provides a ModelSessionAtoum
class so the test classes can directly get sessions with the model
and model layer
poolers loaded.