Space Cat, Prince Among Thieves

Blog

Require a Remote Zip File with Composer

I previously showed you how to Load a Github Gist with Composer, but sometimes you need to install code that isn't isn't even in a public facing VCS. I for instance wanted to use a library only distributed by Zip. It's actually fairly easy! In your composer.json file, you simply add a repositories s…


Read More / Comment »

All Glory to __invoke

Lost in the shiny new features (see: namespaces and closures) PHP 5.3 also added the __invoke method. While not plainly apparent, it is secretly an amazingly useful 'magic method' . If you're not taking advantage of __invoke, you should be. Why? It provides a uniform execution points for objects th…


Read More / Comment »

Load a Github Gist with Composer

Composer is amazing for pulling in packages, but what if you find a Gist that isn't Composer aware? Fear not, as Composer has the magical ability to pull in repositories not explicitly set up in Packagist by defining them in the "repositories" section. But what if you wanted to load a single class …


Read More / Comment »

Installing the PHP "memcached" Extension on OS X 10.9 Mavericks - macOS 10.12 Sierra

Please Note This tutorial only covers the default PHP installation that ships with Mac OS X / macOS. If you have installed a new installation this does not cover you. For those using brew, you can simply brew install the appropriate brew formula for the extension. These directions are verified to w…


Read More / Comment »

The Joys of UNIX Keyboards

I fell in love with a dead keyboard layout. A decade or so ago while helping a friends father clean out an old building, we came across an ancient Sun Microsystems server. We found it curious. Everything about it was different from what we were used to. The command line was black on white, the conne…


Read More / Comment »

Static::? More like Lies::

In my professional work, we have a system that utilizes __call and __callStatic for caching of certain method calls. We have been running into a problem where calling an undefined method via :: within the class itself will trigger __call rather than the expected __callStatic. The Problem The followi…


Read More / Comment »

Donat Studios Officially Launches

After much ado, Donat Studios is finally live! There are a few things left to complete. Eventually setting up the documentation and public git repository for CorpusPHP will certainly take up a fair amount of time. I'm still not quite sure what to put in my portfolio, I was thinking of for the time b…


Read More / Comment »