PHP Frameworks - International PHP Conference https://phpconference.com/php-frameworks IPC 2025 Fri, 12 Sep 2025 09:11:03 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 CakePHP Test Fixture Factories https://phpconference.com/php-frameworks/cakephp-test-fixture-factories/ Thu, 26 Nov 2020 10:18:01 +0000 https://phpconference.com/session/cakephp-test-fixture-factories/ CakePHP is known for featuring a powerful and intuitive convention-based Object Relational Mapper. But like many PHP frameworks, it shows limitations in the management of test fixtures. One approach consists in loading or emulating a database dump before each test is run. Another one creates the test fixtures with the help of factories inside each...

Read More

The post CakePHP Test Fixture Factories appeared first on International PHP Conference.

]]>
CakePHP is known for featuring a powerful and intuitive convention-based Object Relational Mapper. But like many PHP frameworks, it shows limitations in the management of test fixtures.

One approach consists in loading or emulating a database dump before each test is run. Another one creates the test fixtures with the help of factories inside each test.

The first approach breaks the rule of test independence, and leads to opaque tests. We investigated the second approach, which delivers more intelligible tests. But as a trade off, tests got slower to write.

Really slower? No. Thanks to the CakePHP ORM, we came up with an efficient method to write test fixtures on the fly: the CakePHP Fixture Factories. Tests are fast to write and document ideally your application. The package drastically increases the tests’ speed by offering the possibility to create entities without persistence.

On the journey we developed a trigger-based PHPUnit test listener in order to refresh test databases prior to each test.

Whether you are a CakePHP developer or not, the presentation will provide insights on how to arrange your tests and manage your test fixtures.

Juan Pablo Ramirez – Nicolas Masson
https://github.com/vierge-noire/cakephp-fixture-factories
https://github.com/vierge-noire/cakephp-test-suite-light

The post CakePHP Test Fixture Factories appeared first on International PHP Conference.

]]>
Acceptance Tests Best Pratice – Live Coding Codeception https://phpconference.com/php-frameworks/acceptance-tests-best-pratice-live-coding-codeception/ Wed, 04 Mar 2020 14:00:32 +0000 https://phpconference.com/session/acceptance-tests-best-pratice-live-coding-codeception/ Funktionen in einer PHP-Anwendung erfordern verschiedene Arten von Tests, um sicherzustellen, dass alles gut läuft. Mit dem Codeception-Framework ist es sehr einfach, diese Testsuiten einzurichten und auszuführen. In dieser Live-Coding-Session werden wir Acceptance-, API- und PHPUnit-Tests für eine Symfony-Anwendung durchführen. Akzeptanztests werden die tatsächlichen User Stories mit verschiedenen Browsern und Benutzerinteraktionen testen. Das Frontend ist...

Read More

The post Acceptance Tests Best Pratice – Live Coding Codeception appeared first on International PHP Conference.

]]>
Funktionen in einer PHP-Anwendung erfordern verschiedene Arten von Tests, um sicherzustellen, dass alles gut läuft. Mit dem Codeception-Framework ist es sehr einfach, diese Testsuiten einzurichten und auszuführen.
In dieser Live-Coding-Session werden wir Acceptance-, API- und PHPUnit-Tests für eine Symfony-Anwendung durchführen.

Akzeptanztests werden die tatsächlichen User Stories mit verschiedenen Browsern und Benutzerinteraktionen testen. Das Frontend ist das Ergebnis aller Technologien.
Man kann also sagen, dass Ihre Infrastruktur gut funktioniert und auch das Frontend mit seinem eigenen Multiple-Technology-Stack gut läuft.
Dies ist auch eine Möglichkeit, Legacy-Anwendungen zu testen und eine Build-Pipeline einzurichten.

The post Acceptance Tests Best Pratice – Live Coding Codeception appeared first on International PHP Conference.

]]>
Lessons learned from building Sulu 2.0 https://phpconference.com/php-frameworks/lessons-learned-from-building-sulu-2-0/ Wed, 19 Feb 2020 06:51:13 +0000 https://phpconference.com/session/lessons-learned-from-building-sulu-2-0/ After more then 2,5 years of development we have finally released a new major release of our OpenSource Content Management System build on top of Symfony. That’s a very long time, and we have totally underestimated how much work it will be. However, this allowed us to learn a lot of different lessons, from many...

