Check PHP Code Performance and stdClass using InfiniteIterator

Following code is written using stdClass and PHP iterator “InfiniteIterator” $start_time = microtime(true); $std = new stdClass(); $std->first = “first”; $std->second = “second”; $std->third = “third”; $iterator = new InfiniteIterator(new ArrayIterator($std)); foreach ( new LimitIterator($iterator, 0, 1400000) as $value ) { print($value . PHP_EOL); } $end_time = microtime(true); print $end_time – $start_time . ” Sec” . […]

How to install Composer (Dependency Manager for PHP) in Windows

Installation of Composer on Windows(XP, 7, 8) is easy, its only take few steps. What is Composer? it is a dependency manager tracking local dependencies of your projects and libraries. get it here. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. I assume you have xampp […]