Download the PHP package juliangut/slim-doctrine without Composer
On this page you can find all versions of the php package juliangut/slim-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package slim-doctrine
Slim integration with Doctrine managers
Easy Slim framework integration with Doctrine's Entity Manager, MongoDB Document Manager and CouchDB Document Manager.
Important note
The latest version of slim-doctrine is focused only on Slim framework and Doctrine integration, and thus using the manager builders as stand alone is not possible.
That same functionality can be achieved by using juliangut/doctrine-manager-builder which is not tied to Slim framework.
Installation
Best way to install is using Composer:
Then require_once the autoload file:
Configuration
Each kind of manager has its configurations stored on a key in the settings array
ManagerBuilder::DEFAULT_RELATIONAL_MANAGER_KEY
("entity_manager") forORM
ManagerBuilder::DEFAULT_MONGODB_MANAGER_KEY
("mongodb_document_manager") forMongoDB ODM
ManagerBuilder::DEFAULT_COUCHDB_MANAGER_KEY
("couchdb_document_manager") forCouchDB ODM
If a manager is not given a name then a default one will be used:
ManagerBuilder::DEFAULT_RELATIONAL_MANAGER_NAME
("entityManager) forORM
ManagerBuilder::DEFAULT_MONGODB_MANAGER_NAME
("mongoDocumentManager") forMongoDB ODM
ManagerBuilder::DEFAULT_COUCHDB_MANAGER_NAME
("couchDocumentManager") forCouchDB ODM
Options
ManagerBuilder's default keys and manager names can be modified providing constructor with an options array to change any of them
Manager builders
In order to configure the different Doctrine manager builders head to juliangut/doctrine-manager-builder which is used in this package.
Usage
Register managers in the DI container as any other service.
Register manager builder in the DI container to delegate managers creation.
CLI Application builder
doctrine-manager
is a CLI tool that is installed with this package. It provides the same functionality that Doctrine's ORM doctrine
CLI tool does but it does not need ORM to be installed. Additionally doctrine-manager
allows you to have numerous managers configured thanks to prepending manager name.
The way to using doctrine-manager
is the same as with doctrine
by creating a cli-config.php
file returning a Symfony\Component\Console\Application
Contributing
Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before
See file CONTRIBUTING.md
Contributors
License
See file LICENSE included with the source code for a copy of the license terms
All versions of slim-doctrine with dependencies
slim/slim Version ^3.0
juliangut/doctrine-manager-builder Version ^1.7