التثبيت
تعذّر تحميل README من GitHub. نعرض هنا تعليمات التثبيت المخزّنة من سجل SDK.
composer
composer require allstak/sdk-phpالبدء السريع
<?php
require __DIR__ . '/vendor/autoload.php';
use AllStak\AllStak;
AllStak::init([
'apiKey' => getenv('ALLSTAK_API_KEY'),
'environment' => getenv('ALLSTAK_ENVIRONMENT') ?: 'production',
'release' => getenv('ALLSTAK_RELEASE') ?: '[email protected]',
]);
AllStak::captureException(new \RuntimeException('hello from allstak-php'));