turbolabit / service-entity-plus-bundle
Package info
github.com/TurboLabIt/php-symfony-service-entity-plus-bundle
Type:symfony-bundle
pkg:composer/turbolabit/service-entity-plus-bundle
dev-main
2026-03-07 16:47 UTC
Requires
- php: ^8.3
- turbolabit/php-foreachable: dev-main
Requires (Dev)
- phpunit/phpunit: @stable
- symfony/dotenv: @stable
- symfony/framework-bundle: @stable
- symfony/yaml: @stable
This package is auto-updated.
Last update: 2026-03-07 16:47:32 UTC
README
A new Symfony bundle to create "ServiceEntities".
๐ฆ Install it with composer
symfony composer require turbolabit/service-entity-plus-bundle:dev-main
๐ท Build with it
Repository:
- Create you own
src/Repository/BaseRepository.php:
<?php namespace App\Repository; use TurboLabIt\ServiceEntityPlusBundle\SEPRepository; abstract class BaseRepository extends SEPRepository {}
- Extend it
- Configure the constants (
ENTITY_CLASSis mandatory) - Use the functions
ServiceCollection:
- Create you own abstract BaseServiceCollection
- Extend it
- Configure the constants (
ENTITY_CLASSis mandatory) - Use the functions
Version00000000000000
Create migrations/Version00000000000000.php:
<?php namespace DoctrineMigrations; class Version00000000000000 extends \TurboLabIt\ServiceEntityPlusBundle\migrations\Version00000000000000 {}
๐งช Test it
bash scripts/symfony-bundle-tester.sh