primedata-ai / prime-lara
This package is abandoned and no longer maintained.
No replacement package was suggested.
PrimeDATA sdk for Laravel
0.3.3
2020-09-14 05:09 UTC
Requires
- ext-json: *
- enqueue/enqueue: 0.9.2
- enqueue/redis: ^0.9.12
- predis/predis: ^1.1
- primedata-ai/analytics-php: v0.3.*
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.7
- mockery/mockery: ^1.3
- phpunit/phpunit: ^7.4
README
// check: config/queue.php return [ 'connections' => [ 'redis' => [ 'driver' => 'redis', 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, 'persistent' => env('REDIS_QUEUE_PERSISTENCE', true), 'host' => env('REDIS_QUEUE_SERVER_HOST'), 'port' => env('REDIS_QUEUE_SERVER_PORT'), 'database' => env('REDIS_QUEUE_SERVER_DB'), 'password' => env('REDIS_QUEUE_SERVER_PASSWORD'), 'block_for' => null, 'cluster' => 'predis', ], ], ];
//config/prime.php return [ 'source_key' => 'web-1fcrwsKgV0Zk2EdpCFYIvYbNRgs', 'write_key' => '1fcrwstLt8g0ggTL5K87a6O6umy', ];
use Illuminate\Support\ServiceProvider; use Prime\LaravelBuffer; use Prime\QueueBuffer; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { $this->app->singleton(QueueBuffer::class, LaravelBuffer::class); } /** * Bootstrap any application services. * * @return void */ public function boot() { // } }