2017 © Pedro Peláez
 

library segment

A Segment Bridge For Laravel 5

image

alt-three/segment

A Segment Bridge For Laravel 5

  • Saturday, March 3, 2018
  • by joecohens
  • Repository
  • 5 Watchers
  • 25 Stars
  • 101,079 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 16 Versions
  • 10 % Grown

The README.md

Alt Three Segment, (*1)

Build Status StyleCI Status Software License Packagist Downloads Latest Version , (*2)

Installation

Alt Three Segment is a Segment bridge for Laravel. This version requires PHP 7.1-7.4, and supports Laravel 5.5-8. Simply require the package using Composer:, (*3)

$ composer require alt-three/segment:^3.5

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., (*4)

Configuration

Alt Three Segment requires configuration., (*5)

To get started, you'll need to publish all vendor assets:, (*6)

$ 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., (*7)

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., (*8)

Identify the user

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

Track actions

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

Security

Our full security policy is available to read here., (*9)

License

Alt Three Segment is licensed under The MIT License (MIT)., (*10)

The Versions

03/03 2018

dev-master

9999999-dev

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen
by Alt Three

api bridge alt three segment.io segment segment.com

03/03 2018

v3.0.0

3.0.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alt Three

api bridge alt three segment.io segment segment.com

03/03 2018

dev-queue-flush

dev-queue-flush

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alt Three

api bridge alt three segment.io segment segment.com

02/01 2018

v2.0.1

2.0.1.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alt Three

api bridge alt three segment.io segment segment.com

02/01 2018

2.0.x-dev

2.0.9999999.9999999-dev

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alt Three

api bridge alt three segment.io segment segment.com

06/08 2017

v2.0.0

2.0.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

01/01 2017

v1.4.0

1.4.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

01/01 2017

1.4.x-dev

1.4.9999999.9999999-dev

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

22/04 2016

v1.3.0

1.3.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

24/01 2016

v1.2.2

1.2.2.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

03/01 2016

v1.2.1

1.2.1.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

08/11 2015

v1.2.0

1.2.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

19/10 2015

v1.1.0

1.1.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

06/10 2015

v1.0.2

1.0.2.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

24/07 2015

v1.0.1

1.0.1.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com

06/07 2015

v1.0.0

1.0.0.0

A Segment Bridge For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

api bridge alt three segment.io segment segment.com