Skip to content
📙A simple ORM for MySql and PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/MySqliWrapper
.gitignore
README.md
composer.json

README.md

MySqli Wrapper

A simple ORM for MySql and PHP.

composer require nafisc/mysqli-wrapper

StyleCI Latest Stable Version Total Downloads Latest Unstable Version License

How to use?

See the Wiki for information on how to use MySqli Wrapper!

Quick Example

    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')
            ->getFirst();

    $user->age = 10;
    $user->save();
You can’t perform that action at this time.