Download the PHP package immobiliarelabs/braze-sdk without Composer

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

Braze PHP SDK

CI codecov Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

A PHP client to interact with Braze API

Braze offers a cloud-based customer engagement platform for multichannel marketing. This SDK allows you to integrate its REST API into a PHP application.

Table of Contents

Features

Install

Add the SDK as a dependency running:

If not already included in your project, to make http requests, you need to install any combination of packages that implements:

for example by installing and you are ready to use the SDK, also with parallel requests.

Alternatively, it is also possible to use any http client by creating the appropriate adapter.

Usage

Example

Before instantiating the SDK it is necessary to create the http client and its adapter.

This example is for the Symfony http client, but the flow is the same whether you are using a PSR-18 client or a custom one. Then you can create the SDK instance.

Now you can start making requests by creating one and passing it to the appropriate endpoint.

You can see a few complete examples in the repository.

Custom user attributes

To set custom User attributes use the or methods available in the class.

Endpoints

Endpoints are organized by url prefix. The SDK supports all the Braze endpoints:

Validation and dry-run

The SDK does a formal validation of the request before executing it. It is however possible to disable it completely:

or just the strict one, since Braze partially executes requests when possible:

By default, the SDK performs strict validation.

If you want to validate your requests without sending them to Braze you can enable dry-run mode:

HTTP client adapter

If, in your project, you already have a http client which does not implement one of the two supported interfaces (Symfony and PSR18), and you don't want to install another one, just define an adapter that implements the interface, and use it when instantiate the SDK.

Parallel requests

If the chosen http client supports asynchronous calls, you can exploit that to make parallel requests to Braze in this way:

The response objects will be filled with the values obtained only after the call to flush.

Compatibility

Version Status PHP compatibility
1.x maintained >=7.2
2.x maintained >=8.0

Requirements

Powered Apps

Braze PHP SDK was created by the PHP team at ImmobiliareLabs, the Tech dept of Immobiliare.it, the #1 real estate company in Italy.

We are currently using this SDK to stay in touch with our users.

If you are using Braze PHP SDK in production drop us a message.

Contributing

Any questions, bug reports or suggestions for improvement are very welcome. See the contributing file for details on how to contribute.

Changelog

Please refer to the changelog notes.

License

Braze PHP SDK is licensed under the MIT license.
See the LICENSE file for more information.


All versions of braze-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
symfony/http-client-contracts Version ^2.4 || ^3.0
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 immobiliarelabs/braze-sdk contains the following files

Loading the files please wait ....