PHP code example of lasselehtinen / mockingbird-api-client
1. Go to this page and download the library: Download lasselehtinen/mockingbird-api-client 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/ */
lasselehtinen / mockingbird-api-client example snippets
use Lasselehtinen\MockingbirdApiClient\Editions\EditionService;
$edition = app(EditionService::class);
$edition = $edition->get('1ca73850-96c2-4ac3-8b98-44d35c9378d1');
use Lasselehtinen\MockingbirdApiClient\Editions\EditionService;
final class EditionController
{
public function __construct(
private readonly EditionService $edition,
) {}
public function show(string $id)
{
return $this->edition->get($id);
}
}