Common classes and interfaces improving PHP