PHPackages                             ypw/friendofmysql - 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. ypw/friendofmysql

ActiveLibrary

ypw/friendofmysql
=================

Create your php project from scratch with the mysql query library, which allows you to organize the mysql query structure of your project in a single file

2.4.0(4y ago)3461GPL-3.0-onlyPHPPHP &gt;=7.4.0

Since Aug 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yolfry/FriendofMySQL)[ Packagist](https://packagist.org/packages/ypw/friendofmysql)[ RSS](/packages/ypw-friendofmysql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Friend of MySQL
===============

[](#friend-of-mysql)

[![myimage-alt-tag](https://camo.githubusercontent.com/eaa24f04ecc320d9ccb5daaac47040c63ce7de0f8f34f156c954b371128ad09c/68747470733a2f2f692e6962622e636f2f6b58386e3359322f667269656e646f662d4d792d53514c2d746578742e706e67)](https://camo.githubusercontent.com/eaa24f04ecc320d9ccb5daaac47040c63ce7de0f8f34f156c954b371128ad09c/68747470733a2f2f692e6962622e636f2f6b58386e3359322f667269656e646f662d4d792d53514c2d746578742e706e67)

***Friend of MySQL is a simple php library, which allows you to synchronize in an organized and structured way the queries to the MySQL database.***

This library was developed for applications and servers in MVC, API.

This one focuses on the wall of the Model -&gt; Backend. In this way it manages to organize the queries sent to the database, through an object-oriented programming (OOP).

Friend of MySQL 2.4.0 V
-----------------------

[](#friend-of-mysql-240-v)

- The library code was organized
- Fixed error when including the query App file more than 2 times
- Prepared queries
- Show error
- Try Catch Object

Friend of MySQL 2.3.0 V
-----------------------

[](#friend-of-mysql-230-v)

- Prop Statis

Friend of MySQL 2.2.0 V
-----------------------

[](#friend-of-mysql-220-v)

- Set Data, push Query $data

Friend of MySQL 2.1.2 V
-----------------------

[](#friend-of-mysql-212-v)

- Autoload Update

Friend of MySQL 2.1.1 V
-----------------------

[](#friend-of-mysql-211-v)

- README Edit

Friend of MySQL 2.1.0 V
-----------------------

[](#friend-of-mysql-210-v)

- Composer Autoload
- class FOM namespace ypw

Friend of MySQL 2.0.0 V
-----------------------

[](#friend-of-mysql-200-v)

NEW **Implementation control of properties and methods**

- Composer support
- Dynamic query file path
- Mysql ports
- Dynamic Mysql configuration

Friend of MySQL 1.0.3 V
-----------------------

[](#friend-of-mysql-103-v)

NEW **Implementation control of properties and methods**

- query/complement/Add\_property\_and\_methods.php

Friend of MySQL 1.0.2 V
-----------------------

[](#friend-of-mysql-102-v)

NEW **Connection type settings added**

- PDO
- MySQLi Procedural
- MySQLi Object-Oriented

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

[](#installation)

```
"ypw/friendofmysql": "^2.4"
```

or run

```
composer require ypw/friendofmysql
```

Setting
-------

[](#setting)

To use this library, you need to create a query file called "queryApp" to store all the application's queries.

> queryApp.php

> Query file structure "queryApp.php"

```
