mattitjaab/laravel-cision-feed

Fetch and parse Cision press releases via RSS and article HTML in Laravel.

v2.1 2025-07-04 19:43 UTC

This package is auto-updated.

Last update: 2025-07-28 00:41:14 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.