Download the PHP package jobinja/threads-io-php-plug without Composer
On this page you can find all versions of the php package jobinja/threads-io-php-plug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jobinja/threads-io-php-plug
More information about jobinja/threads-io-php-plug
Files in jobinja/threads-io-php-plug
Package threads-io-php-plug
Short Description Plug Threads.io to your PHP application and start collecting events data from your users.
License MIT
Homepage https://jobinja.ir
Informations about the package threads-io-php-plug
Jobinja's Threads.io PHP plug
What is this?
This project is a PHP connector to Threads.io originally forked from wabel/threads-io-php-plug. Use this plug to identify your users, track events and page visits or remove them from your Threads.io account. Initialize
Here is a basic example on how you can use Wabel's Threads.io PHP Plug :
The two main compound of this package are the ThreadsIoClient and ThreadsIoService.
The ThreadsIoClient is a programmatic implementation of the Threads.io API. It ensures that the data are sent with the format expected by the API.
The ThreadsIoService is the main class to instantiate and use. It's meant to use the package Entity system, meaning manipulating Users, Event and Page objects easily. Every call methods expects an object implementing the
Interfaces and Entites
As explained earlier, the ThreadsIoService is manipulating entities. A User entity, Event entity or Page entity is the instantiation of an existing class of your PHP application implementing respectively the UserThreadableInterface, EventThreadableInterface, PageThreadableInterface. For instance, a Member class that is used for manipulating users in your application is a good candidate for implementing the UserThreadable interface. If you have no classes that could implement the ThreadableInterfaces, you can instantiate manually one of the Wabel\Entities (User, Event or Page) provided in this package.
How to use the ThreadsIoService
In version 1.0.0, we introduced the first use of the basic functions "identify", "track", "page" and "remove". Here's a basic usage of the service :
Feature To-Do
- Add ability to send request on PHP's shutdown event.
- Add ability to use Guzzle6's async requests for sending multiple requests asynchronously.
About Threads.io
Threads.io provide a service meant for sending "Automated Behavior-Driven Emails" based on user activity and workflow rules setted by the account administrator. You can consult the original API here. Feel free to make any pull requests if you notice any API upgrades.
About Jobinja
Jobinja is an online Job seeking and HR platform.
About Wabel
Wabel is the online marketplace for the european food industry. In our effort to integrate our web platform to more and more web services, we (Wabel's dev team!) are happy to share our work with Threads.io's community.