public static function getComposerFiles($paths)
    {
        settype($paths, 'array');

        $composers = array();

        foreach ($paths as $path) {

            $dirs = new \DirectoryIterator($path);

            foreach ($dirs as $dir) {

                if ($dir->isDot() || $dir->isFile()) {
                    continue;
                }

                $composer_file = $dir->getPathName().'/composer.json';

                if (is_readable($composer_file)) {
                    $composers[] = $composer_file;
                }
            }
        }

        return $composers;
    }