PHP code example of qortex / laravel-emarsys-connector

1. Go to this page and download the library: Download qortex/laravel-emarsys-connector 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/ */

    

qortex / laravel-emarsys-connector example snippets


return [
    'username' => env('EMARSYS_USERNAME', ''),
    'secret' => env('EMARSYS_SECRET', ''),
];

return [
    'username' => env('EMARSYS_USERNAME', ''),
    'secret' => env('EMARSYS_SECRET', ''),
    'apiUrl' => env('EMARSYS_API_URL', ''),
];
 php
use Qortex\Emarsys\Services\Connector as EmarsysConnector;
use Qortex\Laravel\Emarsys\Services\ConnectorService as EmarsysConnectorService;

$emarsysConnector = new EmarsysConnectorService()->getConnector();