c975l/book-bundle

Symfony bundle that manages books and series for a publishing website — catalog, media collections, admin CRUD, pagination, and multilingual support.

Maintainers

Package info

github.com/975L/BookBundle

Type:symfony-bundle

pkg:composer/c975l/book-bundle

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-06-27 19:17 UTC

This package is auto-updated.

Last update: 2026-06-27 19:17:23 UTC


README

Symfony bundle that manages books and series for a publishing website — catalog, media collections, admin CRUD, pagination, and multilingual support.

GitHub Packagist Version PHP Version

Features

  • Book and series catalog with paginated list and detail views
  • Each book supports media, video, press, and marketing sub-collections with drag-and-drop ordering
  • Series group books with sorted ordering
  • Multilingual: books can reference translations across languages
  • Admin CRUD via EasyAdmin for books and series
  • Live component search for books
  • Sitemap generation
  • Twig isbn filter for formatting ISBN numbers

Requirements

  • PHP >= 8.0
  • c975L/UiBundle
  • Doctrine ORM
  • EasyAdmin
  • KNP Paginator Bundle
  • symfony/ux-live-component
  • symfony/ux-twig-component
  • VichUploader Bundle

Installation

Download

composer require c975l/book-bundle

Run migrations

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate

Enable routes

Add the bundle routes to config/routes.yaml:

c975_l_book:
    resource: "@c975LBookBundle/"
    type: attribute
    prefix: /

Install assets

php bin/console assets:install --symlink

Usage

Routes

Route URL Description
book_index /livres Paginated book list
book_display /livre/{slug} Book detail page
serie_index /series Paginated series list
serie_display /serie/{slug} Series detail page

ISBN filter

Format a raw ISBN string in Twig:

{{ book.isbn|isbn }}
{# Outputs: 979-10-92030-14-3 #}

Sitemap

Run the following command to generate public/sitemap-books.xml:

php bin/console book:sitemaps:create

If this project helps you save development time, consider sponsoring via the Sponsor button at the top of the GitHub page. Thank you!