Download the PHP package sinemacula/laravel-resource-exporter without Composer
On this page you can find all versions of the php package sinemacula/laravel-resource-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sinemacula/laravel-resource-exporter
More information about sinemacula/laravel-resource-exporter
Files in sinemacula/laravel-resource-exporter
Package laravel-resource-exporter
Short Description A versatile Laravel package for exporting JsonResource and JsonResourceCollection objects into various formats with customizable drivers.
License Apache-2.0
Informations about the package laravel-resource-exporter
Laravel Resource Exporter
Laravel Resource Exporter is a versatile package that enables seamless conversion of Laravel JsonResource and JsonResourceCollection objects into various exportable formats. The package is designed with extensibility in mind, allowing you to easily add custom export formats via a driver-based architecture.
Features
- Format Flexibility: Export your resources to various formats using customizable drivers, making it easy to extend or adapt to new formats.
- Driver-Based Architecture: Each export format is handled by a dedicated driver class, ensuring clean, maintainable, and extendable code.
- Facade Support: Utilize an intuitive facade for easy access to export functionality, streamlining the process of converting resources.
Supported Drivers
- CSV
- XML
Installation
To install the Laravel Resource Exporter, run the following command in your project directory:
Configuration
After installation, publish the package configuration to customize it according to your needs:
This command publishes the package configuration file to your application's config directory, allowing you to modify aspects such as the available export formats, driver configurations, and more.
Usage
The Laravel Resource Exporter provides an easy-to-use facade for exporting resources. Below is an example of how to export a resource or a collection:
Contributing
Contributions are welcome and will be fully credited. We accept contributions via pull requests on GitHub.
Security
If you discover any security related issues, please email instead of using the issue tracker.
License
The Laravel Resource Exporter repository is open-sourced software licensed under the Apache License, Version 2.0.
All versions of laravel-resource-exporter with dependencies
ext-dom Version *
ext-simplexml Version *
illuminate/http Version *
illuminate/support Version *