turbolabit/service-entity-plus-bundle

Maintainers

Package info

github.com/TurboLabIt/php-symfony-service-entity-plus-bundle

Type:symfony-bundle

pkg:composer/turbolabit/service-entity-plus-bundle

Statistics

Installs: 500

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-07 16:47 UTC

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:

  1. Create you own src/Repository/BaseRepository.php:
<?php
namespace App\Repository;

use TurboLabIt\ServiceEntityPlusBundle\SEPRepository;


abstract class BaseRepository extends SEPRepository {}
  1. Extend it
  2. Configure the constants (ENTITY_CLASS is mandatory)
  3. Use the functions

๐Ÿ”– Production-grade example

ServiceCollection:

  1. Create you own abstract BaseServiceCollection
  2. Extend it
  3. Configure the constants (ENTITY_CLASS is mandatory)
  4. Use the functions

๐Ÿ”– Production-grade example

Version00000000000000

Create migrations/Version00000000000000.php:

<?php
namespace DoctrineMigrations;

class Version00000000000000 extends \TurboLabIt\ServiceEntityPlusBundle\migrations\Version00000000000000 {}

๐Ÿงช Test it

bash scripts/symfony-bundle-tester.sh