June 14, 2016 | No Comments | Programming | angularjs http validation

Handle 422 Status in AngularJS using Http Interceptors

Suppose we want to validate our forms on server side and handle it properly on client side. We can do this using AngularJs and http interceptors.

Let’s take a look on interested http status from Http extension for WebDav.

June 3, 2016 | No Comments | Programming | event listener monolog pushover Symfony2

Custom Exception Listener in Symfony2

The common task in web development is handling and monitoring exception with various tools. In this article I can show how to handle and log errors in Symfony2.  For this task we will use our custom exception listener.

For example, we have Pushover Handler in Monolog library and we want to receive push notification about every exception except 404 errors.

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.


November 17, 2015 | 2 Comments | Programming | Bundle HWIOauth Security Social Symfony2 Vkontakte

How to use Symfony2 HWIOAuth Bundle with Vkontakte

In this article I want to introduce to you HWIOAuth Bundle which will help us to create sign in with social network credentials on Symfony2.

June 10, 2013 | No Comments | Programming | cron freelance linux notify-send odesc ubuntu

Odesk notifications about new job(Ubuntu 12.04)

I guess It’s too hard monitoring new job on Odesk because you need press F5 every time in your web browser. This isn’t programmer way.We can simplify that.

June 9, 2013 | No Comments | Programming | chmod linux permissions web-server

How to make right permissions on web server

One of the most frequent problem is permissions.This is a headache for web developer.I have light  and easy solution.