carlonicora / minimalism-service-mysql
MySQL service for minimalism
Installs: 1 142
Dependents: 8
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- ext-json: *
- ext-mysqli: *
- carlonicora/minimalism: ~13.0
- carlonicora/minimalism-interface-cache: ~2.0
- carlonicora/minimalism-interface-sql: ~1.0
- dev-master
- 6.1.1
- 6.1.0
- 6.0.0
- v5.x-dev
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.3.0
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.14
- 4.0.13
- 4.0.12
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.0
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dev
- dev-ver-6-MoveToSqlInterface
- dev-ver-6-SqlInterface
- dev-ver-6-SqlInterfaceAttributes
- dev-ver-6-slimmed
This package is auto-updated.
Last update: 2024-10-16 15:46:35 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
- minimalism - minimal modular PHP MVC framework
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