mattitjaab / laravel-cision-feed
Fetch and parse Cision press releases via RSS and article HTML in Laravel.
Fund package maintenance!
Mattitja AB
Requires
- php: ^8.3
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0
- spatie/laravel-package-tools: ^1.16
- symfony/css-selector: 7.4.x-dev
- symfony/dom-crawler: 7.4.x-dev
Requires (Dev)
- larastan/larastan: ^2.9 || ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1 || ^7.10
- orchestra/testbench: ^8.22 || ^9.0 || ^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3 || ^2.0
- phpstan/phpstan-deprecation-rules: ^1.1 || ^2.0
- phpstan/phpstan-phpunit: ^1.3 || ^2.0
- spatie/laravel-ray: ^1.35
README
A Laravel package for retrieving and parsing data from Cision News. Fetch press releases, financial reports, media posts, and structured article content using a simple and expressive API.
Features
- Retrieve Cision RSS feeds by type (Press, News, Financial, Media)
- Parse article pages and extract clean structured HTML
- Automatically handles encoding, formatting, and clean-up of content
- Fully testable and extensible
Installation
composer require mattitjaab/laravel-cision-feed
You may optionally set your Cision slug in your .env
:
LARAVEL_CISION_FEED_SLUG=your-cision-slug
Usage
use Mattitja\Cision\Cision; $cision = new Cision(); // Fetch RSS entries $items = $cision->press(); // or ->news(), ->financial(), ->media() // Fetch full content for a specific article $article = $cision->fetchContent('https://news.cision.com/se/example-company/r/your-article-slug,c1234567'); echo $article['header']; // Article headline echo $article['published_at']; // ISO timestamp echo $article['content']; // Clean HTML
Testing
composer test
Changelog
See CHANGELOG for recent changes.
Contributing
Contributions are welcome! Please see CONTRIBUTING for guidelines.
Security
If you discover any security-related issues, please refer to our security policy.
Credits
License
The MIT License (MIT). See LICENSE for details.