Download the PHP package rudderstack/rudder-php-sdk without Composer

On this page you can find all versions of the php package rudderstack/rudder-php-sdk. 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 rudder-php-sdk

RudderStack

# What is RudderStack? [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rudderlabs/rudder-php-sdk) [RudderStack](https://rudderstack.com/) 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](https://github.com/rudderlabs/rudder-server). ## Getting Started with PHP SDK Install `rudder-php-sdk` using `composer` ## Initialize the ## SDK Initialization options Below parameters are optional and can be passed during SDK initialization. | Name | Type | Default value | Description | |:------------------------|:---------|:--------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `consumer` | String | `lib_curl` | To explicitly mark which consumer to use. | | `data_plane_url` | String | `hosted.rudderlabs.com` | The data plane URL. | | `debug` | Boolean | `false` | Whether to log messages and wait for a response. Makes any queuing consumers non-async, defaults to false. This will make the library block until a response has been received from the API, so it is not recommended for production use. | | `ssl` | Boolean | `true` | Whether to use SSL for the connection. | | `tls` | String | `false` | Whether to use TLS instead of SSL for the socket connection. | | `error_handler` | Function | `function ($code, $message) {}` | A handler which will be called on errors to aid in debugging. A function to handle errors, particularly useful for debugging. Note that if debug mode is not specified, then the error_handler will only be called on connection level errors and timeouts. | | `max_queue_size` | Number | `10000` | The max number of items in the queue . | | `flush_at` | Number | `100` | How many items to send in a single curl request . | | `timeout` | Number | `0.5` | The number of seconds to wait for the socket request to time out . | | `filename` | String | `/tmp/analytics.log` | The location to write the log file when file consumer is selected. | | `compress_request` | Boolean | `true` | Whether to use gzipped request payloads. This is supported for server versions 1.4.0 and above. | | `flush_inteval` | Number | `10000` | Frequency in milliseconds to send data using flush method execution. | | `curl_timeout` | Number | `0 (infinite)` | Set timeout for the curl connections. | | `curl_connecttimeout` | Number | `300` | Set connect timeout for the curl connections. | | `max_retries` | Number | `3` | Number of retries after the initial request for transient failures. | | `retry_base_delay` | Number | `100` | Base retry delay in milliseconds. | | `max_retry_delay` | Number | `30000` | Maximum retry backoff delay in milliseconds. | | `retry_jitter_ratio` | Number | `0.2` | Jitter ratio added to retry delays. | | `max_item_size_bytes` | Number | `32000` | Set maximum message item size in bytes. | | `max_queue_size_bytes` | Number | `512000` | Set maximum batch size in bytes. | | `filepermissions` | Number | `0644` | Set the file permissions for file consumer. | The `lib_curl` and `socket` consumers retry HTTP `429` and `5xx` responses, then return `false` after the retry budget is exhausted. The `fork_curl` consumer is fire-and-forget when `debug` is disabled, so it passes retry flags to the background curl process but cannot synchronously report final delivery failure. ## Send Events ## Acknowledgements This project is a fork of [analytics-php](https://github.com/segmentio/analytics-php) by [segmentio]. ## Contact Us If you come across any issues while configuring or using this SDK, feel free to start a conversation on our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.

All versions of rudder-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
vlucas/phpdotenv Version ^5.5
ramsey/uuid Version ^4.2.3
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 rudderstack/rudder-php-sdk contains the following files

Loading the files please wait ...