title: PHP Addon support N no of Classes finally extend to one class
body: <p>I am working on a open source project.</p>
  
  <p>My code should support addons features.</p>
  
  <p>I have 6 to 7 client handling classes which finally extend to one class called "clients"</p>
  
  <pre><code>class client1{}
  
  class client2 extends client1{}//contacts
  
  class client3 extends client2{}//files
  
  ...
  
  class clients extends client9{}//msging
  </code></pre>
  
  <p>This is not proper way to do.(still finding for better way)</p>
  
  <p>This script should support addons. Say one addon having few classes</p>
  
  <pre><code>class clientUserManagement{}
  </code></pre>
  
  <p>Then it should be controllable in</p>
  
  <pre><code>class clients{}
  </code></pre>
  
  <p>Each class handling different areas of client system.
  Right now extending all the class to one class. By using method_exist(), calling the required functionality.</p>
  
  <p><strong>Important</strong> </p>
  
  <ul>
  <li>These classes doesn't share any attribute.  </li>
  <li>All client related functions should be grouped by type in separate files. </li>
  <li>If all classes are finally controlled under one classes name, using method_exist() it   will be secure to run only client related functions.</li>
  </ul>
  
  <p>Which is the better way to structure it, so that it support addon functions.</p>