Download the PHP package gridonic/database-utils-service-provider without Composer
On this page you can find all versions of the php package gridonic/database-utils-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package database-utils-service-provider
DatabaseUtilsServiceProvider
This is a simple collection of utilities for your database for Silex and Doctrine DBAL.
Install
As usual, just include gridonic/database-utils-service-provider
in your composer.json
, and register the service.
Parameters
An overview of the possible parameters
database_utils.fixtures
required for fixtures All your fixtures-files.
database_utils.password_keys
optional An array of keys of table-columns, in which you are saving passwords. The values will be automatically encoded before insert.
database_utils.security.salt
required for database_utils.password_keys
To encode the passwords, we use this salt.
Commands
When you have registered the ConsoleServiceProvider correct, you can use the following commands in your console.
database:drop
Clears your database
database:reset
Resets your database. Means:
- Drops your database
- Migrates the database (uses MigrationServiceProvider)
- Loads example-data into your database
database:fixtures:load
Loads example-data from your fixtures-files into the database.
when you set the password_keys and the salt, all the values for the password_keys (p.E. 1234
as password
) will be encoded before insert.
All the passwords will be encoded by the Silex\Provider\SecurityProvider
. You have to register the SecurityProvider before you can use this function.
Example 01_test.yml
Example to register the SecurityProvider
Licence
The DatabaseUtilsServiceProvider is licensed under the MIT license.
All versions of database-utils-service-provider with dependencies
symfony/yaml Version ~2.3
doctrine/dbal Version >=2.1, <=2.4
gridonic/console-service-provider Version ~1
gridonic/migration-service-provider Version ~1