Download the PHP package hexagonlabsllc/laravel-exports without Composer
On this page you can find all versions of the php package hexagonlabsllc/laravel-exports. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hexagonlabsllc/laravel-exports
More information about hexagonlabsllc/laravel-exports
Files in hexagonlabsllc/laravel-exports
Package laravel-exports
Short Description Comprehensive export feature that utilizes Laravel's model backbone to create customizable exports.
License MIT
Homepage https://github.com/HexagonLabsLLC/laravel-exports
Informations about the package laravel-exports
Laravel Exports
A powerful, database-driven export system for Laravel applications that provides dynamic, configurable exports without writing code.
Features
- 📊 Database-Driven Configuration - Define exports through database records, not code
- 🔍 Dynamic Model Discovery - Auto-import Eloquent models and their relationships with proper validation
- 🚀 Advanced Filtering - Static filters, request-based filters, and collection filters with relation operators
- 🔗 Nested Relationship Support - Export deeply nested data
- 🎯 Collection Filtering - Filter related collections by specific criteria (e.g., tags by category)
- ⚡ Transformation Functions - 22+ built-in functions for formatting dates, strings, numbers, etc.
- 📈 Aggregations - Sum, count, average, min, max on collections
- 🚄 Performance Optimized - Smart eager loading, chunking, and streaming for large datasets
- 📝 Multiple Formats - CSV and JSON out of the box, extensible for more
- 🐛 Debug-Ready - Comprehensive validation and debugging capabilities
Documentation
- API Reference
- Usage Examples
Quick Start
Installation
Setup
Basic Usage
Advanced Features
Nested Relationship Traversal
Export data from deeply nested relationships using dot notation:
Collection Filtering
Filter collections to extract specific items based on related criteria:
Transformation Functions
Apply formatting to your data:
Request-Based Filtering
Add dynamic filters that users can control:
Performance Optimization
For memory-efficient exports of large datasets:
Architecture
Database Schema
The package uses 7 interconnected tables (all with UUID primary keys):
- export_models - Registered exportable Eloquent models
- export_model_relations - Model columns and relationships (supports dot notation)
- export_layouts - Named export configurations
- export_columns - Output columns with transformations and filters
- export_filters - Query constraints (layout-level and column-level)
- export_sorts - Ordering configuration
- export_functions - Reusable transformation functions
Filter Architecture
The package supports three types of filters:
- Layout Filters - Applied to the main query as WHERE conditions
- Column Filters (Regular) - Applied to main query for specific columns
- Column Filters (Relation) - Used only for constraining eager-loaded collections
Key Services
- DynamicExportService - Main export execution engine with smart relation handling
- ExportInspector - Validates configurations and syncs model relationships
- ModelRelationInspector - Discovers model columns and relationships using reflection
Commands
Import Models
Seed Functions
Debugging
Enable debug mode to get detailed logging:
Testing
Requirements
- PHP 8.1+
- Laravel 10.0+
- Database with UUID support (MySQL 5.7+, PostgreSQL 9.4+, SQLite 3.8+)
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-exports with dependencies
illuminate/support Version ^12.12
illuminate/contracts Version ^11.0||^12.0