PHPackages                             sopinet/composergeneric - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sopinet/composergeneric

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sopinet/composergeneric
=======================

Generic composer

2.6.1.x-dev(11y ago)0491[1 issues](https://github.com/sopinet/composergeneric/issues)MITPHP &gt;=5.3.3

Since Dec 3Pushed 11y ago5 watchersCompare

[ Source](https://github.com/sopinet/composergeneric)[ Packagist](https://packagist.org/packages/sopinet/composergeneric)[ RSS](/packages/sopinet-composergeneric/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (37)Versions (5)Used By (0)

Description
===========

[](#description)

General composer for Symfony2 use. Install a Symfony2 system easy and quickly.

Installing Symfony 2.4
======================

[](#installing-symfony-24)

```
cd /var/www
curl -sS https://getcomposer.org/installer | php
php composer.phar create-project symfony/framework-standard-edition MyProject "2.4.*"

```

Modify Composer
===============

[](#modify-composer)

You could install Symfony2 with this composer, you can add more libraries if you need it:

```
{
    "name": "Project name",
    "description": "Project description",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "minimum-stability": "dev",
    "require": {
        "sopinet/composergeneric": "dev-master"
    }
}
```

Now... execute composer.phar update

Add to AppKernel.php
====================

[](#add-to-appkernelphp)

```
new JMS\AopBundle\JMSAopBundle(),
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\CacheBundle\SonataCacheBundle(),
new Sonata\jQueryBundle\SonatajQueryBundle(),
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new Craue\FormFlowBundle\CraueFormFlowBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new A2lix\TranslationFormBundle\A2lixTranslationFormBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new FOS\RestBundle\FOSRestBundle(),
new Sopinet\Bundle\BootstrapExtendBundle\SopinetBootstrapExtendBundle(),
new RaulFraile\Bundle\LadybugBundle\RaulFraileLadybugBundle()
```

config.yml
==========

[](#configyml)

Add:

```
framework:
    translator:      ~

fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: main
    user_class: Application\Sonata\UserBundle\Entity\User
    group:
       group_class: Test\BaseBundle\Entity\Group

sonata_block:
    default_contexts: [cms]
```

Modify doctrine part:

```
# Doctrine Configuration
doctrine:
    dbal:
        driver:   "%database_driver%"
        host:     "%database_host%"
        port:     "%database_port%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%database_password%"
        charset:  UTF8
        # if using pdo_sqlite as your database driver, add the path in parameters.yml
        # e.g. database_path: "%kernel.root_dir%/data/data.db3"
        # path:     "%database_path%"
        types:
            json: Sonata\Doctrine\Types\JsonType
        mapping_types:
            enum: string

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping: true

stof_doctrine_extensions:
    default_locale: %locale%
    translation_fallback: true
    orm:
        default:
            translatable: true
    uploadable:
        validate_writable_directory: true
```

Monolog config for log on files

```
monolog:
    handlers:
        main:
            type:   stream
            path:   "%kernel.logs_dir%/%kernel.environment%.log"
            level:  debug
        console:
            type:   console
            bubble: false
        # uncomment to get logging in your browser
        # you may have to allow bigger header sizes in your Web server configuration
        #firephp:
        #    type:   firephp
        #    level:  info
        #chromephp:
        #    type:   chromephp
        #    level:  info
```

Monolog config for log on email(params 'from' and 'to' are required)

```
monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
        nested:
            type:  stream
            path:  "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
        console:
            type:  console

elao_error_notifier:
    from:
    to:
    handle404: true
    mailer: mailer
    handlePHPErrors: true
    handlePHPWarnings: false
    ignoredClasses: ~
    repeatTimeout: 3600
```

SonataUser
==========

[](#sonatauser)

```
php app/console sonata:easy-extends:generate SonataUserBundle --dest src
```

Añadir a AppKernel:

```
new Application\Sonata\UserBundle\ApplicationSonataUserBundle()
```

Security (Optional)
===================

[](#security-optional)

```
security:
    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                login_path: /login
                check_path: /login_check
                default_target_path: /panel
                always_use_default_target_path: true
                csrf_provider: form.csrf_provider
            logout:       true
            anonymous:    true

    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin/, role: ROLE_ADMIN }
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~46 days

Total

2

Last Release

4076d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/07938d69d943c96a0f2d1eb14eb5206805bbad3f74e460dfdd1ca9daadd5a81e?d=identicon)[Sopinet](/maintainers/Sopinet)

![](https://www.gravatar.com/avatar/312df3cceb174879d279aaac264656e21977bdc3a3b7ca8d0fd32f44aeeb6bb5?d=identicon)[LuismiLopez](/maintainers/LuismiLopez)

---

Top Contributors

[![lumilo8](https://avatars.githubusercontent.com/u/3762301?v=4)](https://github.com/lumilo8 "lumilo8 (14 commits)")[![hidabe](https://avatars.githubusercontent.com/u/50526?v=4)](https://github.com/hidabe "hidabe (10 commits)")[![s1yamuza](https://avatars.githubusercontent.com/u/5651450?v=4)](https://github.com/s1yamuza "s1yamuza (1 commits)")

---

Tags

composer

### Embed Badge

![Health badge](/badges/sopinet-composergeneric/health.svg)

```
[![Health](https://phpackages.com/badges/sopinet-composergeneric/health.svg)](https://phpackages.com/packages/sopinet-composergeneric)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)

PHPackages © 2026

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