كل حِزم SDK

PHP

v1.4.0

allstak/sdk-php

التثبيت

تعذّر تحميل 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'));