Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. How I use Agents to Extract Hidden Feedback from Github and Improved Rector

    I was randomly drifting through Github trending PHP repositories, and checking how popular projects use `rector.php`.

  2. 7 tips to Improve your ECS Config

    Easy Coding Standard got a [new release last week](/blog/ecs-13-2-lighter-smarter-more-fun-for-large-legacy-projects) with a couple of cool features and new dead docblock rules.

  3. ECS 13.2: Lighter, Smarter and More Fun for Large/Legacy Projects

    Easy Coding Standard focuses on easy setup, easy run, and easy use.

  4. Find the One PHPStan Rule You Need, Beyond the Core

    PHPStan core gets you to level 10 with solid type checks.

  5. Introducing CTOR: Prefer Constructor over Always-Called Setters

    We've all seen it: `new Human()` followed by three `setName()`, `setAge()`, `setEmail()` calls that are always there.

  6. Alice, Nelmio, Hautelook, Faker - How to Upgrade Doctrine Fixtures - Part 3

    In previous parts ([part 1](/blog/alice-nelmio-hautelook-faker-and-how-to-upgrade-doctrine-fixtures-part-1) and [part 2](/blog/alice-nelmio-hautelook-faker-and-how-to-upgrade-doctrine-fixtures-part-2)) we looked at a situation where we are stuck with Alic…

  7. 5 Books I Enjoyed Reading in 2025

    Keeping the tradition from [previous](/blog/5-books-i-enjoyed-reading-in-2024) [years](/blog/5-books-i-enyjoed-reading-in-2023), here is my short list of 5 books I really enjoyed reading in 2025.

  8. The Patch for Laravel Container

    [I switched this website from Symfony to Laravel](/blog/why-I-migrated-this-website-from-symfony-to-laravel) 2,5 years ago, and I [love Laravel Container](/blog/what-i-prefer-about-laravel-dependency-injection-over-symfony) ever since.

  9. How we Maintain Dozens of Symfony Workflows with Peace

    There are dozens of posts and talks about how Symfony Workflows work and what they are for.

  10. Upgrading Sensio Security Annotation: The Full Story

    The `@Security` annotation, which originated in the Sensio extra bundle, goes a long way.

  11. Create Weird Fun PHPStan Rules like Nobody's Watching

    There are 2 ways to use PHPStan.

  12. Why AST beats GPTs - featuring php-parser, ChatGPT 4.5 and Grok 3

    As I'm manually writing this article, GPTs are on the hype train now.

  13. Custom PHPStan Rules to Improve Every Symfony project

    Using PHPStan is not just about getting to level 8 with less than 100 ignored cases.

  14. Cost-effective Container Smoke Tests every Symfony Project must have

    Today, I'll share a trademark secret that allows us to move fast and make huge changes without fear.

  15. 5 Books I enjoyed Reading in 2024

    Another year is gone, and it's [tradition](/blog/5-books-i-enyjoed-reading-in-2023) to pick 5 books I enjoyed reading in 2024.

  16. Alice, Nelmio, Hautelook, Faker - How to upgrade Doctrine Fixtures - Part 2

    In the first part, [we've kicked off the plan](/blog/alice-nelmio-hautelook-faker-and-how-to-upgrade-doctrine-fixtures-part-1) to upgrade all these packages to their latest version, like a blind map into unknown territory.

  17. Symfony @required - Avoid the Temptation and Use it Right

    Symfony 3 introduced a [`@required` annotation](https://symfony.com/doc/3.x/service_container/calls.html) (now also an attribute) that allows injecting more services via the setter method apart constructor.

  18. Unused Definitions with Behat Static Analysis

    Recently, I've been working on projects with Behat tests.

  19. Why Final Classes make Rector and PHPStan more powerful

    Final classes bring much more value than `extends` it lacks.

  20. Off the Beaten Path to Upgrade Symfony 2.8 to 7.2

    There are two types of upgrades.

  21. How to flip Doctrine ODM repositories to Services

    While working with legacy projects, I often encountered this anti-pattern of misusing repositories.

  22. Alice, Nelmio, Hautelook, Faker - How to upgrade Doctrine Fixtures - Part 1

    Upgrading Doctrine Fixtures can be challenging work.

  23. 5 Ways to Extract Value from Overmocked Tests

    The legacy projects we work with are often flooded with mocks.

  24. How to Upgrade deprecated PHPUnit withConsecutive()

    The `withConsecutive()` method [was deprecated in PHPUnit 9](https://github.com/sebastianbergmann/phpunit/issues/4255#issuecomment-636422439) and removed in PHPUnit 10.

  25. PHP is the Best Choice for Long‑Term Business

    Recently, I listened to Lex Friedman's [podcast with Pieter Levels](https://open.spotify.com/episode/6KBpL2XfR9VdojbKNpE7cX).

  26. Scope and Downgrade your PHP Tools for Everyone to Use

    Yesterday, I came across a cool PHP tool.

  27. Awesome PHP Packages from Japan

    Last month, I spent in Japan to travel and absorb the local culture.

  28. 2 Tricks to get your Symfony configs lines to minimum

    I believe that every Symfony app can fit service config under 5 lines.

  29. How to reload code highlighter on Livewire 3 component update

    I use Livewire 3 for interactive forms and fast clickable maps.

  30. How to add visibility to 338 Class Constants in 25 seconds

    In PHP, we have classes with methods inside them.

  31. Cool features of Swiss Knife

    When using a Swiss knife, we think of a tool with many practical abilities.

  32. Get Quick Error Count for each PHPStan level

    When I come to a new project, I want to make a rough idea of what I'm dealing with in a few minutes.

  33. How adding Type Declarations makes Your Code Dangerous

    ...and how to avoid it.

  34. Master the Change

    When we upgrade a new project to the best version possible, the latest PHP and framework versions, it's not only about changing syntax sugar to a more fancy one.

  35. Finalize Classes - Automated and Safe

    Final classes have [many](https://ocramius.github.io/blog/when-to-declare-classes-final/) [great](https://tomasvotruba.com/blog/2019/01/24/how-to-kill-parents) [benefits](https://matthiasnoback.nl/2018/09/final-classes-by-default-why/) for future human re…

  36. Rector Book 2024 Release with Brand new Chapter

    I'm happy to introduce the latest update to our book - *Rector, the Power of Automated Refactoring*, along with Rector version 0.19.5 from this week.

  37. 3 Signs Your Project is Becoming Legacy - Mock Rottening

    In [the first post](/blog/3-signs-your-project-is-becoming-legacy-and-how-to-avoid-them), we looked at the long-term effects of our decisions.

  38. Get Json output for PHPUnit 10

    Early this year, I created a few custom Rector rules for our client.

  39. Zen Config in ECS 12

    Easy Coding Standard focuses on easy run, setup, and use.

  40. 5 Books I enjoyed Reading in 2023

    I've read over a dozen books in 2023.

  41. 3 Signs Your Project is Becoming Legacy - Arrays Creep

    In [the first post](/blog/3-signs-your-project-is-becoming-legacy-and-how-to-avoid-them), we looked at the long-term effects of our decisions.

  42. 3 Signs Your Project is Becoming Legacy and How to Avoid Them

    Taking care of a software project long-term is not about immediate action but routine and regular checks.

  43. How to Autowire Multiple Instances of Same Type in Symfony and Laravel

    Do you work with Symfony from 2 through 7?

  44. How to make your Tool Commands List Easy to Ready

    Do you use Symfony-console based tools?

  45. From Symfony to Laravel - 5 Steps to Prepare your Symfony Project for Migration

    Framework migration is a challenge few choose to take - yet in some cases, it makes sense for business, project health, and pure joy from coding.

  46. From Symfony to Laravel - Can Laravel even Compiler Pass

    Do you want to migrate your Symfony project to Laravel and not sure if it "handles it"?

  47. How to take Advantage of 3rd party Dependency Injection Container

    When Nuno sent me a Pest plugin for type coverage that runs [TomasVotruba/type-coverage](https://github.com/TomasVotruba/type-coverage), I looked for the PHPStan container use.

  48. Easy and Quick way to Measure lines of Code in PHP

    The famous [phploc](https://github.com/sebastianbergmann/phploc) package to measure project size was archived by Sebastian on Jan 10, 2023.

  49. Removing Service from Laravel Container is not that Easy

    Last month I successfully [switched the Symfony container for Laravel one](/blog/experiment-how-i-replaced-symfony-di-with-laravel-container-in-ecs) in Easy Coding Standard.

  50. How to Remove Transitional Dependencies You don't Need

    In the last post [I shared a trick](/blog/unleash-the-power-of-simplicity-php-cli-app-with-minimal-dependencies) on how to **reduce CLI project /vendor size by 70 %**.