Skip to content

Instantly share code, notes, and snippets.

View filipetomita's full-sized avatar

Filipe Tomita filipetomita

  • Brazil
View GitHub Profile
<?php
interface DatabaseDriver {
public function save(string $data);
}
abstract class AbstractPersistence {
private $driver;
@fbrnc
fbrnc / consumer.php
Last active February 13, 2023 11:25
AWS Kinesis Example for PHP (using the AWS SDK for PHP)
<?php
// curl -sS https://getcomposer.org/installer | php
// php composer.phar require aws/aws-sdk-php
// export AWS_ACCESS_KEY_ID=...
// export AWS_SECRET_ACCESS_KEY=...
$streamName = '<INSERT_YOUR_STREAMNAME_HERE>';
$numberOfRecordsPerBatch = 10000;