cinexpert / pubnub
CineXpert PubNub
1.0.3
2023-01-14 21:23 UTC
Requires
- php: >=7.4
- pubnub/pubnub: ^4.7
Requires (Dev)
- phpstan/phpstan: ^1.9
- squizlabs/php_codesniffer: ^3.7
README
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');