A live RESTful API for your MySQL database with permissions.
This is not an API generator. This is for quickly creating a database and throwing REST in front of it.
composer.json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/AnimasWeb/sleepy-mysql.git"
}
],
"require": {
"AnimasWeb/sleepy-mysql": "dev-master"
}
}
$db_config = array(
'server' => 'localhost',
'database' => 'test',
'username' => 'root',
'password' => '',
'verbose' => false
);
$po = new \SleepyMySQL\SMPermissionsAllowAll();
$arrest = new \SleepyMySQL\SleepyMySQL($db_config, $po);
$arrest->rest();