PHPackages                             blast-project/base-entities-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. [Database &amp; ORM](/categories/database)
4. /
5. blast-project/base-entities-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

blast-project/base-entities-bundle
==================================

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

0.6.4(8y ago)06.0k1[1 issues](https://github.com/blast-project/BaseEntitiesBundle/issues)12LGPL-3.0PHPPHP &gt;=7.1

Since Feb 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/blast-project/BaseEntitiesBundle)[ Packagist](https://packagist.org/packages/blast-project/base-entities-bundle)[ Docs](https://github.com/blast-project/BaseEntitiesBundle)[ RSS](/packages/blast-project-base-entities-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (13)Used By (12)

SymfonyBlastBaseEntitiesBundle
==============================

[](#symfonyblastbaseentitiesbundle)

[![Build Status](https://camo.githubusercontent.com/a03d4e5df7a44f5e1c0b79c1e6e787f391bc2c86107d632c3c21dde3d6b61177/68747470733a2f2f7472617669732d63692e6f72672f626c6173742d70726f6a6563742f42617365456e74697469657342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blast-project/BaseEntitiesBundle)[![Coverage Status](https://camo.githubusercontent.com/817ab9eea9ccdb6a721b5b2cbcbf0b5fae1f3e891fc699c04112e2a6f3714e89/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626c6173742d70726f6a6563742f42617365456e74697469657342756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/blast-project/BaseEntitiesBundle?branch=master)[![License](https://camo.githubusercontent.com/31c4eea6f5efe7071b35d855503f26cc288b0d54d7d86274ab8e9c4a341c477f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c6173742d70726f6a6563742f42617365456e74697469657342756e646c652e7376673f7374796c653d666c61742d737175617265)](./LICENCE.md)

[![Latest Stable Version](https://camo.githubusercontent.com/c3c12b0e5ae4ec18083e2d900f0939ba4a529503da431a8ec1ebed58873f10e2/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f626173652d656e7469746965732d62756e646c652f762f737461626c65)](https://packagist.org/packages/blast-project/base-entities-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/e085f660d88e806ed3f19ff2f7015b46bd3ea4a0b6768bba1d083d74ea20d0c2/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f626173652d656e7469746965732d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/blast-project/base-entities-bundle)[![Total Downloads](https://camo.githubusercontent.com/a1f3f6c2fa6cb74d4c4a3df3dcadcb936ec392ed759bbc4f2c49d1ad5b7302e5/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f626173652d656e7469746965732d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/blast-project/base-entities-bundle)

This bundle provides some tools for a better integration of [LibrinfoDoctrineBundle](https://github.com/libre-informatique/SymfonyLibrinfoDoctrineBundle)behaviours in [Sonata Admin](https://sonata-project.org/bundles/admin/master/doc/index.html)

Installation
============

[](#installation)

Prequiresites
-------------

[](#prequiresites)

- having a working Symfony2 environment
- having created a working Symfony2 app (including your DB and your DB link)
- having composer installed (here in /usr/local/bin/composer, with /usr/local/bin in the path)

Downloading
-----------

[](#downloading)

$ composer require libre-informatique/base-entities-bundle dev-master

Adding the bundle in your app
-----------------------------

[](#adding-the-bundle-in-your-app)

Edit your app/AppKernel.php file and add your "libre-informatique/base-entities-bundle" :

```
    // app/AppKernel.php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...

            // The libre-informatique bundles
            new Blast\BaseEntitiesBundle\BlastCoreBundle(),
            new Blast\BaseEntitiesBundle\LibrinfoDoctrineBundle(),
            new Blast\BaseEntitiesBundle\BlastBaseEntitiesBundle(),

            // your personal bundles
        );
    }
```

### Configuring the bundle

[](#configuring-the-bundle)

Activate the listeners you need in your application (add those lines to `app/config/config.yml`) :

```
# Enable LibrinfoDocrineBundle event listeners
librinfo_doctrine:
    orm:
        default:
            naming: true
            guidable: true
            timestampable: true
            addressable: true
            treeable: true
            nameable: true
            labelable: true
            emailable: true
            descriptible: true
            searchable: true
            loggable: true
    # List of entity search-able indexed fields
    entity_search_indexes:
        Me\MyBundle\Entity\MyEntity:
            fields:
                - name
                - fulltextName
                - firstname
                - lastname
                - description
                - email
                - url
```

Add/remove the needed behaviours for each orm connection used by your application.

Under `entity_search_indexes` key, you can set search indexes for each entity that should be indexable.

Learn how to use the bundle
---------------------------

[](#learn-how-to-use-the-bundle)

### Doctrine Behaviors provided by the bundle

[](#doctrine-behaviors-provided-by-the-bundle)

- naming: provides a database table naming based on your vendor / bundle / entity
- guidable: provides GUID primary keys to your entities
- timestampable: provides createdAt / updatedAt fields and doctrine listeners to your entities
- addressable: provides address fields to your entities (address, city, zip, country...)
- treeable: provides tree structure to your entities
- nameable: provides a name field to your entities
- labelable: provides a label field to your entities
- emailable: provides email related fields to your entities
- descriptible: provides a description field to your entities
- searchable: provides a search index based on a selection of fields
- loggable: tracks your entities changes and is able to manage versions

Learn how to use them, how they work, and by extension learn how to create new behaviors shaped to your needs, [reading the specific documentation](Resources/doc/base_entities_management.md).

Learn how to use the `libre-informatique/base-entities-bundle`
==============================================================

[](#learn-how-to-use-the-libre-informatiquebase-entities-bundle)

Specific Form Types
-------------------

[](#specific-form-types)

The bundle provides some form types, learn more about this, [reading the specific documentation](Resources/doc/README-FormTypes.md).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~29 days

Total

10

Last Release

3114d ago

PHP version history (2 changes)0.4.2PHP &gt;=5.6

0.5.1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bbce846c0d9bbaf3fc4f62538f638bb1f093d651e1bca9c0c6e0d97645286f8?d=identicon)[beta](/maintainers/beta)

![](https://www.gravatar.com/avatar/528fb5808674782a7831c0f62b7a66f3375bddb4ed3359106f70d89190d33ba2?d=identicon)[marcoslibre](/maintainers/marcoslibre)

![](https://www.gravatar.com/avatar/928e77bd50201c2a30df571e6ff90c01a8cdfe29eec21f57fb7c143ba7c1a35e?d=identicon)[RomainSanchez](/maintainers/RomainSanchez)

![](https://www.gravatar.com/avatar/fc3ab5e7bcedd6769ea7ea27b9b65157b62b4b127296dd6762388d400193b054?d=identicon)[BlastCI](/maintainers/BlastCI)

---

Top Contributors

[![betaglop](https://avatars.githubusercontent.com/u/5788263?v=4)](https://github.com/betaglop "betaglop (17 commits)")[![sentinellesduweb](https://avatars.githubusercontent.com/u/53866807?v=4)](https://github.com/sentinellesduweb "sentinellesduweb (12 commits)")[![FanchTheSystem](https://avatars.githubusercontent.com/u/882203?v=4)](https://github.com/FanchTheSystem "FanchTheSystem (8 commits)")[![PapsOu](https://avatars.githubusercontent.com/u/5792207?v=4)](https://github.com/PapsOu "PapsOu (7 commits)")[![RomainSanchez](https://avatars.githubusercontent.com/u/18164227?v=4)](https://github.com/RomainSanchez "RomainSanchez (2 commits)")[![erwanrolland](https://avatars.githubusercontent.com/u/28561959?v=4)](https://github.com/erwanrolland "erwanrolland (1 commits)")

---

Tags

symfonydoctrinesonata-admine-venementlibio

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blast-project-base-entities-bundle/health.svg)

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

###  Alternatives

[ambta/doctrine-encrypt-bundle

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

77275.7k](/packages/ambta-doctrine-encrypt-bundle)[redcode/tree-bundle

This Symfony bundle integrates jsTree and Gedmo Nested Set directly to Sonata Admin

3048.5k](/packages/redcode-tree-bundle)[prezent/doctrine-translatable-bundle

Integrate the doctrine-translatable extension in Symfony

14698.4k5](/packages/prezent-doctrine-translatable-bundle)[ao/translation-bundle

Doctrine as symfony translation provider + a nice gui for editing translations.

243.7k](/packages/ao-translation-bundle)

PHPackages © 2026

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