PHP code example of mauro-moreno / silex-jsonapi
1. Go to this page and download the library: Download mauro-moreno/silex-jsonapi 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/ */
mauro-moreno / silex-jsonapi example snippets
$app = new Silex\Application;
$app['mappers'] = []; // Array of mapping classes
$app->register(new MauroMoreno\JsonApi\JsonApiServiceProvider);
private function resourceCreated($json);
private function resourceDeleted($json);
private function resourceNotFound($json);
private function resourceProcessing($json);
private function resourceUpdatedResponse($json);
private function response($json);
private function unsupportedAction($json);