PHPackages                             octopouce-mu/advertising-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. octopouce-mu/advertising-bundle

ActiveSymfony-bundle

octopouce-mu/advertising-bundle
===============================

Advertising bundle

056PHP

Since Aug 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/octopouce-mu/advertising-bundle)[ Packagist](https://packagist.org/packages/octopouce-mu/advertising-bundle)[ RSS](/packages/octopouce-mu-advertising-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

OctopouceAdvertisingBundle
==========================

[](#octopouceadvertisingbundle)

Prerequisites
-------------

[](#prerequisites)

This version of the bundle requires Symfony Flex (&gt;= 4.0) and PHP 7. You want to use Doctrine ORM and MySQL.

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

[](#installation)

1. Download OctopouceAdvertisingBundle using composer
2. Follow installation OctopouceAdminBundle
3. Update your database schema
4. Import OctopouceAdminBundle routing
5. Publish the Assets
6. Configure your file security
7. Usage : Add adzone in page

Step 1: Download OctopouceAdvertisingBundle using composer
----------------------------------------------------------

[](#step-1-download-octopouceadvertisingbundle-using-composer)

Require the bundle with composer:

```
$ composer require octopouce-mu/advertising-bundle
```

Step 2: Follow installation OctopouceAdminBundle
------------------------------------------------

[](#step-2-follow-installation-octopouceadminbundle)

For working the bundle, there needing OctopouceAdminBundle. Install dependencies bundles and configure.

[OctopouceAdminBundle](https://github.com/octopouce-mu/admin-bundle)

Step 3: Update your database schema
-----------------------------------

[](#step-3-update-your-database-schema)

For ORM run the following command.

```
$ php bin/console doctrine:schema:update --force
```

**Caution**

If error "1071 Specified key was too long; max key length is 767 bytes", you change configs doctrine :

```
# config/packages/doctrine.yaml
doctrine:
    dbal:
        charset: utf8
        default_table_options:
            charset: utf8
            collate: utf8_unicode_ci
```

Step 4: Import OctopouceAdvertisingBundle routing files
-------------------------------------------------------

[](#step-4-import-octopouceadvertisingbundle-routing-files)

Now that you have activated and configured the bundle, all that is left to do is import the OctopouceAdvertisingBundle routing files if Symfony Flex hasn't already imported the file.

```
# config/routes/octopouce_advertising.yaml
_octopouce_advertising:
    resource: "@OctopouceAdvertisingBundle/Resources/config/routing/routing.yaml"
```

Step 5: Publish the Assets
--------------------------

[](#step-5-publish-the-assets)

```
$ php bin/console assets:install --symlink
```

Step 6: Configure your file security
------------------------------------

[](#step-6-configure-your-file-security)

```
# config/packages/security.yaml
security:
    role_hierarchy:
        ROLE_ADVERT: ROLE_USER
        ROLE_ADMIN: [ROLE_ADVERT]
        ROLE_SUPER_ADMIN: ROLE_ADMIN
```

Step 7: Usage - Add adzone in page
----------------------------------

[](#step-7-usage---add-adzone-in-page)

Array Twig Exemple :

```
{{ adzone("Exemple") }}
```

HTML Exemple :

```
{{ adzone("Exemple", true)|raw }}
```

Others bundles
--------------

[](#others-bundles)

You can to add bundles with OctopouceAdminBundle :

- [OctopouceCmsBundle](https://github.com/octopouce-mu/cms-bundle)
- [OctopouceBlogBundle](https://github.com/octopouce-mu/blog-bundle)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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/5e65112897f6088b7ac1fd1d7b023b50ab22fbfc093bc38967459f2a214b8c04?d=identicon)[tetrayam](/maintainers/tetrayam)

### Embed Badge

![Health badge](/badges/octopouce-mu-advertising-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/octopouce-mu-advertising-bundle/health.svg)](https://phpackages.com/packages/octopouce-mu-advertising-bundle)
```

PHPackages © 2026

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