PHP code example of kumwe / producer

1. Go to this page and download the library: Download kumwe/producer 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/ */

    

kumwe / producer example snippets


use Kumwe\Producer\Schema\StudioDocumentSchemaRegistry;

$validation = StudioDocumentSchemaRegistry::fromVendoredCorpus()
    ->validate('blueprint', $decodedDocument);

if (!$validation->valid()) {
    foreach ($validation->diagnostics() as $diagnostic) {
        // $diagnostic->instancePath, ->keyword, ->message
    }
}
sh
composer validate --strict
composer install --no-interaction
php tools/check.php   # lint, API/architecture gates, contract proof, suite