PHPackages                             sy/mysql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sy/mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

sy/mysql
========

MySQL database layer

4.0.1(2mo ago)01.5k[1 issues](https://github.com/syframework/mysql/issues)1MITPHPPHP &gt;=7.4.0

Since Sep 29Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/syframework/mysql)[ Packagist](https://packagist.org/packages/sy/mysql)[ RSS](/packages/sy-mysql/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (27)Used By (1)

sy/mysql
========

[](#symysql)

MySQL database layer

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require sy/mysql
```

Basic Usage
-----------

[](#basic-usage)

For production, a good idea is to store database connection settings in .ini files with restricted access. For example, *my\_setting.ini*:

```
host = 127.0.0.1
dbname = my_database
username = my_username
password = my_password

```

```
