trisnawan / php-rss-client
Ambil dan posting artikel dari RSS
1.0.0
2026-10-12 15:59 UTC
Requires
- lib-curl: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-12 16:01:34 UTC
README
Pustaka PHP yang menyediakan fitur pengambilan konten dari RSS Feed. Dapat digunakan untuk Press Release.
Instalasi
composer require trisnawan/php-rss-client
Contoh Penggunaan
use Trisnawan\RssClient\RssClient; use Trisnawan\RssClient\RssException; $rssUrl = "URL"; $limit = 3; $articles = []; try { $client = new RssClient($rssUrl); $articles = $client->findTop($limit); } catch (RssException $e){ echo "Error: " . $e->getMessage(); } var_dump($articles);