PHP code example of rfrommherz / api

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

    

rfrommherz / api example snippets


Rf\ApiBundle\JwtBundle::class => ['dev' => true],

use Rf\ApiBundle\Dto\ApiDto;
use Symfony\Component\Validator\Constraints as Assert;

class Fetch extends ApiDto
{
    /**
     * @Assert\NotBlank
     * @Assert\Url
     * @var string
     */
    private string $repositoryUrl;

public function index(Fetch $fetch): Response
{
    ...
}