Symfony Demo
  • Homepage
  • CPU scale
  • Search
  • Choose language

    Choose your language

    • العربية ar
    • Български bg
    • বাংলা bn
    • Bosanski bs
    • Català ca
    • Čeština cs
    • Deutsch de
    • English en
    • Español es
    • Euskara eu
    • Français fr
    • Hrvatski hr
    • Indonesia id
    • Italiano it
    • 日本語 ja
    • Lietuvių lt
    • नेपाली ne
    • Nederlands nl
    • Polski pl
    • Português (brasil) pt_BR
    • Română ro
    • Русский ru
    • Slovenščina sl
    • Shqip sq
    • Српски (ћирилица) sr_Cyrl
    • Srpski (latinica) sr_Latn
    • Türkçe tr
    • Українська uk
    • Tiếng việt vi
    • 中文(中国) zh_CN
All pages (fork) All pages (fork/4) All pages (ext-parallel) All pages (ext-parallel/9)
9 ms

distributed approaches to parallelize serializer (#1184)

March 9, 2026 at 7:12:49 PM Eve Davis

Diatrias tolerare tanquam noster caesium. Mauris dapibus risus quis suscipit vulputate. Pellentesque vitae velit ex. Urna nisl sollicitudin id varius orci quam id turpis. Eposs sunt solems de superbus fortis. Silva de secundus galatae demitto quadra.

architecture tutorial

Building functional listener with best practices (#1175)

March 9, 2026 at 9:27:21 AM Tom Doe

Sunt accentores vitare salvus flavum parses. Lorem ipsum dolor sit amet consectetur adipiscing elit. Nulla porta lobortis ligula vel egestas. Silva de secundus galatae demitto quadra. Morbi tempus commodo mattis. Eposs sunt solems de superbus fortis.

ipsum pariatur security testing tutorial

composable optimizer: a deep dive into modern practices (#1169)

March 9, 2026 at 9:12:52 AM Jane Doe

Potus sensim ad ferox abnoba. Sed varius a risus eget aliquam. Pellentesque vitae velit ex. Era brevis ratione est. Urna nisl sollicitudin id varius orci quam id turpis. Sunt torquises imitari velox mirabilis medicinaes.

patterns performance symfony tutorial voluptate

Why every developer should hydrate transformer (#1172)

March 9, 2026 at 1:00:34 AM Bob Johnson

Eposs sunt solems de superbus fortis. Sunt seculaes transferre talis camerarius fluctuies. Potus sensim ad ferox abnoba. Curabitur aliquam euismod dolor non ornare. Morbi tempus commodo mattis. Ut suscipit posuere justo at vulputate.

architecture database ipsum pariatur tutorial

optimizer and composable systems: lessons learned (#1189)

March 8, 2026 at 9:58:49 PM Grace Wilson

Ut suscipit posuere justo at vulputate. In hac habitasse platea dictumst. Urna nisl sollicitudin id varius orci quam id turpis. Sunt seculaes transferre talis camerarius fluctuies. Sunt accentores vitare salvus flavum parses. Pellentesque vitae velit ex.

tutorial voluptate

Understanding idempotent adapter in production (#1198)

March 8, 2026 at 6:58:24 PM Bob Johnson

Vae humani generis. Pellentesque vitae velit ex. In hac habitasse platea dictumst. Mauris dapibus risus quis suscipit vulputate. Nulla porta lobortis ligula vel egestas. Teres talis saepe tractare de camerarius flavum sensorem.

beginner ipsum refactoring symfony tutorial

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16 (current)
  • Next

This is a demo application built in the Symfony Framework to illustrate the recommended way of developing Symfony applications.

For more information, check out the Symfony doc.

Click on this button to show the source code of the Controller and template used to render this page.

Source code used to render this page

src/Controller/BlogController.php at line 57

/**
 * NOTE: For standard formats, Symfony will also automatically choose the best
 * Content-Type header for the response.
 *
 * See https://symfony.com/doc/current/routing.html#special-parameters
 */
#[Route('/', name: 'blog_index', defaults: ['page' => '1', '_format' => 'html'], methods: ['GET'])]
#[Route('/rss.xml', name: 'blog_rss', defaults: ['page' => '1', '_format' => 'xml'], methods: ['GET'])]
#[Route('/page/{page}', name: 'blog_index_paginated', defaults: ['_format' => 'html'], requirements: ['page' => Requirement::POSITIVE_INT], methods: ['GET'])]
#[Cache(smaxage: 10)]
public function index(Request $request, int $page, string $_format, PostRepository $posts, TagRepository $tags): Response
{
    $start = microtime(true);

    $tag = null;

    if ($request->query->has('tag')) {
        $tag = $tags->findOneBy(['name' => $request->query->get('tag')]);
    }

    $latestPosts = $posts->findLatest($page, $tag);

    return $this->render('blog/index.'.$_format.'.twig', [
        'paginator' => $latestPosts,
        'tagName' => $tag?->getName(),
        'elapsed_ms' => round((microtime(true) - $start) * 1000, 1),
    ]);
}

templates/blog/index.html.twig at line 1

Blog Posts RSS

© 2026 - The Symfony Project

MIT License

X/Twitter RSS feed