Geocoder β€” The almost missing Geocoder PHP 5.3 library.

Uses FreeGeoIp, HostIp, IpInfoDB, Yahoo! PlaceFinder, Google Maps, Bing Maps, OpenStreetMaps, Geoip, and CloudMade geocoding services to geocode addresses and IP Addresses. <?php // Create an adapter $adapter = new \Geocoder\HttpAdapter\BuzzHttpAdapter(); // Create a Geocoder object and pass it your adapter $geocoder = new \Geocoder\Geocoder(); // Then, register all providers your want $geocoder->registerProviders(array( new \Geocoder\Provider\YahooProvider( […]

React: Event-driven, non-blocking I/O with PHP

Inspired upon Node.js: <?php require ‘vendor/autoload.php’; $stack = new React\Espresso\Stack(function ($request, $response) { $response->writeHead(200, array(‘Content-Type’ => ‘text/plain’)); $response->end(‘Hello World\n’); }); echo ‘Server running at http://127.0.0.1:1337’ . PHP_EOL; $stack->listen(1337); React →

PHP Sadness

These are things in PHP which make me sad. They are real, objective issues which I have personally encountered in my normal day-to-day activites. Especially the part on Inconsistency has been bothering me from whenever I started developing in PHP (as it’s one of the first things you encounter). PHP Sadness → Also see: PHP, […]

Automatic website publishing with Git, GitHub-Style

One of the things I like about GitHub is the fact that it sports a gh-pages branch. Anything you push to it, is automatically published on your GitHub subdomain http://username.github.com/projectname/. Inspired by this GitHub publishing flow, I’ve set up a likewise method on our web servers at work: a branch which gets published automatically onto […]

Spoon Template Component

The authors of Spoon, the PHP5 library of my choice, have released a standalone version (née Component) of their powerful template engine. This is the first version of the standalone template component. This is a complete rewrite of the previous version. There are no dependencies with other parts of the 1.3 version of Spoon. Spoon […]