PHPackages                             gambare-web/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. gambare-web/page-bundle

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

gambare-web/page-bundle
=======================

This is a page bundle for Symfony 5

0132PHP

Since Feb 10Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Page Bundle
===========

[](#page-bundle)

- Page bundle for Symfony 5 :
    - Seo Traits
    - Basic Analytics Traits
    - Timestampable (doctrine extensions)
- [EasyAdminBundle v3](https://symfony.com/doc/current/bundles/EasyAdminBundle/index.html) integration.

*Note : This Bundle is intended for personal use. But you are free to use it if you really want to*

Installation
============

[](#installation)

Open a command console, enter your project directory and execute:

```
composer require gambare-web/page-bundle:dev-main
```

Configuration
=============

[](#configuration)

#### Activate doctrine extention

[](#activate-doctrine-extention)

This bundle use sluggable and timestampable

```
stof_doctrine_extensions:
    orm:
        default:
            timestampable: true
            sluggable: true
```

*-TODO- automatize with a recipe*

#### Twig namespace

[](#twig-namespace)

Add Twig namespace in config/packages/twig.yaml if you want to use the predefined twig template

```
twig:
    paths:
        '%kernel.project_dir%/vendor/gambare-web/page-bundle/templates': gambare-web
```

#### Create Page entity

[](#create-page-entity)

Create a Page entity that extend PageBase class. The only required field is an id.

```
namespace App\Entity;

use App\Repository\PageRepository;
use Doctrine\ORM\Mapping as ORM;
use Gambare\PageBundle\Model\PageBase;

/**
 * @ORM\Entity(repositoryClass=PageRepository::class)
 */
class Page extends PageBase
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    public function getId(): ?int
    {
        return $this->id;
    }
}
```

#### Generate Migration

[](#generate-migration)

Tweak the Page entity adding any field you need then generate doctrine migration

```
php bin/console make:migration
php bin/console doctrine:migrations:migrate
```

Twig integration
================

[](#twig-integration)

3 twig template are provided for the PageMeta trait

```
    {% include '@gambare-web/_meta.html.twig' %}
    {% include '@gambare-web/_header_script.html.twig' %}
    {% include '@gambare-web/_footer_script.html.twig' %}
```

Here an example

```

    {% block title %}{% if page is defined %}{{ page.title }}{% else %}My Title{% endif %}{% endblock %}

    {% include '@gambare-web/_meta.html.twig' %}
    {% include '@gambare-web/_header_script.html.twig' %}

    {% block stylesheets %}
        {{ encore_entry_link_tags('app') }}
    {% endblock %}

{% block javascripts %}
    {{ encore_entry_script_tags('app') }}
    {% include '@gambare-web/_footer_script.html.twig' %}
{% endblock %}
```

EasyAdminBundle v3 integration
==============================

[](#easyadminbundle-v3-integration)

Create a PageCrudController class that extends PageBaseCrudController

PageBaseCrudController is extending the AbstractCrudController from EasyAdmin

```
namespace App\Controller\Admin;

use App\Entity\Page;
use Gambare\PageBundle\Controller\Admin\PageBaseCrudController;

class PageCrudController extends PageBaseCrudController
{
    public static function getEntityFqcn(): string
    {
        return Page::class;
    }
}
```

Add the PageCrudController to your EasyAdmin DashboardController

```
namespace App\Controller\Admin;

use App\Entity\Page;

class DashboardController extends AbstractDashboardController
{
   //[...]
    public function configureMenuItems(): iterable
    {
        //[...]
        yield MenuItem::linkToCrud('Page', 'far fa-file', Page::class);
    }
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![kaizokou](https://avatars.githubusercontent.com/u/15847039?v=4)](https://github.com/kaizokou "kaizokou (13 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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