2017 © Pedro Peláez
 

library kinesis

Kinesis wrapper to make it easy to work with streams

image

vsmoraes/kinesis

Kinesis wrapper to make it easy to work with streams

  • Friday, December 23, 2016
  • by vsmoraes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 179 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kinesis Manager

A simple way to fetch data from Kinesis streams, (*1)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Instalation

Add:, (*3)

"vsmoraes/kinesis": "dev-master"

To your composer.json, (*4)

or Run:, (*5)

composer require vsmoraes/kinesis dev-master

Example of usage

<?php
include __DIR__ . '/vendor/autoload.php';

use Aws\Kinesis\KinesisClient;
use Vsmoraes\Kinesis\Checkpoint\Adapter\ResourceTagAdapter;
use Vsmoraes\Kinesis\Manager;

$kinesis = new KinesisClient([
    'region' => 'us-east-1',
    'version' => 'latest',
    'profile' => 'default'
]);
$checkpoint = new ResourceTagAdapter($kinesis);
$manager = new Manager($kinesis, $checkpoint);

$records = [];
foreach ($manager->records('stream-name-here') as $record) {
    $records[] = $record;
}

print_r($records);

The Versions

23/12 2016

dev-master

9999999-dev

Kinesis wrapper to make it easy to work with streams

  Sources   Download

MIT

The Requires

 

The Development Requires