jonesrussell / northcloud-laravel
Shared article ingestion pipeline for North Cloud-connected Laravel sites
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jonesrussell/northcloud-laravel
Requires
- php: ^8.4
- ext-json: *
- ext-pcntl: *
- ext-redis: *
- illuminate/console: ^12.0
- illuminate/database: ^12.0
- illuminate/events: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
README
Shared Laravel package for North Cloud article ingestion via Redis pub/sub.
Requirements
- PHP 8.4+
- Laravel 12
- ext-redis
- ext-pcntl
Installation
composer require jonesrussell/northcloud-laravel
Publish the configuration file:
php artisan vendor:publish --tag=northcloud-config
Configuration
Add the following variables to your .env file:
| Variable | Description | Default |
|---|---|---|
NORTHCLOUD_REDIS_CONNECTION |
Redis connection name to use | northcloud |
NORTHCLOUD_CHANNELS |
Comma-separated Redis channels to subscribe to | articles:default |
NORTHCLOUD_MIN_QUALITY_SCORE |
Minimum quality score for ingested articles | 0 |
Artisan Commands
| Command | Description |
|---|---|
articles:subscribe |
Subscribe to Redis channels and ingest articles |
articles:status |
Show connection and configuration status |
articles:stats |
Display article statistics |
articles:test-publish |
Publish a test article to Redis |
articles:replay |
Re-process existing articles |
Testing
vendor/bin/pest
License
MIT