PHPackages                             waaz/sylius-hero-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. waaz/sylius-hero-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

waaz/sylius-hero-plugin
=======================

Hero plugin for Sylius - Manage hero sections with slides/blocks.

05PHP

Since Jan 19Pushed 5mo agoCompare

[ Source](https://github.com/StudioWaaz/SyliusHeroPlugin)[ Packagist](https://packagist.org/packages/waaz/sylius-hero-plugin)[ RSS](/packages/waaz-sylius-hero-plugin/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Waaz Sylius Hero Plugin
=======================

[](#waaz-sylius-hero-plugin)

Plugin Sylius pour créer et gérer des sections Hero avec des slides/blocks.

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

[](#installation)

```
composer require waaz/sylius-hero-plugin
```

Après l'installation, exécutez les migrations :

```
bin/console doctrine:migrations:migrate
```

### Configuration des routes

[](#configuration-des-routes)

Pour activer les routes du plugin, ajoutez-les dans votre fichier `config/routes.yaml` :

```
waaz_sylius_hero_shop:
    resource: "@WaazSyliusHeroPlugin/config/shop_routing.yml"
    prefix: /{_locale}
    requirements:
        _locale: ^[a-z]{2}(?:_[A-Z]{2})?$

waaz_sylius_hero_admin:
    resource: "@WaazSyliusHeroPlugin/config/admin_routing.yml"
    prefix: /admin
```

Utilisation
-----------

[](#utilisation)

### Administration

[](#administration)

1. Accédez à l'administration Sylius
2. Dans le menu, vous trouverez "Héros"
3. Créez un nouveau Hero avec un code unique (ex: `homepage`)
4. Ajoutez des blocks (slides) à votre Hero :
    - **Image** (obligatoire)
    - **Titre** (optionnel)
    - **Bouton** avec texte et URL (optionnel)
    - **Position** pour l'ordre d'affichage
    - **Canal** (optionnel, pour filtrer par channel Sylius)
    - **Activé/Désactivé**

### Frontend

[](#frontend)

Pour afficher un Hero dans un template Twig, utilisez le contrôleur :

```
{{ render(path('waaz_sylius_hero_shop_hero_index_by_code', {'code': 'homepage'})) }}
```

Pour utiliser un template personnalisé, passez le paramètre `template` :

```
{{ render(path('waaz_sylius_hero_shop_hero_index_by_code', {
    'code': 'homepage',
    'template': '@YourBundle/Shop/hero_custom.html.twig'
})) }}
```

Personnalisation des templates
------------------------------

[](#personnalisation-des-templates)

Pour personnaliser l'affichage, surchargez le template dans votre application :

```
templates/bundles/WaazSyliusHeroPlugin/Shop/hero.html.twig

```

Le template reçoit la variable `hero` avec :

- `hero.code` : Le code du Hero
- `hero.blocks` : Collection des blocks (slides)
    - `block.image.path` : Chemin de l'image
    - `block.title` : Titre (optionnel)
    - `block.buttonText` : Texte du bouton (optionnel)
    - `block.buttonUrl` : URL du bouton (optionnel)
    - `block.buttonTargetBlank` : Ouvrir dans un nouvel onglet (optionnel)

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

[](#configuration)

Le filtre d'image Imagine est configuré automatiquement :

- **Filtre** : `waaz_sylius_hero_shop_hero_image`
- **Taille** : 1920 × 793 px

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity13

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/be807124a2589dd8893abd7ce74a78a443e45f1c7c8ca135eb05e21c1a5191c7?d=identicon)[ehibes](/maintainers/ehibes)

### Embed Badge

![Health badge](/badges/waaz-sylius-hero-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/waaz-sylius-hero-plugin/health.svg)](https://phpackages.com/packages/waaz-sylius-hero-plugin)
```

PHPackages © 2026

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