PHP Class to manage json files that describes a component or class and its dependencies