Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 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.

Awesome Lists containing this project

README

        

![MOP_logo](https://user-images.githubusercontent.com/52476329/137361314-296884d7-2b98-4069-b753-c20d15ac4c67.png)

[![SourceForge](https://img.shields.io/sourceforge/dm/bitc-mop?color=blue&style=for-the-badge)](https://sourceforge.net/projects/bitc-mop/files/latest/download)
[![SourceForge](https://img.shields.io/sourceforge/dw/bitc-mop?color=blue&style=for-the-badge)](https://sourceforge.net/projects/bitc-mop/files/latest/download)
[![SourceForge](https://img.shields.io/sourceforge/dt/bitc-mop?color=blue&style=for-the-badge)](https://sourceforge.net/projects/bitc-mop/files/latest/download)

[![Packagist License](https://img.shields.io/packagist/l/bringittocode/mop?color=blue&style=for-the-badge)](https://github.com/Bringittocode/mop/blob/main/LICENSE)

[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/bringittocode/mop?include_prereleases&style=for-the-badge)](https://sourceforge.net/projects/bitc-mop/files/latest/download)

![GitHub forks](https://img.shields.io/github/forks/bringittocode/mop?style=for-the-badge)
![GitHub Repo stars](https://img.shields.io/github/stars/bringittocode/mop?style=for-the-badge)
# 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.

![mop_error](https://user-images.githubusercontent.com/52476329/133803606-93310987-82cb-464f-8186-d4bab7c9667c.png)

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).