webrium / mysql
PHP Framework
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.1.8
2020-10-01 11:33 UTC
Requires
- php: >=7.0.0
README
MySql Library
Install
composer require webrium/mysql
<?php require_once __DIR__ . '/../vendor/autoload.php'; use webrium\mysql\DB; $config=[]; $config['main']=[ 'driver'=>'mysql' , 'db_host'=>'localhost' , 'db_host_port'=>3306 , 'db_name'=>'test' , 'username'=>'root' , 'password'=>'1234' , 'charset'=>'utf8mb4' , 'result_stdClass'=>true ]; DB::setConfig($config); $get = DB::table('users')->get(); echo json_encode($get);