A small library of traits for PHP 5.4+