title: Extending functionality to object PHP
body: <p>I am creating a class in PHP which I want to extend so the class can have many basic functionality. The problem is that the functionality is so different and I do not want to mix the different methods in just one class. Due to organization and extensibility I prefer to separate them logically.</p>
  
  <p>Let's imagine that I have three classes:</p>
  
  <p>class User{ }</p>
  
  <p>class Tracker { }</p>
  
  <p>class Lister { }</p>
  
  <p>User is the main class representing the real-life object.
  Without minding on the concrete functionality of the classes, both Tracker and Lister provide methods that must be appliable in User because they are a kind of helpers. If I use inheritance I will be able to inherit just once by time having to create many classes as "extends" I will add and finishing the hierarchy with the class User. Is there any option to avoid doing this? I mean is it possible to extend User class with the functionality of the other classes without having to do in the way I have just said knowing that PHP does not support multiple inheritance?</p>
  
  <p>Thank you!</p>