August 14, 2017 | No Comments | Programming | linux PHP redis

Working with PHP 7 and Redis on Linux

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.

August 8, 2017 | No Comments | Programming | PHP Visual Studio Code

PHP Development with Visual Studio Code

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.

June 23, 2017 | 3 Comments | Programming | PHP Symfony2

Symfony Logout Handler

Suppose we  want log some activities when user logout on website. So let’s take a look on Symfony Logout Handler which is built in in Securiy Bundle.

May 23, 2017 | No Comments | Programming | laravel PHP validation

Laravel Custom Validation

This is small article helper for those who need example of Laravel Custom Validation. Suppose we want  validate if user entered valid youtube link in field. We won’t check it with API, just simple regex.

August 17, 2016 | No Comments | Programming | PHP Symfony2

Top 10 Symfony2 Bundles

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:

August 16, 2016 | No Comments | Programming | Behat PHP Symfony2 Testing

How to Setup Behat Mink and Selenium for Symfony2

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.

April 18, 2016 | No Comments | Programming | FOSUserBundle PHP Symfony2

Custom Email Provider in FOSUserBundle

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.

January 28, 2016 | 1 Comment | Programming | event listener PHP Symfony2

Custom Events And Event Listeners in Symfony2

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.

November 24, 2015 | No Comments | Programming | angularjs PHP twig

Using AngularJS with Twig

There are so many questions on StackOverflow about integrating AngularJS with Twig . I want to share with you some tricks which will help you with this task.

November 23, 2015 | No Comments | Programming | PHP Routing Loader Service Symfony2

Custom Route Loader in Symfony 2

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.