cinexpert/tools

CineXpert Tools

3.0.0 2023-07-01 11:37 UTC

This package is auto-updated.

Last update: 2024-03-01 00:16:55 UTC


README

CircleCI

This repository contains tools & services like a Queue, Encryption, etc. Every tool comes with an adapter pattern.

Install dependencies

$ ./composer.phar install

PHPCS

$ vendor/bin/phpcs --standard=phpcs.xml ./src

PHPUnit

$ cd tests && ../vendor/bin/phpunit

Basic Usage Example

$config = new \Cinexpert\Tools\ToolsConfig();
$config
    ->setAwsRegion('eu-west-1')
    ->setAwsKey('...')
    ->setAwsSecret('...');

$tools = new \Cinexpert\Tools\Tools($config);

$queue = $tools->get('queue');

$queue->sendMessage('https://my-queue-url', 'message text');