Advertisement · 728 × 90

Posts by Kevin Bond

Preview
Routing with Doctrine Inheritance Let's create a dedicated show page for our starships and check out how routing works with Doctrine inheritance entities. We first need a new controller, so hope over to the terminal and run: """terminal...

Doctrine Inheritance #7
Routing + entity value resolver + Doctrine inheritance = a thing of beauty! Plus, we'll use our dynamic Twig template trick right inside a controller - awesome!

3 days ago 2 1 0 0
Preview
Inheritance with Twig You see each of these starship rows here? They show the generic Starship properties. I want to make these a bit more interesting by showing the custom Starship properties for our sub-ships in these…

Doctrine Inheritance #6 Today, let's see what happens when Twig template inheritance meets Doctrine inheritance! 🤯 symfonycasts.com/screencast/d...

1 week ago 1 1 0 0
Preview
Querying Classes Let's see how we can query specific types of ships. Here, we see a list of all starships

Doctrine Inheritance #5
Need to query specific types in an inheritance hierarchy? You're in luck, DQL has a built-in expression for that! Let's get our query on! symfonycasts.com/screencast/d...

2 weeks ago 1 1 0 0
Preview
Class Table Inheritance Time to let's dive into the final type of Doctrine Inheritance: Class Table Inheritance. This one goes back to using a single table per entity in the hierarchy

Doctrine Inheritance #4
Last but not least: Class Table Inheritance! Split your entity hierarchy across tables, stitched together with JOINs and love ❤️. Let’s see it in action!

2 weeks ago 2 1 0 0
Post image

Come meet folks from @Symfony.com & @SymfonyCasts.com at our #DrupalCon booth tomorrow—and grab some swag!

2 weeks ago 3 2 0 0
Preview
Single Table Inheritance Alright, so in order to be able to fetch all the starships at once, we need to use Doctrine's second type of inheritance: Single Table Inheritance. With this feature, all entities that are part of the...

Doctrine Inheritance #3
Ready for the next inheritance type? Single Table Inheritance is a slick way to store an entire entity hierarchy in one table. Let’s check it out!

3 weeks ago 2 2 0 0
Preview
Mapped Superclasses Coming soon...

New course alert! 🚨 Doctrine Inheritance #1
Want to share fields and behavior across multiple entities? Let’s start with the simplest form: the Mapped Superclass!

1 month ago 1 1 0 0
Preview
Static Analysis with PHPStan While *tests* verify your code works as expected by running it, *static analysis* examines your code without executing it. This helps catch potential issues that tests might miss

Find bugs without even running your code. Use PHPStan to add static analysis to your project and start catching issues your tests miss --> symfonycasts.com/screencast/b...

2 months ago 4 2 0 0
Stateful vs Stateless CSRF protection in Symfony
Stateful vs Stateless CSRF protection in Symfony A quick guide to stateful vs stateless CSRF protection in Symfony — and how request protection works today. #Symfony #shorts Watch the full video 👉 …

Happy Thursday - here's a quick guide to stateful vs stateless CSRF protection in Symfony — and how request protection works today. #Symfony #shorts
www.youtube.com/shorts/URNBE...

2 months ago 2 1 0 0
Preview
Metadata & PHP CS Fixer Bundle coding is done, and tests are passing on all our supported Symfony versions. We're on the home stretch! ## License File Let's add a license file to our bundle

Consistent code style = happier humans reading your code. Install PHP-CS-Fixer and start automating the boring stuff --> symfonycasts.com/screencast/b...

2 months ago 1 1 0 0
Advertisement

I can finally (eventually) deprecate/archive the zenstruck/console-extra package and I couldn't be happier! The end goal of that package (and all my others) is to see the features in #Symfony core! ❤️❤️❤️

2 months ago 6 1 0 1

Merged 🎉
You can't imagine how proud I feel as life made me struggle to do anything beyond pure maintenance work on #OSS for the past 2 years.

2 months ago 13 5 1 1
Preview
Processing the Submitted Form Alright, we've built, created, rendered, and styled our form. I've given it my all and now our form is ready for submission

Symfony Form Basics #3
We can submit our form… but nothing happens yet! Let’s take the submitted data, save it to the database, redirect, and show the user a success message. And then go grab a snack, you earned it!

3 months ago 2 2 0 0
Preview
Rendering the Form In the last chapter, we dove into the Symfony Form component, built our first Form type, and created a Form object from the type in the controller. Now, let's move on to the fun part — bringing it all...

Symfony Form Basics #2
Time to render our form, enable a Tailwind CSS plugin to improve its default styling, and wire up a submit button so it’s actually usable - let's do this friends!

3 months ago 1 1 0 0
Preview
Creating a Form Type Class ## Introduction: The Power of Forms Forms are everywhere. Login boxes, search fields, admin tooling, checkout steps — if your app lets humans type things, congrats, you’re in Form Land