Read More

The post Lessons learned from building Sulu 2.0 appeared first on International PHP Conference.

]]>
After more then 2,5 years of development we have finally released a new major release of our OpenSource Content Management System build on top of Symfony. That’s a very long time, and we have totally underestimated how much work it will be. However, this allowed us to learn a lot of different lessons, from many different areas. Some concern how to plan such a project, how to handle certain restrictions or software architecture. In this talk I would like to tell you about as many as of these lessons as possible.

The post Lessons learned from building Sulu 2.0 appeared first on International PHP Conference.

]]>
WordPress for Modern Developers https://phpconference.com/web-development/wordpress-for-modern-developers/ Thu, 13 Feb 2020 10:59:40 +0000 https://phpconference.com/session/wordpress-for-modern-developers/ WordPress may poser a third of the web, but it’s one of the world’s most popular legacy projects. So if you’re a modern web developer but you’re forced to use WordPress, what are your options? This talk explores the tools and frameworks that are available to enable modern development in a legacy project, and how...

Read More

The post WordPress for Modern Developers appeared first on International PHP Conference.

]]>
WordPress may poser a third of the web, but it’s one of the world’s most popular legacy projects. So if you’re a modern web developer but you’re forced to use WordPress, what are your options?

This talk explores the tools and frameworks that are available to enable modern development in a legacy project, and how to make WordPress development feel like working with a modern framework. It also explores just how far you can push the “magic” of WordPress when it comes to theme development.

The post WordPress for Modern Developers appeared first on International PHP Conference.

]]>
Reformat, Refactor, Replace https://phpconference.com/php-core-technology/reformat-refactor-replace/ Thu, 13 Feb 2020 11:59:39 +0000 https://phpconference.com/session/reformat-refactor-replace/ When your everyday grind is a monolithic, legacy, PHP application from the early 2000s, it can be hard to utilise the newer tools and technologies that are available. Fortunately, there’s a process you can follow to get your application up to date without losing customers, business logic, or your mind. This talk covers the tried-and-true...

Read More

The post Reformat, Refactor, Replace appeared first on International PHP Conference.

]]>
When your everyday grind is a monolithic, legacy, PHP application from the early 2000s, it can be hard to utilise the newer tools and technologies that are available. Fortunately, there’s a process you can follow to get your application up to date without losing customers, business logic, or your mind.

This talk covers the tried-and-true process of upgrading and replacing a legacy system with a brand new, modern codebase.

The post Reformat, Refactor, Replace appeared first on International PHP Conference.

]]>
Framework agnostic application – will it fit with Symfony? https://phpconference.com/php-frameworks/framework-agnostic-application-will-it-fit-with-symfony/ Tue, 11 Feb 2020 13:38:00 +0000 https://phpconference.com/session/framework-agnostic-application-will-it-fit-with-symfony/ Frameworks are great tools. And Symfony is my beloved one. A lot of developers learn from them how to write applications nowadays. But framework documentation shows you framework approach. There is nothing wrong, as it’s framework documentation job. Unfortunately, a lot of developers don’t look for any other architecture approaches. They stick with what they...

Read More

The post Framework agnostic application – will it fit with Symfony? appeared first on International PHP Conference.

]]>
Frameworks are great tools. And Symfony is my beloved one. A lot of developers learn from them how to write applications nowadays. But framework documentation shows you framework approach. There is nothing wrong, as it’s framework documentation job. Unfortunately, a lot of developers don’t look for any other architecture approaches. They stick with what they have seen in framework documentation. During this talk, you will see how the application and domain layers could look in a framework-agnostic approach. Usage of ports and adapters architecture will help us with that. What is more interesting, it’s easy to integrate application decoupled from the framework with that kind of tool. You will see that on an example of Symfony. And from the time that we have Symfony Flex on board, it’s even easier in that case.

The post Framework agnostic application – will it fit with Symfony? appeared first on International PHP Conference.

]]>
Detecting and preventing performance regressions in code. https://phpconference.com/test-performance/detecting-and-preventing-performance-regressions-in-code/ Tue, 11 Feb 2020 14:38:00 +0000 https://phpconference.com/session/detecting-and-preventing-performance-regressions-in-code/ Change is a part of life. After you are done with your code it will evolve in time. Those modifications are not always performed by you (the author) that knows that code inside out. Sometimes there are done in a hurry or without detailed specification. Because of that, in time, that code may become less...

