Download the PHP package treehouselabs/feeder without Composer
On this page you can find all versions of the php package treehouselabs/feeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download treehouselabs/feeder
More information about treehouselabs/feeder
Files in treehouselabs/feeder
Package feeder
Short Description Library containing functions to download, parse, transform and export different types of feeds.
License MIT
Informations about the package feeder
Feeder
Library containing functions to download, parse, transform and export different types of feeds.
Installation
Usage
Here's a simple feed processing script:
Modifiers
Feeder becomes really powerful when you start adding modifiers. Modifiers are applied to each item and can be used to transform field values, remap keys, remove/add new values, etc.
Say we have the following <item>
node in the feed we want to process:
This will give the following item:
If for some reason your OCD-levels are like mine and you want data to be snake_cased:
Now we want the publish date to be an actual DateTime
instance:
Some more examples:
As you can see you can create really powerful chains of modifiers to get the outcome you want. Modifiers are not limited to transformative functions, there are mappers (map keys in the item to your own fields), filters (exclude items based on your own logic) and validators (raises exceptions when an item is invalid). There are a lot of modifiers that come with this library, check them out!
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Peter Kruithof
- All Contributors
All versions of feeder with dependencies
ext-mbstring Version *
ext-intl Version *
psr/http-message Version ~1.0
symfony/event-dispatcher Version ~2.6
symfony/http-foundation Version ~2.6
symfony/serializer Version ~2.6
guzzlehttp/guzzle Version ~6.0