使用 Laravel 快速构建网站系列 —— RSS 聚合器 & 阅读器:RSS Monster(基于Lumen)

rss-monster

1、简介

RSS Monster 是一个基于Web的、操作简单的、兼容 Fever API 的 RSS 聚合器和阅读器,可用于替代Google Reader。采用轻量级、小巧的响应式设计,基于 Javascript 和 PHP 编写 —— 后端使用 Laravel 的轻量级框架 Lumen,前端使用 twitter 的 Bootstrap 框架。该应用支持很多特性,比如标记为已读、滚动页面、拖放式管理 feeds、json 事件等等。你也可以针对自己的需要对其进行扩展。

2、GitHub

https://github.com/pietheinstrengholt/rssmonster

3、系统要求

  • PHP >= 5.5.9
  • PHP OpenSSL 扩展
  • PHP Mbstring 扩展
  • PHP Tokenizer 扩展
  • Composer
  • Git

4、安装

安装 Composer(已安装跳过):

curl -sS https://getcomposer.org/installer | php — –filename=composer

下载 Lumen(已安装跳过):

composer global require "laravel/lumen-installer=~1.0"

克隆 RSSMonster 仓库:

git clone https://github.com/pietheinstrengholt/rssmonster.git

克隆完成后,进入 RSSMonster 目录执行如下命令:

composer install

拷贝 .env.example.env 并在 .env 中配置数据库信息

使用如下命令部署数据库:

php artisan migrate:refresh --seed

在浏览器中访问 http://yourRSSMonsterurl/public/index.php,然后通过顶部菜单添加 feeds

最后添加一个 Cron 任务定时拉取文章:

curl -s http://yourRSSMonsterurl/public/index.php/api/feed/updateall

5、ReederiOS)集成支持(通过Fever API)

RSSMonster 支持 Reeder(iOS),要使用 Reeder API(http://feedafever.com/api),指向如下链接:

http://yourRSSMonsterurl/public/index.php/api/fever

用户名和密码随便填写,如果使用 Apache 的话还需要修改 public 目录下的 .htaccess,将 /lumen/public/ 修改为 RSSMonster 实际部署的地址。

ios-reeder

学院君 has written 619 articles

资深PHP工程师,Laravel学院院长

3 thoughts on “使用 Laravel 快速构建网站系列 —— RSS 聚合器 & 阅读器:RSS Monster(基于Lumen)

  1. 枫子 says:

    illuminate/support suggests installing jeremeamia/superclosure (Required to be able to serialize closures (~2.0).)symfony/var-dumper suggests installing ext-symfony_debug ()paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)symfony/security-core suggests installing ircmaxell/password-compat (For using the BCrypt password encoder in PHP <5.5)symfony/security-core suggests installing symfony/expression-language (For using the expression voter)symfony/security-core suggests installing symfony/validator (For using the userpassword constraint)symfony/event-dispatcher suggests installing symfony/dependency-injection ()symfony/http-kernel suggests installing symfony/browser-kit ()symfony/http-kernel suggests installing symfony/class-loader ()symfony/http-kernel suggests installing symfony/config ()symfony/http-kernel suggests installing symfony/dependency-injection ()symfony/dom-crawler suggests installing symfony/css-selector ()monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messagesto AWS services like DynamoDB)monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)monolog/monolog suggests installing mongodb/mongodb (Allow sending log messagesto a MongoDB server via PHP Driver)monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)monolog/monolog suggests installing rollbar/rollbar (Allow sending log messagesto Rollbar)monolog/monolog suggests installing ruflin/elastica (Allow sending log messagesto an Elastic Search server)monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)illuminate/filesystem suggests installing league/flysystem (Required to use theFlysystem local and FTP drivers (~1.0).)illuminate/filesystem suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)illuminate/filesystem suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)symfony/translation suggests installing symfony/config ()illuminate/console suggests installing guzzlehttp/guzzle (Required to use the ping methods on schedules (~5.3|~6.0).)illuminate/queue suggests installing aws/aws-sdk-php (Required to use the SQS queue driver (~3.0).)illuminate/queue suggests installing illuminate/redis (Required to use the redis queue driver (5.1.*).)illuminate/queue suggests installing iron-io/iron_mq (Required to use the iron queue driver (~2.0).)illuminate/queue suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)illuminate/database suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.4).)illuminate/cache suggests installing illuminate/redis (Required to use the redis cache driver (5.1.*).)illuminate/broadcasting suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).)symfony/routing suggests installing doctrine/annotations (For using the annotation loader)symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)symfony/routing suggests installing symfony/expression-language (For using expression matching)phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)sebastian/global-state suggests installing ext-uopz (*)phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)Generating autoload files———————————————————————-安装完成的时候提示这些信息,有关系么?

发表评论

标记为*的字段是必填项(邮箱地址不会被公开)

你可以使用这些HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>