php

Write a Simple CLI Command using Symfony

Using Symfony framework developers can create various types of commands which can be executed by consoles. Symfony already provides lots of console commands, Like php app/console cache:clear or php bin/console doctrine:mapping:import --force AcmeBlogBundle xml. Now if we want to create a command like those for…

'Spaceship' Operator <=> in PHP 7

The PHP development team already announced the new version of PHP 7.0.0 RC 5. It comes with many more new features, and I'm excited about one of the feature called Spaceship Operator <=>. Those who already knows PERL or RUBY programming basics may be familiar with this…

Get Different Sizes of SlideShare thumbnails

Recently we were working on a feature we can show a slideshare gallery, we faced a little problem while we were trying to get thumbnails for slides. We used Slideshare oEmbed API to get slide info and thumbnails. The API response was giving a small thumbnail which is 170x128 px…

Delete Memcached keys efficiently in PHP

When you build a Web Application it's required to implement Cache in any moment. Memcached is one of the best caching system to reduce database load. Recently, while working on an applocation, we faced some difficulties to remove caches on demand. Problem Normally on PHP to delete a cache we…