🎉 New year, new course! 🚨
Symfony Form Basics #1
Let's install the Form component, create our first form type, build the form in the controller, and pass it to Twig.

3 months ago 1 1 0 0
Preview
Composer 2.9 Automatic Security Blocking: Fireside Chat Composer 2.9 turns security the next level

New Blog Post: Composer 2.9 Automatic Security Blocking: Fireside Chat 📦 🔒 🔥 symfonycasts.com/blog/compose...

3 months ago 5 1 0 0

New SymfonyCasts Course: Bundle Development
➡️ symfony.com/blog/new-symfonycasts-co...

3 months ago 3 1 0 0
Preview
Symfony Flex Recipe We left off with this gross user experience when installing our bundle in a Symfony application. Let's create a Symfony Flex recipe to improve this! The recipe will add the required "Translation" entity,...

Symfony Bundle Development #36:
Final chapter! Let's top things off with a Symfony Flex recipe that gives our bundle a clean, friction-free installation experience.

3 months ago 1 1 0 0
Preview
Publish to Packagist and Release Our bundle is now hosted on GitHub and our continuous integration with GitHub Actions is green! To make it installable via Composer, we need to publish it on Packagist. You won't be able to follow along...

Symfony Bundle Development #35:
Publish or perish... Let’s add our bundle to Packagist and tag a 1.0 release! 🚀

4 months ago 2 1 0 0
Advertisement
Preview
CI with GitHub Actions At long last, it's time to share our bundle with the world! First though, we'll add the configuration needed for GitHub Actions to run our tests, static analysis, and verify our coding standards. In our...

Symfony Bundle Development #34:
Time to go public! We’ll add a GitHub Actions workflow for tests, static analysis, and coding standards, then create a fresh GitHub repo for our bundle and watch our CI spring to life. 🤞

4 months ago 2 1 0 0

And 2.8.1 fully supports Symfony 8!

Foundry has also passed 10M downloads!

4 months ago 5 0 0 0
Preview
Release v2.8.0 · zenstruck/foundry This release introduces a new attribute #[AsFoundryHook], which allows to declare Foundry hooks as Symfony services. It also permits to have "global" hooks for all kind of objects created with Foun...

Foundry 2.8 released, which introduces new attribute`#[AsFoundryHook]`

github.com/zenstruck/fo...

#php #symfony @zenstruck.com

5 months ago 2 1 0 1
Preview
Static Analysis with PHPStan While *tests* verify your code works as expected by running it, *static analysis* examines your code without executing it. This helps catch potential issues that tests might miss

Symfony Bundle Development #33:
We’ve got tests, but it’s time to add another superpower: PHPStan! Static analysis helps reveal sneaky issues your test suite might miss - let's dig in!

4 months ago 4 1 0 0
Preview
Metadata & PHP CS Fixer Bundle coding is done, and tests are passing on all our supported Symfony versions. We're on the home stretch! ## License File Let's add a license file to our bundle

Symfony Bundle Development #32:
With code and tests locked in, it's time to give our bundle a little polish 💅 — add metadata, clean up docs, tidy exports, and bring in consistent, automated code styling with PHP CS Fixer.

4 months ago 2 1 0 0
Preview
Testing with Multiple Symfony Versions It's time to nail down the PHP and package dependency versions our bundle supports. ## Adding PHP Version Requirement If we look at our bundle's "composer

Symfony Bundle Development #31:
Bundles don't get to be picky about their dependencies. So, let's widen those constraints and take our test suite on a tour of Symfony versions - including the wild, un-housebroken dev builds.

4 months ago 3 1 0 0
Preview
Rediscover the Console - SymfonyCon Amsterdam 2025 Console is one of the most widely used Symfony components and ranks among the top 5 most downloaded PHP packages worldwide. Used by essential tools s…

This year's #SymfonyCon was incredible -- full of good vibes and awesome talks. Huge thanks to the @symfony.com team for the spectacular organization 🙌

Hope all attendees of my "Rediscover the Console" talk enjoyed it, here are the slides! speakerdeck.com/chalasr/redi...

4 months ago 16 6 1 0
Post image Post image

Let's gooo #SymfonyCon Amsterdam! Come by our booth to grab some socks 🧦 and swag!

4 months ago 9 1 0 0
Post image Post image Post image Post image

We're so excited for #SymfonyCon tomorrow! 🚀

4 months ago 8 1 1 0

It'll be on the SymfonyCasts blog. Good idea about a composer plugin tutorial. I will think about that!

6 months ago 2 0 0 0
Advertisement
Preview
GitHub - zenstruck/class-metadata: Add human readable class aliases & metadata with efficient lookups. Add human readable class aliases & metadata with efficient lookups. - zenstruck/class-metadata

I'm glad you found it useful! You might want to check out github.com/zenstruck/cl... I'm writing a blog post about it and using an auditing system like you describe as an example.

6 months ago 0 0 1 0