PHPackages                             segmentio/segmentio - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. segmentio/segmentio

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

segmentio/segmentio
===================

Segmentio Analytics PHP Library

1.1.1(11y ago)031.9k—0%MITPHPPHP &gt;=5.3.3

Since Feb 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rinzaimedia/segmentio)[ Packagist](https://packagist.org/packages/segmentio/segmentio)[ Docs](https://segment.io/libraries/php)[ RSS](/packages/segmentio-segmentio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (22)Used By (0)

segmentio
=========

[](#segmentio)

segmentio is a php client for [Segment](https://segment.com) using namespace setups for laravel5.

when calling the wrapper add the following

use Vendor\\Segmentio\\Segmentio\\Lib\\Segment; and then \\Segment::init("your\_write\_key"); along with \\Segment::identify(); or \\Segment::track(); wherever you need to insert into segmentio.

Documentation
-------------

[](#documentation)

Documentation is available at [segment.com/libraries/php](https://segment.com/libraries/php)

License
-------

[](#license)

```
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

```

(The MIT License)

Copyright (c) 2014 Segment Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~36 days

Recently: every ~60 days

Total

21

Last Release

4114d ago

Major Versions

0.4.8 → 1.x-dev2014-06-17

PHP version history (2 changes)0.2.2PHP &gt;=5.3

1.1.1PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3771d43d629c45237c6428cbd2dde2c29a55db197cce7c1c99603afb70a256f?d=identicon)[rinzaimedia](/maintainers/rinzaimedia)

---

Top Contributors

[![yields](https://avatars.githubusercontent.com/u/1661587?v=4)](https://github.com/yields "yields (25 commits)")[![calvinfo](https://avatars.githubusercontent.com/u/487539?v=4)](https://github.com/calvinfo "calvinfo (8 commits)")[![sdstevehowe](https://avatars.githubusercontent.com/u/171282?v=4)](https://github.com/sdstevehowe "sdstevehowe (4 commits)")[![Cethy](https://avatars.githubusercontent.com/u/735030?v=4)](https://github.com/Cethy "Cethy (3 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (2 commits)")[![asm89](https://avatars.githubusercontent.com/u/657357?v=4)](https://github.com/asm89 "asm89 (1 commits)")[![marshally](https://avatars.githubusercontent.com/u/132798?v=4)](https://github.com/marshally "marshally (1 commits)")[![reinpk](https://avatars.githubusercontent.com/u/658545?v=4)](https://github.com/reinpk "reinpk (1 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")[![loris](https://avatars.githubusercontent.com/u/8362?v=4)](https://github.com/loris "loris (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![ianstormtaylor](https://avatars.githubusercontent.com/u/311752?v=4)](https://github.com/ianstormtaylor "ianstormtaylor (1 commits)")[![j0ew00ds](https://avatars.githubusercontent.com/u/530956?v=4)](https://github.com/j0ew00ds "j0ew00ds (1 commits)")[![jimrubenstein](https://avatars.githubusercontent.com/u/187023?v=4)](https://github.com/jimrubenstein "jimrubenstein (1 commits)")

---

Tags

analyticssegmentioanalytics.js

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[segmentio/analytics-php

Segment Analytics PHP Library

25621.5M25](/packages/segmentio-analytics-php)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.2k94.6k5](/packages/panphp-pan)[zumba/amplitude-php

PHP SDK for Amplitude

409.5M5](/packages/zumba-amplitude-php)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)

PHPackages © 2026

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