mattitjaab/laravel-cision-feed
最新稳定版本:v2.1
Composer 安装命令:
composer require mattitjaab/laravel-cision-feed
包简介
Fetch and parse Cision press releases via RSS and article HTML in Laravel.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-04