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

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

smartbooster/core-bundle
========================

Bundle grouping all vendor, generic utils and services that we use on each project

v1.17.0(2mo ago)15.6k↓48.7%[3 PRs](https://github.com/smartbooster/core-bundle/pulls)1MITPHPPHP ^8.1

Since Jan 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/smartbooster/core-bundle)[ Packagist](https://packagist.org/packages/smartbooster/core-bundle)[ RSS](/packages/smartbooster-core-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (44)Used By (1)

SMARTBOOSTER - Core Bundle
==========================

[](#smartbooster---core-bundle)

Bundle grouping all vendor, generic utils and services that we use on each project

[![CI](https://github.com/smartbooster/core-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/smartbooster/core-bundle/actions/workflows/ci.yml)

What's inside !
---------------

[](#whats-inside-)

- Config IniOverrideConfig service to easily override php.ini options
- Monitoring routes for uptime tracking, phpinfo debugging and more
- DataFixtures abstract helper
- Query functions to extends Doctrine DQL capacity
- SentryCallback with special CleverCloud dedicated behavior
- Utils for Array, Date, Math, Regex and String
- Validator constraints for EmailChain, Modulo, Password and more

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

[](#installation)

```
composer require smartbooster/core-bundle
```

### Enable Monitoring routes

[](#enable-monitoring-routes)

To enable the monitoring routes, add the following codes to your `config/routes.yaml` file :

```
_smart_core:
    resource: .
    type: smart_core
    # We recommand to restrict thoses routes on a secure subdomain
    host: "admin.%domain%"
```

The path `^/anonymous` must have `PUBLIC_ACCESS` in the project `security.yaml` config for the probe route to be accessible without user

```
# security.yaml
access_control:
    - { path: ^/anonymous, roles: PUBLIC_ACCESS }
```

### Extra DQL functions

[](#extra-dql-functions)

Add the following code to your `config/packages/doctrine.yaml` according to your missing functions needs:

```
doctrine:
    # ...
    orm:
        # ...
        dql:
            string_functions:
                group_concat: Smart\CoreBundle\Query\MySQL\GroupConcat
```

### Sentry configuration

[](#sentry-configuration)

To use our SentryCallback add the following to your `config/packages/sentry.yaml` :

```
when@prod:
    sentry:
        dsn: '%env(SENTRY_DSN)%'
        options:
            environment: '%env(ENVIRONMENT)%'
            before_send: 'sentry.callback.before_send'
            integrations:
                - 'Sentry\Integration\IgnoreErrorsIntegration'
        register_error_listener: false

services:
    Sentry\Integration\IgnoreErrorsIntegration:
        arguments:
            $options:
                ignore_exceptions:
                    - 'Symfony\Component\Security\Core\Exception\AccessDeniedException'
    sentry.callback.before_send:
        class: 'Smart\CoreBundle\Sentry\SentryCallback'
        factory: [ '@Smart\CoreBundle\Sentry\SentryCallback', 'getBeforeSend' ]
```

Also declare the following in your `config/packages/monolog.yaml` :

```
when@prod:
    monolog:
        handlers:
            # other handlers
            sentry:
                type: service
                id: Sentry\Monolog\Handler
```

And define the `Sentry\Monolog\Handler` service in your services.yaml :

```
services:
    # other services
    Sentry\Monolog\Handler:
        arguments:
            $hub: '@Sentry\State\HubInterface'
            $level: !php/const Monolog\Logger::ERROR
```

### Nelmio Security recommendations

[](#nelmio-security-recommendations)

We recommand to setup a Content Security Policy in addition to the config generated by the nelmio security recipe:

```
nelmio_security:
    # ...

    # Content Security Policy
    csp:
        enabled: true
        hosts: []
        content_types: []
        enforce:
            # see full description below
            level1_fallback: true
            # only send directives supported by the browser, defaults to false
            # this is a port of https://github.com/twitter/secureheaders/blob/83a564a235c8be1a8a3901373dbc769da32f6ed7/lib/secure_headers/headers/policy_management.rb#L97
            browser_adaptive:
                enabled: true
            # this is a full list of known case, you must keep only useful script in project
            script-src:
                - 'self'
                - 'unsafe-inline'
                - 'unsafe-eval'
                - 'https://maps.googleapis.com'
                - 'https://use.fontawesome.com'
                - 'https://www.google-analytics.com'
                - 'https://www.youtube.com'
                - 'https://www.youtube-nocookie.com'
                - 'https://js.stripe.com'
                - 'https://canny.io/'
                - 'https://www.google.com/'
                - 'https://www.gstatic.com/'
                - 'https://code.iconify.design'
                - 'https://cdn.jsdelivr.net'
                - 'http://embed.typeform.com'
                - 'https://embed.typeform.com'
            block-all-mixed-content: true # defaults to false, blocks HTTP content over HTTPS transport
```

Contributing
------------

[](#contributing)

Pull requests are welcome.

Thanks to [everyone who has contributed](https://github.com/smartbooster/core-bundle/contributors) already.

---

*This project is supported by [SmartBooster](https://www.smartbooster.io)*

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance84

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% 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 ~21 days

Recently: every ~53 days

Total

38

Last Release

83d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17027450?v=4)[Mathieu Ducrot](/maintainers/mathieu-ducrot)[@mathieu-ducrot](https://github.com/mathieu-ducrot)

---

Top Contributors

[![mathieu-ducrot](https://avatars.githubusercontent.com/u/17027450?v=4)](https://github.com/mathieu-ducrot "mathieu-ducrot (129 commits)")[![lfortunier](https://avatars.githubusercontent.com/u/44199110?v=4)](https://github.com/lfortunier "lfortunier (27 commits)")

---

Tags

symfonybundlecoreutils

### Embed Badge

![Health badge](/badges/smartbooster-core-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)

PHPackages © 2026

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