This post discusses the practical steps and challenges involved in upgrading Alice, Nelmio, Hautelook, and Faker packages to their latest versions. It explains the process of converting YAML fixtures to PHP for better flexibility and refactoring, using PHPParser to automate conversions, and how to deal with dynamic data using functions and service tagging. Additionally, it highlights the benefits of using PHPStan for type checking and improving the overall development workflow.

7m read timeFrom tomasvotruba.com
Post cover image
Table of contents
1. Flip YAML fixtures to PHP2. Make PHP Fixtures useful again3. From static method in Faker provider to straightforward functions()4. But wait, there is more5. Teach Faker to Autoconfigure6. From (local) entities to honest clear schema7. Question: How to share Doctrine Native and Alice References?

Sort: