Laravel Feeds is an easy and fast way to export large amounts of data into feeds for marketplaces and other consumers.
๐ Features
- Chunked queries to the database
- Draft mode during processing
- Easy property mapping
- Custom Eloquent models for feed registrations
- Generate feeds, sitemaps, and more
You can install the Laravel Feeds package via Composer:
composer require dragon-code/laravel-feedsYou should publish the migration and the config/feeds.php file with:
php artisan vendor:publish --tag="feeds"Warning
Before running migrations, verify the database connection settings in config/feeds.php.
Now you can run migrations and proceed to create feeds.
To create a feed class, use the make:feed console command:
php artisan make:feed User -tAs a result of executing the console command, the files app/Feeds/UserFeed.php and app/Feeds/Items/UserFeedItem.php
will be created.
Check the operation/migration file that was created for you and run the console command:
# For Laravel Deploy Operations
php artisan operations
# For Laravel Migrations
php artisan migrateTo generate all active feeds, use the console command:
php artisan feed:generate| Guide | Description |
|---|---|
| Getting Started | Package overview and first steps |
| Installation | Installation, publishing, and migrations |
| Create Feeds | Feed, item, and info classes |
| Generation | Commands, queues, and scheduling |
| Supported Formats | XML, JSON, JSON Lines, CSV, and RSS |
| Recipes | Sitemap, Instagram, Yandex, and RSS examples |
The documentation site includes version and language selectors.
This package is licensed under the MIT License.