Download the PHP package mouf/database.doctrine-dbal-wrapper without Composer
On this page you can find all versions of the php package mouf/database.doctrine-dbal-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouf/database.doctrine-dbal-wrapper
More information about mouf/database.doctrine-dbal-wrapper
Files in mouf/database.doctrine-dbal-wrapper
Package database.doctrine-dbal-wrapper
Short Description This package contains wrapper classes that make Doctrine DBAL easy to use in Mouf
License MIT
Homepage https://github.com/thecodingmachine/database.doctrine-dbal-wrapper
Informations about the package database.doctrine-dbal-wrapper
Doctrine DBAL wrapper classes for Mouf
This package provides a wrapper around the Doctrine's DBALConnection class for the Mouf PHP framework.
Important: this component has not been tested yet for other connection drivers than PDO_MYSQL and MSQLI.
When installed, it provides a user-friendly user interface that allows to create / edit your connection to the database.
Please be aware this is a very simple wrapper. In fact this component is just a simple install task, that will automatically configure a Doctrine/DBAL Connection :
- the params property is stored as a PHP field as it's structure is not really defined. It will return an array of connection parameters : database's host, name, and identifiers.
Please note, that those parameters will be stored in Mouf configuration.
- driver & eventManager are simple classes that has no settable properties. Note that as required by Doctrine, if the ORM layer is included in your project, the entityManager instance will be associated to the same eventManager instance that the connection.
- the configuration property is not set by this package.
Other parameters can be defined after the instance has been initialized, please refer to doctrine's documentation for more information : http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/.
Usage
You can now embed the dbalConnection
instance anywhere in your code:
All versions of database.doctrine-dbal-wrapper with dependencies
psr/log Version ~1.0
doctrine/dbal Version ~2.4
mouf/utils.console Version ~1.0