I have not used it, but usage of Composer and reusable libraries is an important part of MODX development. I'm getting ready to release Repoman https://github.com/craftsmancoding/repoman -- its goal is to simplify MODX development and it is written with Composer in mind.