Re:These are things in PHP which make me sad
by zoips on Friday May 27, 2011 @07:56PM
(#2593487)
I wrote a simple library based off of Crockford's writings to make creating reusable constructor functions that supported public/protected/private simple (and without resorting to silly "if it's preceded with an underscore don't touch it!" business). It was written mainly with Node.js in mind, but you could strip out the CommonJS package stuff and use it that way.
https://github.com/zoips/Gizmo