survos / ez-bundle
configure EasyAdmin with attributes
Fund package maintenance!
kbond
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/survos/ez-bundle
Requires
- php: ^8.4
- easycorp/easyadmin-bundle: ^4.25
- symfony/config: ^7.3
- symfony/console: ^7.3
- symfony/dependency-injection: ^7.3
- symfony/http-kernel: ^7.3
Requires (Dev)
- nette/php-generator: ^4.2
- symfony/phpunit-bridge: ^7.3
README
A Symfony bundle for ez functionality.
Features
- Console command for CLI operations
Installation
Install the bundle using Composer:
composer require survos/ez-bundle
If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, add it to your config/bundles.php
:
return [ // ... Survos\EzBundle\SurvosEzBundle::class => ['all' => true], ];
Usage
use Survos\EzBundle\Attribute\EzAdmin; use Survos\EzBundle\Attribute\EzField; use Survos\EzBundle\Attribute\Page; #[EzAdmin(icon: 'fa-regular fa-image', defaultSort: ['year' => 'DESC'], indexMax: 12)] class ForteObj { #[EzField(index: true, order: 1, filter: true)] public ?int $year = null; #[EzField(index: true, order: 2)] public ?string $title = null; }
Testing
Run the test suite:
./vendor/bin/phpunit
License
This bundle is released under the MIT license. See the LICENSE file for details.