PHPackages                             lifeonscreen/segment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. lifeonscreen/segment

ActiveLibrary[API Development](/categories/api)

lifeonscreen/segment
====================

A Segment Bridge For Laravel 5

v3.1.2(7y ago)0240MITPHPPHP ^7.1.3

Since Jul 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/LifeOnScreen/Segment)[ Packagist](https://packagist.org/packages/lifeonscreen/segment)[ RSS](/packages/lifeonscreen-segment/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (6)Versions (18)Used By (0)

Alt Three Segment
=================

[](#alt-three-segment)

A [Segment](https://segment.com/) bridge for Laravel 5.

Installation
------------

[](#installation)

This version requires [PHP](https://php.net) 7.1 or 7.2, and supports Laravel 5.5 - 5.8 only.

To get the latest version, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require alt-three/segment
```

Once installed, if you are not using automatic package discovery, then you need to register the `AltThree\Segment\SegmentServiceProvider` service provider in your `config/app.php`.

Configuration
-------------

[](#configuration)

Alt Three Segment requires configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

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
-----

[](#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](https://segment.com/docs/libraries/php/quickstart) however, you'll want to replace the `Analytics` classname with `Segment` - plus, you don't need to call `class_alias`.

### Identify the user

[](#identify-the-user)

```
Segment::identify([
    "userId" => "12345abcde",
    "traits" => [
        "name"  => "James Brooks",
        "email" => "test@test.com",
    ]
]);
```

### Track actions

[](#track-actions)

```
Segment::track([
    "userId"     => "12345abcde",
    "event"      => "Did something",
    "properties" => [
        "was_awesome" => true,
    ]
]);
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please e-mail us at . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

Alt Three Segment is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~84 days

Recently: every ~110 days

Total

17

Last Release

2616d ago

Major Versions

v1.4.0 → v2.0.02017-08-06

v2.0.1 → v3.0.02018-03-03

PHP version history (3 changes)v1.0.0PHP &gt;=5.5.9

v2.0.0PHP ^7.0

v3.0.0PHP ^7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38758825?v=4)[LifeOnScreen](/maintainers/LifeOnScreen)[@LifeOnScreen](https://github.com/LifeOnScreen)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (63 commits)")[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (3 commits)")[![markosorec](https://avatars.githubusercontent.com/u/3768072?v=4)](https://github.com/markosorec "markosorec (3 commits)")[![coquer](https://avatars.githubusercontent.com/u/1929689?v=4)](https://github.com/coquer "coquer (1 commits)")[![danrovito](https://avatars.githubusercontent.com/u/8322674?v=4)](https://github.com/danrovito "danrovito (1 commits)")

---

Tags

apiAlt ThreeBridgesegmentiosegmentsegment.comLifeOnScreen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lifeonscreen-segment/health.svg)

```
[![Health](https://phpackages.com/badges/lifeonscreen-segment/health.svg)](https://phpackages.com/packages/lifeonscreen-segment)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

3366.8k2](/packages/gregoriohc-laravel-trello)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
