PHP SDK

Shared core. Native adapters.

Understand the common PHP foundation or continue directly to the Laravel, Symfony or Nette implementation.

PHP 8.2+Core v0.2.0Production ready
01

Recommended

Use your framework adapter.

The adapter installs PHP Core automatically and adds native request tracking, route normalization, dependency injection and background delivery.

02

Language foundation

What PHP Core owns.

apirelio/php-core provides the stable event contract, customer and application value objects, metadata privacy rules, error-code extraction, HTTP retry orchestration and a locked NDJSON buffer.

Terminalbash
composer require apirelio/php-core:^0.2
LayerResponsibilityPackage
EventFactoryBuilds the common ingestion payload.PHP Core
MetadataSanitizerAllows only configured scalar metadata.PHP Core
HttpBatchTransportBatch delivery and retry orchestration.PHP Core
Route adapterReads the framework's normalized route.Framework
03

Advanced

Build another PHP adapter.

Implement the ingestion client or event transport contracts and create payloads through EventFactory with an EventContext. This keeps custom integrations compatible with every Apirelio dashboard.

Adapter importsphp
use Apirelio\Core\Contracts\EventTransport;
use Apirelio\Core\Contracts\IngestionClient;
use Apirelio\Core\Data\EventContext;
use Apirelio\Core\EventFactory;
Prefer an adapter

Applications using Laravel, Symfony or Nette should install the dedicated package instead of wiring PHP Core manually.

04

Compatibility

Supported PHP matrix.

PackageFrameworkPHP
apirelio/laravelLaravel 11–128.2–8.4
apirelio/symfonySymfony 6.4, 7.4, 8.x8.2–8.4
apirelio/netteNette 3.2–3.38.2+
apirelio/php-coreFramework independent8.2–8.4