teamzac/larapie 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

teamzac/larapie

最新稳定版本:v2.1.0

Composer 安装命令:

composer require teamzac/larapie

包简介

A Laravel-enhanced wrapper for the SimplePie library

README 文档

README

Latest Version on Packagist Build Status

SimplePie is a popular and feature-rich PHP library for parsing RSS/Atom feeds, but I don't particularly like the API. This package is just a lightweight wrapper around SimplePie that provides a slightly different API along with Laravel support.

Installation

You can install the package via composer:

composer require teamzac/larapie

Usage

$feed = LaraPie::feed('https://your-feed-url/here.rss')->get();
$feed->items()->each(function($item) {
  echo $item->title;
});

The primary data types are Feed and Item.

Feed

The Feed class represents the RSS feed. It has an items() method which returns an Illuminate\Support\Collection instance of the feed items (TeamZac\LaraPie\Item). The Feed has the following read-only properties:

  • title
  • type
  • links (TeamZac\LaraPie\Links)

Item

The Item class represents a single feed item. It has the following read-only properties:

  • id - usually the URL
  • title
  • description
  • content
  • categories (Illuminate\Support\Collection of strings)
  • authors (Illuminate\Support\Collection of TeamZac\LaraPie\Author)
  • dates (Illuminate\Support\Collection of Carbon\Carbon)
  • links (Illuminate\Support\Collection of strings)

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email chad@zactax.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 190
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固