PHP code example of alexfigures / symfony-jsonapi-bundle

1. Go to this page and download the library: Download alexfigures/symfony-jsonapi-bundle 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/ */

    

alexfigures / symfony-jsonapi-bundle example snippets


AlexFigures\JsonApi\JsonApiBundle::class => ['all' => true],

use AlexFigures\JsonApi\Resource\Attribute\JsonApiResource;

#[JsonApiResource(type: 'articles')]
class Article
{
    // Add Doctrine mapping, one API ID and exposed attributes.
}