title: Static class initializer in PHP
body: <p>I have an helper class with some static functions. All the functions in the class require a ‘heavy’ initialization function to run once (as if it were a constructor).</p>
  
  <p>Is there a good practice for achieving this?</p>
  
  <p>The only thing I thought of was calling an <code>init</code> function, and breaking its flow if it has already run once (using a static <code>$initialized</code> var). The problem is that I need to call it on every one of the class’s functions.</p>