https://github.com/syntanext/mop
( WEBSITE VERSION ) MOP is a php query handling and manipulation library providing easy and reliable way to manipulate query and get result in a fastest way.
https://github.com/syntanext/mop
mop mysql mysql-database php
Last synced: 7 months ago
JSON representation
( WEBSITE VERSION ) MOP is a php query handling and manipulation library providing easy and reliable way to manipulate query and get result in a fastest way.
- Host: GitHub
- URL: https://github.com/syntanext/mop
- Owner: syntanext
- License: mit
- Created: 2021-11-05T19:45:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T07:01:01.000Z (about 3 years ago)
- Last Synced: 2025-01-31T22:22:30.178Z (over 1 year ago)
- Topics: mop, mysql, mysql-database, php
- Language: PHP
- Homepage:
- Size: 495 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

[](https://sourceforge.net/projects/bitc-mop/files/latest/download)
[](https://sourceforge.net/projects/bitc-mop/files/latest/download)
[](https://sourceforge.net/projects/bitc-mop/files/latest/download)
[](https://github.com/Bringittocode/mop/blob/main/LICENSE)
[](https://sourceforge.net/projects/bitc-mop/files/latest/download)


# Mysql Optimizer
mysql optimizer also known as **MOP** is a **php query handling and manipulation** library providing easy and reliable way to manipulate query and get result in a fastest way.
## Recomended Requirement
- PHP >= 7
## Supported Query Handler
- MYSQLI
- PDO
## Geting Started
you can actually run 4 lines of code and get your result with this library
```php
$connect = new Mysql\mop($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME);
$connect->query("SELECT .....");
$connect->run();
$connect->get_column('name');
```
**Over All Preview**
```php
// SIMPLE PREVIEW
// connect
$firstconnection = new Mysql\mop($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME);
// query
$query = "SELECT ....";
$firstconnection->query($query);
// Run query
$firstconnection->run();
// Get all column result as csv
$firstconnection->csv;
// Get column by name
$firstconnection->get_column('columnname');
// Get column by index
$firstconnection->get_column(0);
// Get number of affected or selected rows
$firstconnection->num_of_rows;
// IS THAT ALL? NO IS MORE THAN THAT
// CHECK DOCUMENTATION FOR MORE
```
## Documentation
* [Documentation](https://github.com/Bringittocode/mop/wiki)
* [Reference](https://github.com/Bringittocode/mop/wiki/reference)
* [Video](https://youtube.com/playlist?list=PLJPXjarj_PAq1zGQpT8gOYqedDLsrjq9C)
## Installation
It can be **included** or **required** in any php file or download using composer
> Composer install
```bash
composer require bringittocode/mop
```
> Manual install
download both files in src folder and place them anywhere in your folder directory then **include** or **reqiure** mop.php file.
IF YOU GET UNKNOWN ERROR WITH THIS LIBRARY ON YOUR WEB SERVER...... YOU HAVE TO TRY THIS.

Go to your cpanel, find change php version and click on it, when the page fullly loaded, first of all make sure you are using php >= 7.
Then uncheck **mysqli** and check **nd_mysqli** save it and try again with the library , everything should work fine.
**LICENSE**
fork and feel free to pull request....
MOP is licensed under the [MIT License](http://opensource.org/licenses/MIT).