dragon-code/laravel-feeds
📃 Laravel Feeds
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
Installation
Laravel Feeds 2.x requires Laravel 13.x and PHP 8.4 or later in the 8.x series. The 1.x documentation remains available for applications on earlier Laravel or PHP versions.
You can install the Laravel Feeds package via Composer:
composer require dragon-code/laravel-feeds
You 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.
Basic Usage
To create a feed class, use the make:feed console command:
php artisan make:feed User -t
As 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:
# With Laravel Deploy Operations
php artisan migrate
php artisan operations
# Without Laravel Deploy Operations
php artisan migrate
To generate all active feeds, use the console command:
php artisan feed:generate
Documentation
| 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 for 2.x and 1.x.
License
This package is licensed under the MIT License.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.4.0 | ^8.4 | ^13.0 | MIT | |
| 2.3.0 | ^8.4 | ^13.0 | MIT | |
| 2.2.0 | ^8.4 | ^13.0 | MIT | |
| 2.1.0 | ^8.4 | ^13.0 | MIT | |
| 2.0.0 | ^8.4 | ^13.0 | MIT | |
| 1.22.1 | ^8.2 | ^11.0 || | MIT | |
| 1.22.0 | ^8.2 | ^11.0 || | MIT | |
| 1.21.0 | ^8.2 | ^11.0 || | MIT | |
| 1.20.0 | ^8.2 | ^11.0 || | MIT | |
| 1.19.0 | ^8.2 | ^11.0 || | MIT | |
| 1.18.0 | ^8.2 | ^11.0 || | MIT | |
| 1.17.2 | ^8.2 | ^11.0 || | MIT | |
| 1.17.1 | ^8.2 | ^11.0 || | MIT | |
| 1.17.0 | ^8.2 | ^11.0 || | MIT | |
| 1.16.1 | ^8.2 | ^11.0 || | MIT | |
| 1.16.0 | ^8.2 | ^11.0 || | MIT | |
| 1.15.0 | ^8.2 | ^11.0 || | MIT | |
| 1.14.1 | ^8.2 | ^11.0 || | MIT | |
| 1.14.0 | ^8.2 | ^11.0 || | MIT | |
| 1.13.0 | ^8.2 | ^11.0 || | MIT | |
| 1.12.0 | ^8.2 | ^11.0 || | MIT | |
| 1.11.0 | ^8.2 | ^11.0 || | MIT | |
| 1.10.0 | ^8.2 | ^11.0 || | MIT | |
| 1.9.1 | ^8.2 | ^11.0 || | MIT | |
| 1.9.0 | ^8.2 | ^11.0 || | MIT | |
| 1.8.0 | ^8.2 | ^11.0 || | MIT | |
| 1.7.0 | ^8.2 | ^11.0 || | MIT | |
| 1.6.0 | ^8.2 | ^11.0 || | MIT | |
| 1.5.1 | ^8.2 | ^11.0 || | MIT | |
| 1.5.0 | ^8.2 | ^11.0 || | MIT |
Showing the latest 30 of 45. See every release on Packagist