PHPackages                             melisplatform/melis-platform-framework-symfony - 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. melisplatform/melis-platform-framework-symfony

ActiveMelisplatform-module

melisplatform/melis-platform-framework-symfony
==============================================

v5.0.1(2y ago)14933OSL-3.0PHPPHP ^8.0

Since Sep 10Pushed 2y ago6 watchersCompare

[ Source](https://github.com/melisplatform/melis-platform-framework-symfony)[ Packagist](https://packagist.org/packages/melisplatform/melis-platform-framework-symfony)[ Docs](https://github.com/melisplatform/melis-platform-framework-symfony)[ RSS](/packages/melisplatform-melis-platform-framework-symfony/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (67)Versions (27)Used By (3)

melis-platform-framework-symfony
================================

[](#melis-platform-framework-symfony)

This bundle is the gateway for Symfony in order to make a connection to Melis platform like accessing the registered services and automatically use the database connection of the platform.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your machine.

### Prerequisites

[](#prerequisites)

You will need to install the following in order to have this module running:

- melisplatform/melis-platform-frameworks

It will automatically be done when using composer.

### Installing

[](#installing)

Run the composer command:

```
composer require melisplatform/melis-platform-framework-symfony

```

Running the code
----------------

[](#running-the-code)

### Activating the module

[](#activating-the-module)

Activating this bundle is just the same way you activate your bundle inside symfony application. You just need to include its bundle class to the list of bundles inside symfony application (most probably in bundles.php file).

```
return [
    //All of the symfony activated bundles here
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    ...
    ...
    etc.
    //Melis Platform Custom Bundles
    MelisPlatformFrameworkSymfony\MelisPlatformFrameworkSymfonyBundle::class => ['all' => true]
];

```

### Accessing Melis Platform Service

[](#accessing-melis-platform-service)

##### MelisServiceManager Class

[](#melisservicemanager-class)

- This class is the gateway for Symfony in order to make a connection to Melis platform. Therefore, using this class we can get all of Melis platform registered services.
- You can call this class inside symfony application as a service by calling its registered service key `melis_platform.service_manager` or by using a Dependency Injection. (See example below)

Example:

```
//Using Dependency Injection

//Assuming we are inside a controller
protected $melisServiceManager;

//Inject MelisServiceManager in the controller constructor function
public function __construct(MelisServiceManager $melisServiceManager)
{
    $this->melisServiceManager = $melisServiceManager;
}
//And then we can use the melis provider like this
//to get the language list of the Back Office
$melisCoreTableLang = $this->melisServiceManager->getService('MelisCoreTableLang');
$melisCorelangList = $melisCoreTableLang->fetchAll()->toArray();

//Using service key (melis_platform.service_manager)

//Assuming we are inside of any custom Symfony controller that extends AbstractController of Symfony
//Calling the service
$melisServices = $this->get('melis_platform.service_manager');
//Calling the MelisCoreTableLang service registered in Melis Platform
$languageTable = $melisServices->getService('MelisCoreTableLang');
//Calling fetchAll function inside MelisCoreTableLang service and convert the result to array
$languageList = $languageTable->fetchAll()->toArray();

```

- Bundles that are inside the Symfony skeleton might have a problem accessing the `melis_platform.service_manager` service key inside their Controller that extends AbstractController since AbstractController only uses a limited container that only contains some services.

    But we can still use the `melis_platform.service_manager` service key by overriding the `getSubscribedServices` function of the AbstractController inside our Controller to register our service.

```
public static function getSubscribedServices()
{
    return array_merge(parent::getSubscribedServices(),
        [
            'melis_platform.service_manager' => MelisServiceManager::class,
        ]);
}

```

### Event Listeners

[](#event-listeners)

##### DatabaseSwitcherListener

[](#databaseswitcherlistener)

- This listener will force Symfony to use the Melis Platform database.

##### SymfonyTranslationsListener

[](#symfonytranslationslistener)

- This listener will get all of Symfony translations and store it inside a file (Resources/translations/melis/symfony-translations.phtml) so that Melis Platform can use this translations. This file MUST be writable.

Authors
-------

[](#authors)

- **Melis Technology** - [www.melistechnology.com](https://www.melistechnology.com/)

See also the list of [contributors](https://github.com/melisplatform/melis-platform-framework-symfony/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the OSL-3.0 License - see the [LICENSE](LICENSE)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 71.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 ~84 days

Recently: every ~252 days

Total

17

Last Release

1081d ago

Major Versions

v3.2.5 → v4.0.02020-08-17

v4.1.1 → v5.0.02022-06-21

PHP version history (2 changes)v4.0.0PHP ^7.1.3|^7.2|^7.3

v5.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![sircxes](https://avatars.githubusercontent.com/u/21098160?v=4)](https://github.com/sircxes "sircxes (134 commits)")[![mariateresapomar](https://avatars.githubusercontent.com/u/85868605?v=4)](https://github.com/mariateresapomar "mariateresapomar (41 commits)")[![rbbrioso28](https://avatars.githubusercontent.com/u/9497212?v=4)](https://github.com/rbbrioso28 "rbbrioso28 (8 commits)")[![jzabate](https://avatars.githubusercontent.com/u/39899634?v=4)](https://github.com/jzabate "jzabate (3 commits)")[![MelisTest](https://avatars.githubusercontent.com/u/21234733?v=4)](https://github.com/MelisTest "MelisTest (1 commits)")

---

Tags

cmsmodulezf2melis

### Embed Badge

![Health badge](/badges/melisplatform-melis-platform-framework-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/melisplatform-melis-platform-framework-symfony/health.svg)](https://phpackages.com/packages/melisplatform-melis-platform-framework-symfony)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[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)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[chameleon-system/chameleon-base

The Chameleon System core.

1026.5k3](/packages/chameleon-system-chameleon-base)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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