PHPackages                             vincet/base-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. vincet/base-bundle

AbandonedSymfony-bundle[Framework](/categories/framework)

vincet/base-bundle
==================

Symfony VinceTBaseBundle

4.1.2(9y ago)11.3k32MITPHPPHP &gt;=5.3.2

Since Jul 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vincenttouzet/BaseBundle)[ Packagist](https://packagist.org/packages/vincet/base-bundle)[ RSS](/packages/vincet-base-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (15)Used By (2)

BaseBundle
==========

[](#basebundle)

This bundle define base class to improve your development.

It requires SonataAdminBundle and SonataDoctrineORMAdminBundle

Installation
------------

[](#installation)

Use composer to install

```
composer require vincet/base-bundle

```

For symfony &lt;2.5 use the 2.2 version

```
composer require vincet/base-bundle=2.2

```

Entity Management
-----------------

[](#entity-management)

This bundle defines a BaseManager class that is compatible with SonataAdmin ModelManager.

Juste define a new class for your entity :

```
namespace Acme\DemoBundle\Manager;

use VinceT\BaseBundle\Manager\BaseManager;

class PostManager extends BaseManager
{
}
```

Define the manager as a service in your services.yml :

```
parameters:
    post_manager.class: Acme\DemoBundle\Manager\PostManager

services:
    post_manager:
        class: %post_manager.class%
        arguments: [@service_container]
```

you can now acces this manager from any controller :

```
[...]
$postManager = $this->container->get('post_manager');
[...]
$post = new Acme\DemoBundle\Entity\Post();
[...]
$postManager->create($post);
[...]
$postManager->update($post);
[...]
$postManager->delete($post);
[...]
```

To use this manager with SonataAdmin, add a call to setModelManager in your services.yml file

```
services:
    acme.demo.admin.post:
      class: Acme\DemoBundle\Admin\PostAdmin
      tags:
        - { name: sonata.admin, manager_type: orm, group: Blog, label: Post }
      arguments: [null, Acme\DemoBundle\Entity\Post, AcmeDemoBundle:PostAdmin]
      calls:
        - [ setModelManager, [ @page_manager ] ]
        - [ setTranslationDomain, [ AcmeDemoBundle ] ]
```

Your front and Admin application will now use the same entity manager.

Admin Controller
----------------

[](#admin-controller)

This bundle also define a BaseAdminController that catch exception throwed during an admin action. It is very easy to use :

Define your admin controller :

```
namespace Acmd\DemoBundle\Controller;

use VinceT\BaseBundle\Controller\BaseAdminController;

class PostAdminController extends BaseAdminController
{
}
```

Don't forget to use this controller in your admin service (the third argument).

```
services:
    acme.demo.admin.post:
      class: Acme\DemoBundle\Admin\PostAdmin
      tags:
        - { name: sonata.admin, manager_type: orm, group: Blog, label: Post }
      arguments: [null, Acme\DemoBundle\Entity\Post, AcmeDemoBundle:PostAdmin]
```

Commands
--------

[](#commands)

To make your development faster a command can generate the following classes for an entity, bundle or namespace :

- Admin/EntityAdmin
- Controller/Admin/EntityAdminController
- Manager/EntityManager

and create/update the following files :

- Resources/config/services.yml
- Resources/translations/YourBundle.en.yml
- Resources/translations/YourBundle.fr.yml

To use it :

```
php app/console vincet:generate MyBundle:Post

```

Another command generate a frontend CRUD controller. It's based on the \\Sensio\\Bundle\\GeneratorBundle\\Command\\GenerateDoctrineCrudCommand

To use it :

```
php app/console vincet:generate:crud

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~93 days

Recently: every ~116 days

Total

14

Last Release

3491d ago

Major Versions

2.2.x-dev → 3.0.02015-01-06

3.0.5 → 4.0.02015-07-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/48631f87063e4694039a23a57c65c000b9be36200a541f0dc3b15e69ac69c8f6?d=identicon)[vincenttouzet](/maintainers/vincenttouzet)

---

Top Contributors

[![vincenttouzet](https://avatars.githubusercontent.com/u/2057992?v=4)](https://github.com/vincenttouzet "vincenttouzet (79 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")

### Embed Badge

![Health badge](/badges/vincet-base-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vincet-base-bundle/health.svg)](https://phpackages.com/packages/vincet-base-bundle)
```

###  Alternatives

[networking/init-cms-bundle

This Bundle is a basic cms based on symfony

1006.0k2](/packages/networking-init-cms-bundle)[ed/blog-bundle

Symfony EDBlogBundle

348.4k](/packages/ed-blog-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
