PHPackages                             inwebo/seo-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. inwebo/seo-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

inwebo/seo-bundle
=================

A lightweight Symfony bundle to manage SEO metadata and breadcrumbs.

1.0.0(1mo ago)230GPL-3.0-or-laterPHPPHP &gt;=8.4CI failing

Since Mar 25Pushed 3mo agoCompare

[ Source](https://github.com/inwebo/seo-bundle)[ Packagist](https://packagist.org/packages/inwebo/seo-bundle)[ Docs](https://github.com/inwebo/seo-bundle)[ RSS](/packages/inwebo-seo-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (15)Versions (3)Used By (0)

Inwebo SEO Bundle
=================

[](#inwebo-seo-bundle)

[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/2240f323b77d9715182b5b62aac4851ee5c0743122710e47ef3d8cdbaab04729/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e7765626f2f73656f2d62756e646c652f2e676974687562253246776f726b666c6f777325324662756e646c652e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2240f323b77d9715182b5b62aac4851ee5c0743122710e47ef3d8cdbaab04729/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e7765626f2f73656f2d62756e646c652f2e676974687562253246776f726b666c6f777325324662756e646c652e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/71cffcc5854c74dce6e82ea09af24e817307dc2a5c960c39933ffca507c57f57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7765626f2f73656f2d62756e646c653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/71cffcc5854c74dce6e82ea09af24e817307dc2a5c960c39933ffca507c57f57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7765626f2f73656f2d62756e646c653f7374796c653d666c61742d737175617265)[![Packagist Downloads](https://camo.githubusercontent.com/15555d83b4aafe03ca55855e1cdf983b2cc85ac853e910ba731088f3e5861e94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f696e7765626f2f73656f2d62756e646c653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/15555d83b4aafe03ca55855e1cdf983b2cc85ac853e910ba731088f3e5861e94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f696e7765626f2f73656f2d62756e646c653f7374796c653d666c61742d737175617265)

A lightweight Symfony bundle to manage SEO metadata (title, description, H1) and navigational breadcrumbs with Twig-powered templating and CLI importers.

Contents
--------

[](#contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Configure your entities](#configure-your-entities)
- [Bundle configuration](#bundle-configuration)
- [Database/migrations](#databasemigrations)
- [Usage in Twig](#usage-in-twig)
- [Importing from routes (CLI)](#importing-from-routes-cli)
- [Route parameters and templating](#route-parameters-and-templating)
- [Global variables with Bags](#global-variables-with-bags)
- [Customizing the breadcrumbs template](#customizing-the-breadcrumbs-template)
- [Troubleshooting](#troubleshooting)
- [License](#license)

Features
--------

[](#features)

- SEO metadata service that renders title, meta description and H1 using Twig templates.
- Breadcrumbs service that renders a breadcrumb trail using a provided Twig partial.
- Both features read from your Doctrine entities; you control persistence in your app.
- Twig variables come from your controller arguments and from optional shared “bags”.
- Two console commands to import missing items from your Symfony routes.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.4
- Symfony 7.3 (FrameworkBundle, Console, Routing, TwigBundle)
- Doctrine ORM 3.x
- Twig 3.21+

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

[](#installation)

1. Install the package via Composer

```
composer require inwebo/seo-bundle

```

2. Symfony will auto-register the bundle (type: symfony-bundle). No manual steps needed.

Configure your entities
-----------------------

[](#configure-your-entities)

This bundle ships mapped superclasses you should extend to create concrete Doctrine entities in your project.

Example: App entity for breadcrumbs

```
