Installation
Data Helpers can be installed via Composer and works with Laravel, Symfony, Doctrine, or plain PHP.
Requirements
Section titled “Requirements”- PHP 8.2 or higher
- Composer
Basic Installation
Section titled “Basic Installation”Install Data Helpers via Composer:
composer require event4u/data-helpersThat’s it! Data Helpers is now ready to use in your project.
Framework Integration
Section titled “Framework Integration”Data Helpers automatically detects which frameworks are available in your project and enables the appropriate integrations.
Laravel
Section titled “Laravel”If you’re using Laravel 9+, Data Helpers will automatically register its service provider and enable:
- Laravel Collections support
- Eloquent Model support
- Artisan commands
- Validation integration
- Authorization integration
No additional configuration is required.
Symfony
Section titled “Symfony”If you’re using Symfony 6+, Data Helpers will automatically enable:
- Symfony Collections support
- Console commands
- Validation integration
- Security integration
No additional configuration is required.
Doctrine
Section titled “Doctrine”If you’re using Doctrine 2+, Data Helpers will automatically enable:
- Doctrine Collections support
- Entity support
No additional configuration is required.
Plain PHP
Section titled “Plain PHP”Data Helpers works out of the box with plain PHP. No framework is required.
Optional Dependencies
Section titled “Optional Dependencies”Data Helpers has zero required dependencies, but you can install optional packages for additional features:
Laravel Integration
Section titled “Laravel Integration”composer require illuminate/collectionscomposer require illuminate/databaseSymfony Integration
Section titled “Symfony Integration”composer require symfony/consolecomposer require symfony/validatorcomposer require symfony/security-coreDoctrine Integration
Section titled “Doctrine Integration”composer require doctrine/collectionscomposer require doctrine/ormVerification
Section titled “Verification”Verify the installation by running:
composer show event4u/data-helpersYou should see the package information including version and dependencies.
Next Steps
Section titled “Next Steps”- Requirements - Detailed requirements and compatibility
- Quick Start - Get started in 5 minutes
- Configuration - Configure Data Helpers for your project