Download the PHP package sevenspan/segment-php-sdk without Composer
On this page you can find all versions of the php package sevenspan/segment-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sevenspan/segment-php-sdk
More information about sevenspan/segment-php-sdk
Files in sevenspan/segment-php-sdk
Informations about the package segment-php-sdk
Installation
SevenSpan Segment is a Segment bridge for Laravel. This version requires PHP 8.2, and supports Laravel 9 and 10. Simply require the package using Composer:
Once installed, if you are not using automatic package discovery, then you need to register the SevenSpan\SegmentPhpSdk\SegmentServiceProvider
service provider in your config/app.php
.
Configuration
SevenSpan Segment requires configuration.
To get started, you'll need to publish all vendor assets:
This will create a config/segment.php
file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.
Usage
Once you've set your write_key
value in the configuration, you're ready to go! For the most part you can follow Segments own instructions however, you'll want to replace the Analytics
classname with Segment
- plus, you don't need to call class_alias
.
Identify the user
Track actions
Security
Our full security policy is available to read here.
License
SevenSpan Segment is licensed under The MIT License (MIT).
All versions of segment-php-sdk with dependencies
illuminate/config Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
segmentio/analytics-php Version ~3.5.0 || ^3.7.0 || ^3.8.0