Skip to content

975L/BookBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookBundle

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors