PHP library for resolving dependencies