A port of gausskruger.js to PHP, packaged as a class ready to use as an extension in Yii framework, but can easily be used elsewhere too.