mamuz / mamuz-blog-feed
MamuzBlog plugin to provide feeds
Installs: 293
Dependents: 0
Suggesters: 1
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mamuz/mamuz-blog-feed
Requires
- mamuz/mamuz-blog: ~1.3
- zendframework/zend-feed: ~2.3
Requires (Dev)
- mamuz/php-dependency-analysis: 0.*
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.*
- satooshi/php-coveralls: 0.6.*
README
Features
- This module provides a plugin for
mamuz/mamuz-blogto create Feeds - Atom and RSS feeds are supported
- Adds alternative link to html head automaticly
- Feeds for all Posts and for Posts found by Tag are provided
- Each feed is configurable seperatly
Installation
The recommended way to install
mamuz/mamuz-blog-feed is through
composer by adding dependency to your composer.json:
{
"require": {
"mamuz/mamuz-blog-feed": "*"
}
}
After that run composer update and enable this module for ZF2 by adding
MamuzBlogFeed to modules in ./config/application.config.php:
// ... 'modules' => array( 'MamuzBlogFeed', ),
Configuration
This module is usable out of the box,
but you can overwrite default configuration by adding a config file in ./config/autoload directory.
For default configuration see
module.config.php
Workflow
- If routing is successful, posts will be retrieved either with tag parameter or without tag parameter to create a feed xml and responding to http response object.
- If event
Event::PRE_PAGINATION_CREATEis triggert by posts retrieval andautoHeadLinkis set to true for specific feed, an alternative link to html head is appended automaticly.
Events
For the sake of simplicity Event is used for FQN MamuzBlogFeed\EventManager\Event.
The following events are triggered by Event::IDENTIFIER mamuz-blog:
| Name | Constant | Description |
|---|---|---|
| createFeed.pre | Event::PRE_FEED_CREATE |
Before feed creation |
| createFeed.post | Event::POST_FEED_CREATE |
After feed creation |
Terminology
- Feed: Web format to publish frequently updated informations (here blog articles).