1. Go to this page and download the library: Download ezappslab/laravel-evolver 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/ */
ezappslab / laravel-evolver example snippets
declare(strict_types=1);
use Infinity\Evolver\Contracts\Action;
return new class extends Action
{
public function introducedIn(): ?string
{
return '1.2.0';
}
public function
use Infinity\Evolver\Api\ApiVersionContext;
public function __invoke(ApiVersionContext $context): array
{
return ['api_version' => $context->version()->value];
}