PHPackages                             hpodevteam/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. [Database &amp; ORM](/categories/database)
4. /
5. hpodevteam/page-bundle

ActiveLibrary[Database &amp; ORM](/categories/database)

hpodevteam/page-bundle
======================

v1.6.0(3y ago)31041PHPPHP &gt;=7.4

Since May 14Pushed 3y agoCompare

[ Source](https://github.com/Hpodevteam/PageBundle)[ Packagist](https://packagist.org/packages/hpodevteam/page-bundle)[ RSS](/packages/hpodevteam-page-bundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (63)Used By (0)

Page-bundle
===========

[](#page-bundle)

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

[](#installation)

```
composer require "hpodevteam/page-bundle"
```

Configuration
-------------

[](#configuration)

Open your `config/packages/page.yaml` file and add :

```
page:
    sections:
        spacer: 'your spacing class'
        colors:
          color1:
            name: 'Your color name'
            value: '#fff'
          # You can set other colors
```

Open your `config/packages/vich_uploader.yaml` file and add :

```
parameters:
  app.path.section_image: /uploads/section_image

vich_uploader:
  mappings:
      section_image:
          uri_prefix: '%app.path.section_image%'
          upload_destination: '%kernel.project_dir%/public/uploads/section_image'
          namer: Vich\UploaderBundle\Naming\OrignameNamer
```

Usage
-----

[](#usage)

Add trait `SectionWidget` to the entity to be managed.

```
