PHPackages                             alexvergara/laravel-aws-timestream - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. alexvergara/laravel-aws-timestream

ActiveLibrary[Database &amp; ORM](/categories/database)

alexvergara/laravel-aws-timestream
==================================

Fork from Norbybaru - Library to interact with AWS Timestream service via API - Downgrade for Laravel6 + PHP7 - Fixes for AWS Config

v0.0.1(3y ago)06MITPHPPHP ^7.2

Since Sep 29Pushed 3y agoCompare

[ Source](https://github.com/alexvergara/laravel-aws-timestream)[ Packagist](https://packagist.org/packages/alexvergara/laravel-aws-timestream)[ Docs](https://github.com/norbybaru/laravel-aws-timestream)[ RSS](/packages/alexvergara-laravel-aws-timestream/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel AWS Timestream
======================

[](#laravel-aws-timestream)

[![PHPUnit Tests](https://github.com/norbybaru/laravel-aws-timestream/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/norbybaru/laravel-aws-timestream/actions/workflows/run-tests.yml)[![PHPStan](https://github.com/norbybaru/laravel-aws-timestream/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/norbybaru/laravel-aws-timestream/actions/workflows/phpstan.yml)

AWS Timestream is a fast, scalable, and serverless time series database service. This package is an opinionated implementation to query timestream and ingest data into timestream.

It provides a query builder class which has common timeseries sql function. This was inspired by Laravel Eloquent ORM. See supported query functions `AlexVergara\AwsTimestream\Contract\QueryBuilderContract`

It also provide a payload builder class to format your data correctly to ingest into timestream. See `AlexVergara\AwsTimestream\Contract\PayloadBuilderContract`

Install
-------

[](#install)

```
composer require norbybaru/laravel-aws-timestream
```

Configuration
-------------

[](#configuration)

- Publish config

```
php artisan vendor:publish --provider="AlexVergara\AwsTimestream\TimestreamServiceProvider" --tag="timestream-config"
```

- Open `timestream.php` config file and setup your databse name and tables
- Setup you AWS Timestream keys and permissions with the following enviroment variable

```
AWS_TIMESTREAM_KEY=
AWS_TIMESTREAM_SECRET=
AWS_TIMESTREAM_PROFILE=
AWS_TIMESTREAM_VERSION=
AWS_TIMESTREAM_REGION=

```

Basic Usage
-----------

[](#basic-usage)

### Query Timestream

[](#query-timestream)

Using `TimestreamBuilder::query()` will give autocomplete of all available functions

1. Using `TimestreamBuilder` to build query to be passed onto `TimestreamReaderDto` which generate am object that can be consumed by `TimestreamService` query function

```
