Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathan-fiscaletti/mysqli-wrapper
📙A simple ORM for MySql and PHP
https://github.com/nathan-fiscaletti/mysqli-wrapper
composer mysql orm php
Last synced: about 2 months ago
JSON representation
📙A simple ORM for MySql and PHP
- Host: GitHub
- URL: https://github.com/nathan-fiscaletti/mysqli-wrapper
- Owner: nathan-fiscaletti
- Created: 2018-07-02T15:02:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T02:18:53.000Z (about 5 years ago)
- Last Synced: 2024-11-15T21:52:32.061Z (about 2 months ago)
- Topics: composer, mysql, orm, php
- Language: PHP
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MySqli Wrapper
### A simple [ORM](https://en.wikipedia.org/wiki/Object-relational_mapping) for MySql and PHP.
> composer require nafisc/mysqli-wrapper
[![StyleCI](https://styleci.io/repos/139458381/shield?style=flat)](https://styleci.io/repos/139458381)
[![Latest Stable Version](https://poser.pugx.org/nafisc/mysqli-wrapper/v/stable?format=flat)](https://packagist.org/packages/nafisc/mysqli-wrapper)
[![Total Downloads](https://poser.pugx.org/nafisc/mysqli-wrapper/downloads?format=flat)](https://packagist.org/packages/nafisc/mysqli-wrapper)
[![Latest Unstable Version](https://poser.pugx.org/nafisc/mysqli-wrapper/v/unstable?format=flat)](https://packagist.org/packages/nafisc/mysqli-wrapper)
[![License](https://poser.pugx.org/nafisc/mysqli-wrapper/license?format=flat)](https://packagist.org/packages/nafisc/mysqli-wrapper)## How to use?
See [the documentation](./docs) for information on how to use MySqli Wrapper!
## Quick Example
```php
use \MySqliWrapper\Database as DB;DB::register(
[
'name' => 'main',
'host' => 'localhost',
'username' => 'root',
'password' => 'password',
'database' => 'database',
'port' => 3306,
'charset' => 'utf8',
]
);$user = DB::get('main')
->table('users')
->where('name', '=', 'Nathan')
->first();$user->age = 10;
$user->save();
```