1. Go to this page and download the library: Download onamfc/eloquent-json-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/ */
onamfc / eloquent-json-schema example snippets
use App\Schemas as S;
#[S\SchemaName('User')]
#[S\RequestOnly(['password'])]
class User extends Model {
#[S\Title('User ID')]
#[S\Format('uuid')]
public $id;
#[S\Description('Primary email')]
#[S\Format('email')]
public $email;
#[S\Enum(['basic','pro','enterprise'])]
public $plan;
}