1. Go to this page and download the library: Download e-artspace/resourceful library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
e-artspace / resourceful example snippets
$app = new Silex\Application;
$app->register(new Resourceful\ServiceProvider,array(
'data.dir' => __DIR__ . '/../data'
));
$app->mount("/", new Resourceful\IndexControllerProvider);
$app->mount("/schema", new Resourceful\SchemaControllerProvider);
//here add your restful resources
$app->mount("/foo", new Resourceful\CRUDControllerProvider('foo'));
$app->run();
$app->mount("/bar", new Resourceful\CRUDControllerProvider("bar");