After upgrading to PHP 7 some PHP extensions are outdated and we need to build them manually. In this short article I will show you how to bootstrap with PHP 7 and Redis on you Linux without any troubles.
Recently I tried Visual Studio Code – incredible tool which helps me a lot in my daily routine. Absolutely cross platform and free. Let’s try to install it on Ubuntu 16.04 and discover some features.
Symfony2 is a great tool for rapid development. And I want to present Top 10 Symfony2 Bundles which will save you huge amount of time in your development practice. Your clients will be amazed at how quickly and easily you develop new functionality. So let’s start:
Symfony has a great toolset for functional testing. It’s useful in small projects but in big ones we need to use TDD or BDD techniques with big amount of tests. Suppose we need to integrate tools for testing with our project. Let’s review it on example with BDD toolset Behat Mink and Selenium for Symfony2.
In this article I will show you a example of custom user provider in FOSUserBundle.
Let us imagine that we want to authenticate user only by email. In the latest version of this bundle you can authenticate user by username or by username || email combination. Code is pretty simple. You need only inject custom user provider.
All we know that fat controllers is evil in MVC but where we can place additional logic ? One of the solutions in Symfony2 – events and event listeners provided by EventDispatcher Component.
Sometimes we want to load different routing file depends on user data or environment variables. Symfony has article in cookbook which explains such functionality but I can share with you how to create Custom Route Loader in Symfony2 with some nuances/pitfalls and working example.