1. Go to this page and download the library: Download artisan-build/assay-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/ */
artisan-build / assay-client example snippets
use Illuminate\Support\Facades\Context;
Context::add('assay.subject', 'user:123');
use ArtisanBuild\AssayClient\CaptureDriver;
$app->bind(CaptureDriver::class, MyDriver::class);
use ArtisanBuild\AssayClient\SourceInfo;
use ArtisanBuild\AssayClient\Testing\DriverConformance;
use ArtisanBuild\AssayClient\Testing\DriverScenario;
DriverConformance::assert($driver, new DriverScenario(
driverName: 'vendor-ai',
source: new SourceInfo('vendor/ai', '1.2.3'),
exercise: fn (string $canary) => $source->runScenario($canary),
expectedRecords: $expectedRecords,
canary: 'scenario-secret-canary',
supportsFailover: true,
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.