Example of quick singlethon implementation in PHP
Availible also in https://gist.github.com/yuksbg/9d981ea6baf0bd8f2d92