PHP code example of yoanm / jsonrpc-server-doc-sdk

1. Go to this page and download the library: Download yoanm/jsonrpc-server-doc-sdk 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/ */

    

yoanm / jsonrpc-server-doc-sdk example snippets


  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\TypeDocNormalizer;

  $typeDocNormalizer = new TypeDocNormalizer();
  

  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\TagDocNormalizer;

  $tagDocNormalizer = new TagDocNormalizer();
  

  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\MethodDocNormalizer;

  $errorDocNormalizer = new ErrorDocNormalizer($typeDocNormalizer);
  

  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\MethodDocNormalizer;

  $tagDocNormalizer = new MethodDocNormalizer(
    $typeDocNormalizer,
    $errorDocNormalizer
  );
  

  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\ServerDocNormalizer;
  use Yoanm\JsonRpcServerDoc\Infra\Normalizer\HttpServerDocNormalizer;

  $normalizer = new ServerDocNormalizer(
    $methodDocNormalizer,
    $tagDocNormalizer,
    $errorDocNormalizer
  );

  $httpNormalizer = new HttpServerDocNormalizer($normalizer);