PHPackages                             melisplatform/melis-demo-cms - 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-demo-cms

ActiveMelisplatform-module

melisplatform/melis-demo-cms
============================

Official Melis Platform Demo Site

v5.3.2(1y ago)12.3kOSL-3.0CSSPHP ^8.1|^8.3

Since Feb 22Pushed 4mo ago6 watchersCompare

[ Source](https://github.com/melisplatform/melis-demo-cms)[ Packagist](https://packagist.org/packages/melisplatform/melis-demo-cms)[ Docs](https://github.com/melisplatform/melis-demo-cms)[ RSS](/packages/melisplatform-melis-demo-cms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (68)Used By (0)

Melis Demo Cms
==============

[](#melis-demo-cms)

A demo site that provides examples on how to use the services of the Melis modules.

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

[](#getting-started)

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

Vhost Configuration
-------------------

[](#vhost-configuration)

MELIS\_MODULE variable (identifies which site will be loaded as the front office for this domain).
We should set this variable with `MelisDemoCms`
Vhost should look like this:

```

    DocumentRoot "PATH_DOCROOT/public"

        Options +Indexes +FollowSymLinks +ExecCGI
        DirectoryIndex index.php
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted

    ServerName www.mysite.local:80
    SetEnv MELIS_PLATFORM "development"
    SetEnv MELIS_MODULE "MelisDemoCms"

```

Requirements
------------

[](#requirements)

- composer/installers
- php 7

This will automatically be done when using composer.

Installing
----------

[](#installing)

Run the composer command:

```
composer require melisplatform/melis-demo-cms

```

Modules Used In The Site
------------------------

[](#modules-used-in-the-site)

- Melis Front
- Melis Engine
- Melis Cms
- Melis Cms Slider
- Melis Cms Prospects
- Melis Cms News

Services
--------

[](#services)

- MelisSiteConfigService
    Provides services to retrieve the config for your sites.
    File: `/melis-front/src/Service/MelisSiteConfigService.php`

    `MelisFrontSiteConfigListener` used to update the site's config on the regular config service by merging the config from the file and the one on the database.

    - `getSiteConfigByKey(key, section = 'sites', language = null)`
        This function retrieves a specific config by key.

        ParameterTypeDescriptionkeyStringKey of the config.pageIdIntUsed determine the site id, name, and language and on where to get the configsectionString/IntThe section on where to get the config or site IdlanguageStringLanguage on which to get the configTo call the service.

        ```
        $siteConfigSvc = $this->getServiceManager()->get('MelisSiteConfigService');

        ```

        To get a specific `key` of the current site and the language of the page with id 1

        ```
        $siteConfigSvc = $this->getServiceManager()->get('MelisSiteConfigService');

        $config = $siteConfigSvc->getSiteConfigByKey('key', 1);

        ```

        But what if we wanted to get the key from another language of the current site? We can achieve this by defining the language on where to get the config.

        ```
        $siteConfigSvc = $this->getServiceManager()->get('MelisSiteConfigService');

        $config = $siteConfigSvc->getSiteConfigByKey('key', 1,'sites', 'fr');
        // The language of the page is now overridden by the specified language.

        ```

        We can also get a particular `key` from another site by using the `site Id`.

        ```
        $siteConfigSvc = $this->getServiceManager()->get('MelisSiteConfigService');

        $config = $siteConfigSvc->getSiteConfigByKey('key', 1, 1);
        // Return all the values of the specified key from all languages from the site with id 1.
        // The expected output is an array of values from different languages

        $config = $siteConfigSvc->getSiteConfigByKey('key', 1, 1, 'fr');
        // Return all the values of the specified key for the French language from the site with id 1.

        ```

        There is also a different section apart from sites. Currently, we have two sections which are sites and allSites.

        ```
        $siteConfigSvc = $this->getServiceManager()->get('MelisSiteConfigService');

        $config = $siteConfigSvc->getSiteConfigByKey('key', 1, 'allSites');
        // Returns the key from the allSites section of the config
        // Language for the page is not applied but still used to get the site id and name to map for the config

        ```
- MelisSiteTranslationService
    Provides services to translate text and list all site translations
    File: `/melis-front/src/Service/MelisSiteTranslationService.php`

    - `getText(translationKey, langId, siteId)` .

        ParameterTypeDescriptiontranslationKeyStringKey of the translation.langIdIntAn identifier on which language to get the translationsiteIdIntAn identifier on which site to get the translationTo call the service.

        ```
        $melisSiteTranslationSvc = $this->getServiceManager()->get('MelisSiteTranslationService');

        ```

        To get a particular translation, You need to specify the translation key along with the lang id and site id.

        ```
        $test = $melisSiteTranslationService->getText('key', 1, 1);
        // Retrieves the translation for the language id 1 and site id 1.

        ```
- For SEO, URL Services, and Templating Plugins **[See Full documentation for Melis Front here](https://github.com/melisplatform/melis-front)**
- For Page, and Tree System Services and Engine Plugins **[See Full documentation for Melis Engine here](https://github.com/melisplatform/melis-engine)**
- For Cms plugins (tags, basic page elements) and Services **[See Full documentation for Melis Cms here](https://github.com/melisplatform/melis-cms)**
- For Cms Slider Plugins and Services **[See Full documentation for Melis Cms Slider here](https://github.com/melisplatform/melis-cms-slider)**
- For Cms News Plugins (news list, latest news, and details) and Services **[See Full documentation for Melis Cms News here](https://github.com/melisplatform/melis-cms-news)**
- For Cms Prospects Plugin (contact form) and Services **[See Full documentation for Melis Cms Prospects here](https://github.com/melisplatform/melis-cms-prospects)**

View Helpers
------------

[](#view-helpers)

### Melis Front View Helpers:

[](#melis-front-view-helpers)

- MelisSiteConfigHelper
    This helper is used to get a specific config for a site.
    File: `/melis-front/src/View/Helper/MelisDragDropZoneHelper.php`
    Function: `SiteConfig(key, sectiom = 'sites', language = null)`

    ParameterTypeDescriptionkeyStringKey of the config.sectionString/IntThe section on where to get the config or site IdlanguageStringLanguage on which to get the configTo call the helper.

    ```
    $this->SiteConfig('key');

    ```

    To get a `specific key` from the config for the `current site`.

    ```
    $config = $this->SiteConfig('key');

    ```

    But what if we wanted to get the `key` from another `language` of the `current site`? We can achieve this by defining the `language` on where to get the `config`.

    ```
    $config = $this->SiteConfig('key', 'sites', 'fr');
    // The language of the page is now overridden by the specified language.

    ```

    We can also get a particular `key` from another site by using the `site Id`.

    ```
    $config = $this->SiteConfig('key', 1);
    // Return all the values of the specified key from all languages from the site with id 1.
    // The expected output is an array of values from different languages

    $config = $this->SiteConfig('key', 1, 'fr');
    // Return all the values of the specified key for the French language from the site with id 1.

    ```

    There is also a different `section` apart from `sites`. Currently, we have two sections which are `sites` and `allSites`.

    ```
    $config = $this->SiteConfig('key', 'allSites');
    // Returns the key from the allSites section of the config

    ```
- MelisSiteTranslation
    This helper is used to get a specific translation for a site.
    File: `/melis-front/src/View/Helper/MelisSiteTranslationHelper.php`
    Function: `getText(translationkey, langId, siteId)`

    ParameterTypeDescriptiontranslationKeyStringKey of the translation.langIdIntAn identifier on which language to get the translationsiteIdIntAn identifier on which site to get the translationTo call the helper method.

    ```
    $this->SiteTranslation('translationKey', 'langId', 'siteId');

    ```

    To get a particular translation, You need to specify the translation key along with the lang id and site id.

    ```
    $text = $this->SiteTranslation('key', 1, 1);
    // Retrieves the translation for the language id 1 and site id 1.

    ```
- For More Melis Front View Helpers **[See Full documentation for Melis Front here](https://github.com/melisplatform/melis-front)**

Authors
-------

[](#authors)

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

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

License
-------

[](#license)

This project is licensed under the OSL-3.0 License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance57

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

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

Recently: every ~59 days

Total

41

Last Release

579d ago

Major Versions

v1.0.8 → v3.1.02019-06-11

v3.2.12 → v4.0.02020-08-17

v4.1.2 → v5.0.02022-06-20

PHP version history (4 changes)v1.0.0PHP ^7.0

v4.0.0PHP ^7.1.3|^7.2|^7.3

v5.0.0PHP ^7.3|^8.0

v5.1.0PHP ^8.1|^8.3

### Community

Maintainers

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

---

Top Contributors

[![rbbrioso28](https://avatars.githubusercontent.com/u/9497212?v=4)](https://github.com/rbbrioso28 "rbbrioso28 (53 commits)")[![sircxes](https://avatars.githubusercontent.com/u/21098160?v=4)](https://github.com/sircxes "sircxes (48 commits)")[![ksuson](https://avatars.githubusercontent.com/u/31838758?v=4)](https://github.com/ksuson "ksuson (22 commits)")[![jzabate](https://avatars.githubusercontent.com/u/39899634?v=4)](https://github.com/jzabate "jzabate (18 commits)")[![fparan](https://avatars.githubusercontent.com/u/39509647?v=4)](https://github.com/fparan "fparan (18 commits)")[![mariateresapomar](https://avatars.githubusercontent.com/u/85868605?v=4)](https://github.com/mariateresapomar "mariateresapomar (14 commits)")[![benborla](https://avatars.githubusercontent.com/u/22745294?v=4)](https://github.com/benborla "benborla (13 commits)")[![jun1432](https://avatars.githubusercontent.com/u/26325630?v=4)](https://github.com/jun1432 "jun1432 (7 commits)")[![simonalcover](https://avatars.githubusercontent.com/u/17284664?v=4)](https://github.com/simonalcover "simonalcover (4 commits)")

---

Tags

cmsmodulezf2melis

### Embed Badge

![Health badge](/badges/melisplatform-melis-demo-cms/health.svg)

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

###  Alternatives

[melisplatform/melis-cms

Melis Platform CMS module

115.5k15](/packages/melisplatform-melis-cms)

PHPackages © 2026

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