whateverthing.com

December 11, 2013

I recently published beryllium/silex-cache-provider, a Silex Service Provider based on my BerylliumCacheBundle project. Silex developers can use it to enable Memcache, APC, or file-based caching in their Silex projects.

This has been made possible by contributions from Jeremy Livingston and Nechaev Yaroslav, as part of the effort to rebuild BerylliumCacheBundle so that Symfony2 developers can use the normal configuration style to get up and running. We've split a portion of the bundle off into beryllium/cache, a small stand-alone library that can be dropped into framework-based and non-framework projects alike.

The beryllium/cache library doesn't attempt to implement PSR-6, the PHP-FIG caching interface proposal, so it essentially just functions as an abstraction for an expiring key/value store. Often that's all a developer needs, so it should be good for the time being. Once PSR-6 gets approved, I will consider adding support in beryllium/cache.

If you have suggestions or other feedback for beryllium/cache or beryllium/silex-cache-provider, please use github to submit issues or contact me on twitter: @beryllium9

Thanks for checking in!

November 4, 2013

If you've been following open source development for the last little while, you may have heard of Travis, the free continuous integration service for open source projects. I've been interested in trying it out, but I haven't had a project I thought was suitable for testing with it.

Until now! As luck would have it, the most recent UpThing installment added a PHPUnit-based functional test. This means that I've got something I can send to Travis. :)

October 11, 2013

It's been nearly two months since my last Late Night Links post. A lot has happened in that timeframe - including a change in employers for me. Exciting stuff! Nevertheless, I've still been taking note of interesting links that I come across, and I've found a few useful ones you might be interested in.

October 3, 2013

When developing websites and web applications, you will often have a local environment set up for testing in your browser. But what if you want to test it on another machine or device on your local network?

Chances are, the hostname of your computer won't work as a valid virtual host on a mobile device (and some computers). Additionally, you might have multiple projects on the go that all need unique virtual host names to operate properly.

This problem used to be solved by the "hosts" file (in /etc/hosts on Linux/Mac and C:\Windows\System32\Drivers\Etc\hosts on Windows), but there's a better way! You can use IP reflection services or wildcard DNS records to let you use nearly any virtual host name you want.