Skip to content
Feralin

Developers

Laravel: quickstart

Install and first-use steps for sending events to Feralin with Laravel. Code samples come from the SDK's own README and statuses from the capability record.

Install

feralin/feralin-laravel 0.1.0 is published on Packagist; install it with your package manager using the command below.

# Laravel uygulamanızın dizininde (DEPO: deponun yolu)
composer config repositories.feralin-php '{"type": "path", "url": "DEPO/sdks/php", "options": {"symlink": false}}'
composer config repositories.feralin-laravel '{"type": "path", "url": "DEPO/sdks/php-laravel", "options": {"symlink": false}}'
composer require feralin/feralin-php:0.1.0 feralin/feralin-laravel:0.1.0
php artisan vendor:publish --tag=feralin-config
cd sdks/php-laravel
composer install
composer test

First use

FERALIN_PROJECT_KEY=pk_live_…
FERALIN_COLLECT_URL=https://collect.example.com
use Feralin\Consent;
use Feralin\Laravel\ConsentResolver;
use Feralin\Laravel\Facades\Feralin;
use Illuminate\Http\Request;

final class Izin implements ConsentResolver
{
    public function resolve(Request $request): ?Consent
    {
        return new Consent($request->cookie('izin') === 'evet');
    }
}

Feralin::track('order_completed', ['order_id' => 'ord_1']);

Code samples are taken as they are from sdks/php-laravel/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Laravel capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Laravel verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.