PHP code example of arquivei / events-sender

1. Go to this page and download the library: Download arquivei/events-sender 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/ */

    

arquivei / events-sender example snippets




$exporter = new \Arquivei\Events\Sender\Exporters\File('filePath');

$sender = new \Arquivei\Events\Sender\Sender($exporter);

/**
 * @param \Arquivei\Events\Sender\Schemas\ClassicSchema $schema
 * @param string $stream
 */
$sender->push($schema, $stream);



$exporter = new \Arquivei\Events\Sender\Exporters\File('filePath');

$sender = new \Arquivei\Events\Sender\Sender($exporter);

/**
 * @param \Arquivei\Events\Sender\Schemas\LatestSchema $schema
 * @param string $stream
 */
$sender->push($schema, $stream);



$exporter = new \Arquivei\Events\Sender\Exporters\File('filePath');

$sender = new \Arquivei\Events\Sender\Sender($exporter);

/**
 * @param \Arquivei\Events\Sender\Factories\LatestSchemaFactory $schema
 * @param string $stream
 */
$sender->push($schema, $stream);



$exporter = new \Arquivei\Events\Sender\Exporters\File('filePath');

$sender = new \Arquivei\Events\Sender\Sender($exporter);

/**
 * @param \Arquivei\Events\Sender\Factories\ClassicSchemaFactory $schema
 * @param string $stream
 */
$sender->push($schema, $stream);