Download the PHP package uecode/segment-io-php without Composer

On this page you can find all versions of the php package uecode/segment-io-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package segment-io-php

Segment PHP Client

Build Status Quality Score Code Coverage Total Downloads

This library provides a Web Service Client for the Segment.io HTTP API using Guzzle v5.

Installation

Installation

Install the latest version with:

Basic Usage

Configuration Options

The client accepts an array of configuration options:

Setting Property Name Description
API Write Key write_key The Segment.io API Write Key
API Version version The API Version. Used to version the API (default: v1)
Batching batching A method of batching calls to the API to reduce latency of over the wire requests (supports: request or file) - use false to disable
Request Batching: Max Queue Size max_queue_size When using Request Batching, this is the total amount of Events to queue before flushing
Request Batching: Batch Size batch_size When using Request Batching, this is the total amount of Events sent in a single Request
File Batching: Log File log_file When using File Batching, this determines what file to log Events to

Using Batching

By default, this client will attempt to queue all calls to the API and send them out over a single batch request. Because of the blocking nature of PHP, this method reduces the amount of time the Client has to wait for requests to the API.

Batching does not apply to the import() method on the client.

There are two methods of Batching Available:

Request Batching

Note: This is enabled by default.

When making calls to the API, the events will be placed into a queue and will be flushed under one of two cases: when / if the max_queue_size is reached or at the end of the PHP Request.

Changing the Client options for max_queue_size and batch_size will affect how often the Client attempts to flush events.

File Batching

The file batching is a more performant method for making requests to Segment.io.

Each time a track or identify call is made, it will record that call to a log file. The log file is then uploaded “out of band” by running the included parse command.

You can change the location of the log file by using the log_file Client configuration option. If a log_file is not specified, it will default to: /tmp/segment-io.log.

To upload the Events from the log file to Segment.io, run the included parse command:

./parse YOUR_WRITE_KEY --file /tmp/segment-io.log

Tracking HTTP API Documentation

Documentation is available for the Tracking HTTP API at segment.io/docs/tracking-api/.

License

This software is released under the MIT License. See the license file for details.


All versions of segment-io-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
guzzlehttp/guzzle Version 5.3.1
guzzlehttp/guzzle-services Version ~0.6
monolog/monolog Version ~1.7
symfony/filesystem Version ~2.5
symfony/console Version ~2.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uecode/segment-io-php contains the following files

Loading the files please wait ....