Download the PHP package sitruc/keenio without Composer
On this page you can find all versions of the php package sitruc/keenio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sitruc/keenio
More information about sitruc/keenio
Files in sitruc/keenio
Informations about the package keenio
A convenient wrapper around the Keen.io PHP SDK for Laravel
Using this package you can send events to keen.io in laravel elegance. Here are a few examples from basic to elegant.
The most basic example, using the facade which accepts both a KeenEvent or the name and data directly.
Or pass a KeenEvent
If you prefer, you can send the event directly.
Queuing events.
Use keen.io's data enrichment.
Methods are fluent so the above example can become.
The following enrichment values are accepted. You can read more about data enrichment, also known as 'Add Ons' in the keen.io documentation
Subclassing KeenEvent can be even more powerful.
Behind the scenes this packages uses laravel's dispatch handler. This means you can implement the ShouldQueue
interface and dispatch onto specific queues just like you would any other job.
Here is an example of reporting a registration event on a keenio queue with enriched created_at and upgrade_date. Simple and elegant!
Install
This package can be installed through Composer.
You must install this service provider.
This package also comes with a facade, which provides an easy way to call the the class.
This package requires a you to add your project_id
write_key
read_key
and enabled
to the services
config file.
the enabled
flag is useful if you want to shut off keen reporting in certain environments.
Testing
Run the tests with:
or
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Curtis Thorne
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of keenio with dependencies
keen-io/keen-io Version ~2.5
illuminate/support Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0
illuminate/filesystem Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0
illuminate/config Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0
illuminate/contracts Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0