<?php trait BaseEat { public function eat() { echo 'eat' . PHP_EOL; } } trait BaseSleep { public function sleep() { echo 'sleep' . PHP_EOL; } } class Person { use BaseEat, BaseSleep; } $person = new Person(); $person->eat(); $person->sleep(); // eat // sleep