1. Go to this page and download the library: Download scedel/schema 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/ */
scedel / schema example snippets
use Scedel\Parser\ParserService;
use Scedel\Schema\Infrastructure\FilesystemIncludeResolver;
use Scedel\Schema\Infrastructure\FilesystemSourceLoader;
use Scedel\Schema\RepositoryBuilder;
$builder = new RepositoryBuilder(
new ParserService(),
new FilesystemIncludeResolver(),
new FilesystemSourceLoader(),
);
$repository = $builder->buildFromFile('/absolute/path/schema.scedel');
$type = $repository->getType('Post');
$validator = $repository->getValidator('String', 'noAds');