Trait based php framework