Author: SANDO
Just a guy with strong interest in PHP and Web technologies

What happens if you need to make changes to your API? If you’re making additions to the API – e.g., adding services or adding fields to your services – you likely don’t need to do anything more to notify users …

API Versioning – best practices Read More »

Tagged with: , , ,

When I build apps or add new functionality to Symfony2 I build it into a separate bundle, thus trying to keep the structure modular which is generally a good practice as everyone knows. Keeping all parts of the bundle together …

Load configurations from custom bundle in Symfony2 Read More »

Tagged with: , , ,

Problem I am using Magnolia CMS 5.4 and I want to build a module that will render some content of a page and expose it over REST API. The task is simple but not sure how to approach it and/or …

Programatically render template area in Magnolia CMS Read More »

Tagged with: , , , ,

Laravel is great framework and I quite enjoy how it’s structured and how it works. In version 4 it was migrated from bundles to using Composer for dependency injection which is great and fits well in my daily routine on …

Running out of memory on Laravel 4 update Read More »

Tagged with: , , , , ,

I use BASH aliases extensively throughout my DEV environments and it saves me a lot of time. One specific I use is “cdv” that’s shorthand for CD to VirtualHosts which in most cases could be as simple as /var/www or …

Pass parameters to Bash Alias command Read More »

Tagged with: , , , , ,

Magento export Every now and then I am asked by different clients if I can export specific customer data, most often people need emails of their customers to use for newsletters or other types of marketing campaigns. There are two …

Magento :: Export all customers and emails from orders Read More »

Tagged with: , , , ,

I build API service for a mobile application and I faced a problem with the error reporting with Laravel. Laravel is awesome framework and is great for RESTful application or building API that’s why it’s my first choice. But I …

Custom error handler for Laravel 4 Read More »

Tagged with: , , , ,

It’s really interesting how small changes in core PHP functionality could break whole website and take hours to find the cause of the bug. I am building website which takes some use of dates, stored in MySQL database as Date …

Consistent dates in PHP? Read More »

Tagged with: , , ,

In this quick tip I’ll show you how to install the PHP extensionmcrypt. This is needed for Magento to run properly otherwise you’ll get an error like: [cc type=”text” escaped=”true”]Fatal error: Call to undefined function mcrypt_create_iv() in lib/Varien/Crypt/Mcrypt.php on line 64[/cc] …

Install PHP mcrypt on UNIX server Read More »

Tagged with: ,

I had a problem with client’s data that was saved as HTML in the database and I needed it in plain format. Many would say this is very inefficient way of doing it but sometimes desperate time call for desperate …

SQL: Remove HTML with procidure Read More »

Tagged with: , ,