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

API Versioning – best practices

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

Tagged with: , , ,

Load configurations from custom bundle in Symfony2

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

Tagged with: , , ,

Programatically render template area in Magnolia CMS

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

Tagged with: , , , ,

Running out of memory on Laravel 4 update

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

Tagged with: , , , , ,

Pass parameters to Bash Alias command

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

Tagged with: , , , , ,

Magento :: Export all customers and emails from orders

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

Tagged with: , , , ,

Custom error handler for Laravel 4

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

Tagged with: , , , ,

Consistent dates in PHP?

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

Tagged with: , , ,

Install PHP mcrypt on UNIX server

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]

Tagged with: ,

SQL: Remove HTML with procidure

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

Tagged with: , ,
Top