rudderstack / rudder-sdk-php
This package is abandoned and no longer maintained.
The author suggests using the rudder-php-sdk package instead.
RudderStack PHP library
1.0.1
2021-02-24 08:27 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- overtrue/phplint: ^1.1
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ^3.3
- dev-master
- v1.x-dev
- 1.0.1
- dev-url-update
- dev-nd4p90x-patch-3
- dev-nd4p90x-patch-2
- dev-nd4p90x-patch-1
- dev-retry_network_error
- dev-update_e2e_test
- dev-release_1.6.0_fix
- dev-fix_libcurl_error
- dev-coding_style_fixer
- dev-rename-method
- dev-limit_messagesize
- dev-e2e_test
- dev-gzip_header
- dev-RFC7231
- dev-add_backoff
- dev-proxy_configuration
- dev-host_configurable
- dev-update-ci
- dev-set-default-context
- dev-update_set_context_method
- dev-add-context_consumer-to-all-events
- dev-lib_curl_consumer
This package is auto-updated.
Last update: 2021-05-03 16:15:08 UTC
README
Please refer to this repo for the latest code.
What is RudderStack?
RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.
More information on RudderStack can be found here.
Getting Started with PHP SDK
Install rudder-sdk-php
using composer
git clone https://github.com/rudderlabs/rudder-sdk-php /my/app/folders/
Initialize the Client
require_once("/path/to/lib/Rudder.php");
Rudder::init(WRITE_KEY, array(
"data_plane_url" => DATA_PLANE_URL,
"consumer" => "lib_curl", // fork_curl
"debug" => true,
"max_queue_size" => 10000,
"batch_size" => 100
));
Send Events
Rudder::track(array(
"userId" => "f4ca124298",
"event" => "Signed Up",
"properties" => array(
"plan" => "Enterprise"
)
));
Contact Us
If you come across any issues while configuring or using this SDK, feel free to start a conversation on our Slack channel. We will be happy to help you.