carlonicora/minimalism-service-mysql

MySQL service for minimalism

6.1.1 2019-05-14 00:00 UTC

README

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.

Getting Started

To use this library, you need to have an application using minimalism. This library does not work outside this scope.

Prerequisite

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.

Installing

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"
    }
}

Deployment

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.

Required parameters

#comma separated list of connections
MINIMALISM_SERVICE_ENCRYPTER_KEY=connection1,connection2

#comma separated list of connection parameters
connection1=host,username,password,dbName,port

Build With

Versioning

This project use Semantiv Versioning for its tags.

Authors

  • Carlo Nicora - Initial version - GitHub | phlow
  • Sergey Kuzminich - maintenance and expansion - GitHub |

License

This project is licensed under the MIT license - see the LICENSE.md file for details

License: MIT