PHPackages                             mh/page-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. [Framework](/categories/framework)
4. /
5. mh/page-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

mh/page-bundle
==============

5.0.0(6y ago)067CSS

Since Aug 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hollodk/cms)[ Packagist](https://packagist.org/packages/mh/page-bundle)[ RSS](/packages/mh-page-bundle/feed)WikiDiscussions master Synced 3d ago

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

##### PRODUCTION VERSION

[](#production-version)

#### Config file

[](#config-file)

### knp

[](#knp)

knp\_paginator: page\_range: 5 default\_options: page\_name: page sort\_field\_name: sort sort\_direction\_name: direction distinct: true filter\_field\_name: filterField filter\_value\_name: filterValue template: pagination: '@KnpPaginator/Pagination/twitter\_bootstrap\_v4\_pagination.html.twig' sortable: '@KnpPaginator/Pagination/sortable\_link.html.twig' filtration: '@KnpPaginator/Pagination/filtration.html.twig'

### twig

[](#twig)

add this to your twig config, so we have a global configuration service

twig: globals: config: '@Mh\\PageBundle\\Helper\\TwigHelper'

### security

[](#security)

/config/packages/securty.yaml

security: encoders: Mh\\PageBundle\\Entity\\User: algorithm: auto providers: app\_user\_provider: entity: class: Mh\\PageBundle\\Entity\\User property: email firewalls: dev: pattern: ^/(\_(profiler|wdt)|css|images|js)/ security: false main: anonymous: true guard: authenticators: - Mh\\PageBundle\\Security\\AppCustomAuthenticator logout: path: mh\_page\_app\_logout access\_control: - { path: ^/admin, roles: ROLE\_ADMIN } - { path: ^/profile, roles: ROLE\_USER }

### routes

[](#routes)

/config/routes.yaml

mh\_page: resource: '@MhPageBundle/Resources/config/routes.yaml'

### install demo

[](#install-demo)

app/bin app:install

### change the redirect after login

[](#change-the-redirect-after-login)

we redirect to the route mh\_page\_login\_home, just override that

### template base.html.twig

[](#template-basehtmltwig)

{% extends "@MhPage/base.html.twig" %}

### template layout.html.twig

[](#template-layouthtmltwig)

{% extends "@MhPage/layout.html.twig" %}

### promote user to admin

[](#promote-user-to-admin)

./bin/console app:promote EMAIL

### neat features

[](#neat-features)

Copy clipboard, make a:

and on your element

[click](path.php)

### Remember

[](#remember)

Assets
------

[](#assets)

./bin/console assets:install --symlink

Extend admin menu
-----------------

[](#extend-admin-menu)

If you need to add more admin items, make a subscriber with

make:subscriber for the request

use Mh\\PageBundle\\Helper\\SiteHelper;

class RequestSubscriber implements EventSubscriberInterface { private $siteHelper;

```
public function __construct(SiteHelper $siteHelper)
{
    $this->siteHelper = $siteHelper;
}

public function onRequestEvent(RequestEvent $event)
{
    if (!$event->isMasterRequest()) return;

    $item = [
        'url' => 'profile_dashboard',
        'name' => 'Min profil',
    ];
    $this->siteHelper->addAdminItem($item, 5);
}

```

}

Sitemap
-------

[](#sitemap)

If you need to add more sitemaps, copy the Mh\\PageBundle\\Command\\SitemapCommand

##### DEV VERSION

[](#dev-version)

#### Config file

[](#config-file-1)

### routes

[](#routes-1)

/config/routes.yaml

mh\_page: resource: '../src/Controller' name\_prefix: mh\_page\_

mh\_page\_wildcard: path: /{page} methods: \[GET\] controller: Mh\\PageBundle\\Controller\\MainController::page name\_prefix: mh\_page\_

### maker

[](#maker)

/config/packages/maker.yaml

maker: root\_namespace: Mh\\PageBundle

### doctrine

[](#doctrine)

/config/packages/doctrine.yaml

doctrine: orm: mappings: MhPageBundle: is\_bundle: false type: annotation dir: '%kernel.project\_dir%/src/Entity' prefix: 'Mh\\PageBundle\\Entity' alias: 'MhPageBundle'

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Recently: every ~15 days

Total

52

Last Release

2401d ago

Major Versions

1.2.49 → 5.0.02019-12-04

### Community

Maintainers

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

---

Top Contributors

[![hollodk](https://avatars.githubusercontent.com/u/651271?v=4)](https://github.com/hollodk "hollodk (78 commits)")

### Embed Badge

![Health badge](/badges/mh-page-bundle/health.svg)

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

###  Alternatives

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M482](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[spiral/framework

Spiral, High-Performance PHP/Go Framework

2.1k2.2M63](/packages/spiral-framework)[shopware/storefront

Storefront for Shopware

684.6M217](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M534](/packages/shopware-core)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.2k55](/packages/elgg-elgg)

PHPackages © 2026

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