Read More

The post Detecting and preventing performance regressions in code. appeared first on International PHP Conference.

]]>
Change is a part of life. After you are done with your code it will evolve in time. Those modifications are not always performed by you (the author) that knows that code inside out. Sometimes there are done in a hurry or without detailed specification. Because of that, in time, that code may become less efficient. It might need more time, more CPU or more memory. In this talk, I will walk you through and demonstrate an open-source tool that I’m working on from some time – a greatly enhanced fork of a well-known tool. It will show you when your code starts to deteriorate and It will help you to keep it in great shape.

The post Detecting and preventing performance regressions in code. appeared first on International PHP Conference.

]]>
PSR-14: A Major PHP Event https://phpconference.com/php-frameworks/psr-14-a-major-php-event/ Wed, 11 Dec 2019 13:31:30 +0000 https://phpconference.com/session/psr-14-a-major-php-event/ PSR-14 is the latest specification from the PHP Framework Interoperability Group (PHP-FIG), this time addressing event dispatching. Many frameworks and applications contain an "event dispatcher", "message bus", "hook system", or some other variation on the same basic concept, but to date they are all incompatible with each other. No more! The PSR-14 spec offers a...

Read More

The post PSR-14: A Major PHP Event appeared first on International PHP Conference.

]]>
PSR-14 is the latest specification from the PHP Framework Interoperability Group (PHP-FIG), this time addressing event dispatching. Many frameworks and applications contain an "event dispatcher", "message bus", "hook system", or some other variation on the same basic concept, but to date they are all incompatible with each other. No more! The PSR-14 spec offers a way to interweave these disparate systems, making it far easier to swap individual libraries into the framework of your choice. It goes beyond the basic "register and call" object that most systems use to make it easier to plug different implementations together, offering an easier experience and greater flexibility for library authors. This session will cover how PSR-14 works, some examples of how to leverage it effectively, and how to adopt it alongside, and even encompassing, your existing one-off tooling.

The post PSR-14: A Major PHP Event appeared first on International PHP Conference.

]]>
How Much Framework? #slideless https://phpconference.com/php-frameworks/how-much-framework/ Wed, 11 Dec 2019 13:31:30 +0000 https://phpconference.com/session/how-much-framework/ Choosing a framework is not an easy task: How good is the documentation? How many developers are actively working on it and how long has it been around? Interesting and valid questions but not necessarily the most important ones. How much of a framework do we actually need? And how crucial will it be for...

Read More

The post How Much Framework? #slideless appeared first on International PHP Conference.

]]>
Choosing a framework is not an easy task: How good is the documentation? How many developers are actively working on it and how long has it been around? Interesting and valid questions but not necessarily the most important ones. How much of a framework do we actually need? And how crucial will it be for our application? In this session, we’ll try to answer these two questions in a potentially surprising way: by implementing our own micro framework from scratch – in 45 minutes!

The post How Much Framework? #slideless appeared first on International PHP Conference.

]]>
Crafting Maintainable Laravel Applications https://phpconference.com/php-frameworks/crafting-maintainable-laravel-applications/ Wed, 11 Dec 2019 13:31:24 +0000 https://phpconference.com/session/crafting-maintainable-laravel-applications/ Many applications are crafted in ways that decrease their future maintainability. Using a framework doesn’t resolve this issue. In fact, it might make it worse. After facilitating the upgrade of over 20,000 Laravel applications, I’m here to tell you how to ensure your application will stand the test of time. In this talk, I’ll show...

Read More

The post Crafting Maintainable Laravel Applications appeared first on International PHP Conference.

]]>
Many applications are crafted in ways that decrease their future maintainability. Using a framework doesn’t resolve this issue. In fact, it might make it worse. After facilitating the upgrade of over 20,000 Laravel applications, I’m here to tell you how to ensure your application will stand the test of time. In this talk, I’ll show you 10 ways to craft maintainable (and easy to work with) Laravel applications.

The post Crafting Maintainable Laravel Applications appeared first on International PHP Conference.

]]>