minimalism-service-mysql is a service for minimalism to read and write data on MySQL. minimalism-service-mysql is not a full-fledged ORM and relies on arrays to transport data.
To use this library, you need to have an application using minimalism. This library does not work outside this scope.
You should have read the minimalism documentation and understand the concepts of services in the framework.
Encrypter requires either the MySQLi extension in order to work.
Require this package, with Composer, in the root directory of your project.
$ composer require carlonicora/minimalism-service-mysql
or simply add the requirement in composer.json
{
"require": {
"carlonicora/minimalism-service-mysql": "~1.0"
}
}
This service requires you to set up a special set of parameters in your .env
file in order to connect with MySQL.
The first parameter identifies a comma separated list of parameters which, in turns, contain a comma separated list
of connection parameters for every single database.
#comma separated list of connections
MINIMALISM_SERVICE_ENCRYPTER_KEY=connection1,connection2
#comma separated list of connection parameters
connection1=host,username,password,dbName,port
- minimalism - minimal modular PHP MVC framework
This project use Semantiv Versioning for its tags.
- Carlo Nicora - Initial version - GitHub | phlow
- Sergey Kuzminich - maintenance and expansion - GitHub |
This project is licensed under the MIT license - see the LICENSE.md file for details