title: Allow PHP function to be called dynamically and statically
body: <p>I'm building an application, and I need to be able to chain methods, so I will need to be able to call methods dynamically and statically.</p>
  
  <p>For example:</p>
  
  <pre><code>$results = Class::where('something')
                  -&gt;where('something else');
  </code></pre>
  
  <p>In this case, the method 'where' needs to be called statically and dynamically, and still be allowed to be chained.</p>
  
  <p>I know Laravel has something like this with Eloquent, but I do not know how to implement something like this.</p>