PHP code example of tutorauk / laravel-braze-api

1. Go to this page and download the library: Download tutorauk/laravel-braze-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tutorauk / laravel-braze-api example snippets


// Resolve service directly from container and access the users endpoint
app(Braze::class)->users();

// Resolve via Facade and access the users endpoint
Braze::users(); 

// Resolve service via helper and access the users endpoint
braze()->users();
bash
BRAZE_API_KEY='apiKey'
BRAZE_REST_ENDPOINT=https://rest.fra-02.braze.eu