Download the PHP package srkt/amplitude-php without Composer
On this page you can find all versions of the php package srkt/amplitude-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package amplitude-php
Amplitude PHP SDK
Multifunctional Amplitude REST API PHP SDK with PSR-7 and PSR-18 support (HTTP Request, Response and Client interfaces).
- A simple interface for tracking your events and identities into Amplitude service.
- Can send both single events (identities) and bunch of them.
- Uses PSR-7 interfaces for requests and responses, PSR-18 for HTTP client. This allows you to utilize other PSR-18 compatible libraries SDK. Guzzle HTTP client used by default.
- Supports Amplitude features: platform data, revenue data, etc.
Installing Amplitude PHP SDK
The recommended way to install SDK is through Composer.
Examples
There are two types of library usage: simple "one method call" and full featured OOP styled one.
Event tracking
Create client
Simple
Full event object
Event with no userId but with deviceId
Multiple events in one request
User Identities tracking
Simple
Full identity object
Multiple identities in one request
Advanced usage
You can change default Guzzle HTTP client to any other supports PSR-18 interface, or you can setup Guzzle client options.
All versions of amplitude-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
guzzlehttp/guzzle Version ^6.5
ext-json Version *
psr/http-client Version ^1.0
guzzlehttp/guzzle Version ^6.5
ext-json Version *
psr/http-client Version ^1.0
The package srkt/amplitude-php contains the following files
Loading the files please wait ....