PHPackages                             anzusystems/common-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. anzusystems/common-bundle

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

anzusystems/common-bundle
=========================

Anzu common services, utils and helpers

11.0.3(3mo ago)017.3k↓42.6%[1 PRs](https://github.com/anzusystems/common-bundle/pulls)2Apache-2.0PHPPHP &gt;=8.4

Since Nov 28Pushed 1mo ago6 watchersCompare

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

READMEChangelog (10)Dependencies (34)Versions (95)Used By (2)

AnzuSystems Common Bundle by Petit Press a.s. ([www.sme.sk](http://www.sme.sk))
===============================================================================

[](#anzusystems-common-bundle-by-petit-press-as-wwwsmesk)

Provides common functionality among Anzusystems' projects.

---

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

[](#installation)

From within container execute the following command to download the latest version of the bundle:

```
$ composer require anzusystems/common-bundle --no-scripts
```

### Step 3: Use the Bundle

[](#step-3-use-the-bundle)

Change your `src\Kernel.php` to extend `AnzuSystems\CommonBundle\Kernel\AnzuKernel`.

`AnzuKernel` requires for constructor some extra parameters:

```
public function __construct(
    private string $appSystem, // Specific application/system name, eg. "core".
    private string $appVersion, // Specific application/system version, eg. "1.0.0".
    private bool $appReadOnlyMode, // Boolean if application/system should run in read only mode.
    string $environment,
    bool $debug,
) {
    parent::__construct(
        environment: $environment,
        debug: $debug
    );
}
```

It means, you have to initialize `AnzuKernel` on all entry points.

- `public/index.php` should look like this:

```
