Manager/RepoManager.php
public function loadPackagistInfos(Repo $repo)
    {
        try {
            $this->composerReader->load($repo->getSlug());

            // Load package name
            if ($this->composerReader->has('name')) {
                $repo->setPackagistSlug($this->composerReader->get('name'));
            }

            // Load authors
            if ($this->composerReader->has('authors')) {
                $repo->setAuthors($this->composerReader->get('authors'));
            }

            // Load dependencies
            if ($this->composerReader->has('require')) {
                $repo->setDependencies($this->composerReader->get('require'));
            }
        } catch (\Exception $e) {
            // We do not want to throw exception here!
        }
    }
public function loadPackagistInfos(Repo $repo)
    {
        try {
            $this->composerReader->load($repo->getSlug());

            // Load package name
            if ($this->composerReader->has('name')) {
                $repo->setPackagistSlug($this->composerReader->get('name'));
            }

            // Load authors
            if ($this->composerReader->has('authors')) {
                $repo->setAuthors($this->composerReader->get('authors'));
            }

            // Load dependencies
            if ($this->composerReader->has('require')) {
                $repo->setDependencies($this->composerReader->get('require'));
            }
        } catch (\Exception $e) {
            // We do not want to throw exception here!
        }
    }
public function loadPackagistInfos ( Repo $ repo ) { try { $ this -> composerReader -> load ( $ repo -> getSlug ( ) ) ; // Load package name if ( $ this -> composerReader -> has ( 'name' ) ) { $ repo -> setPackagistSlug ( $ this -> composerReader -> get ( 'name' ) ) ; } // Load authors if ( $ this -> composerReader -> has ( 'authors' ) ) { $ repo -> setAuthors ( $ this -> composerReader -> get ( 'authors' ) ) ; } // Load dependencies if ( $ this -> composerReader -> has ( 'require' ) ) { $ repo -> setDependencies ( $ this -> composerReader -> get ( 'require' ) ) ; } } catch ( \ Exception $ e ) { // We do not want to throw exception here! } }
Load packagist infos by reading composer json file

@param Repo $repo
Load packagist infos by reading composer json file