public function addPackage($package, $version)
    {
        $config = $this->getContent();
        $config['require'][$package] = $version;
        $this->setContent($config);
    }
public function addPackage($package, $version)
    {
        $config = $this->getContent();
        $config['require'][$package] = $version;
        $this->setContent($config);
    }
public function addPackage ( $ package , $ version ) { $ config = $ this -> getContent ( ) ; $ config [ 'require' ] [ $ package ] = $ version ; $ this -> setContent ( $ config ) ; }
Add the package into composer requirements.

@param string $package
@param string $version
Add the package into composer requirements .