Mini Library Course #1: Introduction & Setting Up Your Symfony 8 Environment

Welcome to a brand new tutorial series where we won’t just cover Symfony theory — we’re going to build a real project together: a mini digital library application. This is Chapter 1 of the Mini Library course. If you’re new here, this series will take you from an empty folder to a fully working app with a public catalog, PDF reading, and a complete EasyAdmin dashboard. What you'll learn ...

September 12, 2026 · 4 min · 733 words · Naimi

Mini Library Course #2: Installing Symfony 8, Your First Controller & Template Integration

In Chapter 1, we set up our development environment. Now it’s time for the real work. In this chapter we do two things: Install our Symfony 8 project, following the official documentation step by step Integrate an HTML/CSS template, so our app looks good from day one What you'll learn ...

November 18, 2026 · 5 min · 1021 words · Naimi

Mini Library Course #3: Database, Entities & Migrations with Doctrine

Our app runs and has a template. Now it needs data. In this chapter we connect Symfony to a MySQL database, create our three entities (Author, Category and Book), link them together, and create the tables with migrations. What you'll learn Configure the MySQL connection in Symfony Create entities with make:entity, field by field Link entities: ManyToOne and ManyToMany Turn entities into tables with migrations Configuring the Database The connection is configured in the .env file at the root of the project. Symfony already ships with a few commented examples (SQLite, MySQL, MariaDB, PostgreSQL). We use MySQL, so we uncomment the MySQL line and comment out the others. ...

November 18, 2026 · 5 min · 968 words · Naimi

Mini Library Course #4: Version Your Symfony Project with Git & GitHub

Before adding new features, we take a moment to push our code to GitHub. Versioning your work regularly is a good habit: it keeps a clean history, lets you go back if something breaks, and protects the work already done. What you'll learn ...

November 18, 2026 · 3 min · 604 words · Naimi

Mini Library Course #5: Install EasyAdmin 5 in Symfony 8

Now we start the administration side of our library. We’ll use EasyAdminBundle, which builds a complete back office very quickly: CRUD screens, entity management, and a lot of saved time. What you'll learn Install EasyAdmin 5 with Composer Understand what Symfony Flex adds to the project Generate the admin dashboard with make:admin:dashboard Protect access to /admin Requirements EasyAdmin needs: ...

November 18, 2026 · 3 min · 531 words · Naimi

Mini Library Course #6: Display Your Own EasyAdmin Dashboard

EasyAdmin is installed, but /admin still shows the default welcome page. Before building our first CRUD, let’s display our own dashboard, using EasyAdmin’s layout so we keep the side menu. What you'll learn The three ways to choose what /admin displays Render your own template while keeping EasyAdmin’s layout Pass data (statistics) to your dashboard The Three Options in index() Open src/Controller/Admin/DashboardController.php. The generated index() method suggests three options: ...

November 18, 2026 · 3 min · 433 words · Naimi

Mini Library Course #7: Create an EasyAdmin CRUD & Customize Its Labels

Time for our first CRUD screen: create, list, edit and delete. We start with the simplest entity, Category, which has a single field. What you'll learn Generate a CRUD controller with make:admin:crud Choose the displayed fields and their labels Add the CRUD to the dashboard menu Customize page titles and buttons Generating the CRUD Controller symfony console make:admin:crud EasyAdmin detects our three entities and numbers them: ...

November 18, 2026 · 4 min · 640 words · Naimi

Mini Library Course #8: Author CRUD, EasyAdmin Translations & Pushing to GitHub

Last time, I left you the Author CRUD as an exercise. Here’s my version, a quick test, and then the simplest way to translate the whole admin into French. What you'll learn Build the Author CRUD with slug, rich text and date fields Display rich text correctly in the detail view Translate the whole admin into French with one line Push the work to GitHub The Author CRUD The Author entry is in the menu, and the whole screen is in French: Tous les auteurs, Ajouter un auteur, and every button. ...

November 18, 2026 · 4 min · 706 words · Naimi

Mini Library Course #9: Book CRUD in EasyAdmin: Fields, Relations, Files & Images

The Book entity is the heart of the project. In this chapter we configure every field of BookCrudController: text, relations, slug, the PDF file, the cover image, and the archived flag. What you'll learn Configure required text fields and rich text Link entities with AssociationField and __toString() Generate a slug automatically Upload a PDF with FileField and a cover with ImageField Generate the controller as for the others (symfony console make:admin:crud, then choose Book), add it to the menu, and let’s fill configureFields(). ...

November 18, 2026 · 4 min · 756 words · Naimi

Mini Library Course #10: Fix the EasyAdmin Display: HTML Rendering & Clickable Links

Our Book CRUD works, but the list is hard to read: raw HTML in the summary, a bare number for categories, and a hashed file name for the book. Before fixing that, we push our work, with one important precaution. What you'll learn ...

November 18, 2026 · 3 min · 632 words · Naimi

Mini Library Course #11: File Uploads Done Right in EasyAdmin

We left two problems open: the file paths aren’t saved, and deleted books leave their files on disk. There’s also a hidden bug in our “year_month” folder system. This chapter fixes all three. What you'll learn Spot the hidden bug of a path computed at display time Save each file’s path in the database at upload time Override persistEntity, updateEntity and deleteEntity Delete old files without any risk of data loss The Hidden Bug in Our Path System In chapter 9, we computed the upload folder from the current date, directly in configureFields(): ...

November 18, 2026 · 5 min · 938 words · Naimi

Mini Library Course #12: Fix Required File Fields in EasyAdmin & Add Custom CSS

Last chapter ended with a challenge: our file and image fields are required, so when you edit a book, EasyAdmin complains they’re empty, even though the files exist. This is a classic EasyAdmin gotcha. Let’s fix it properly, then clean up the admin’s styling with a custom CSS file. What you'll learn ...

November 18, 2026 · 3 min · 512 words · Naimi