1. Go to this page and download the library: Download pdsinterop/solid-crud 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/ */
pdsinterop / solid-crud example snippets
$formats = new \Pdsinterop\Rdf\Formats();
$rdfAdapter = new \Pdsinterop\Rdf\Flysystem\Adapter\Rdf(
new \League\Flysystem\Adapter\Local('/path/to/data'),
new \EasyRdf_Graph(),
$formats,
'https://example.com/'
);
$filesystem = new \League\Flysystem\Filesystem($rdfAdapter);
$filesystem->addPlugin(new \Pdsinterop\Rdf\Flysystem\Plugin\AsMime($formats));
$server = new \Pdsinterop\Solid\Resources\Server($filesystem, new \Laminas\Diactoros\Response());