private static function _unrequirePackage($packageName)
	{
		if (empty($packageName))
		{
			return false;
		}
		self::_init();
		self::_dispatch('remove');
		$json = self::_getComposerJson();
		$contents = file_get_contents($json->getPath());
		$manipulator = new JsonManipulator($contents);
		if (!$manipulator->removeSubNode('require', $packageName, false))
		{
			return false;
		}
		file_put_contents($json->getPath(), $manipulator->getContents());
		return true;
	}
private static function _unrequirePackage($packageName)
	{
		if (empty($packageName))
		{
			return false;
		}
		self::_init();
		self::_dispatch('remove');
		$json = self::_getComposerJson();
		$contents = file_get_contents($json->getPath());
		$manipulator = new JsonManipulator($contents);
		if (!$manipulator->removeSubNode('require', $packageName, false))
		{
			return false;
		}
		file_put_contents($json->getPath(), $manipulator->getContents());
		return true;
	}
private static function _unrequirePackage ( $ packageName ) { if ( empty ( $ packageName ) ) { return false ; } self :: _init ( ) ; self :: _dispatch ( 'remove' ) ; $ json = self :: _getComposerJson ( ) ; $ contents = file_get_contents ( $ json -> getPath ( ) ) ; $ manipulator = new JsonManipulator ( $ contents ) ; if ( ! $ manipulator -> removeSubNode ( 'require' , $ packageName , false ) ) { return false ; } file_put_contents ( $ json -> getPath ( ) , $ manipulator -> getContents ( ) ) ; return true ; }
Unrequire a package by manipulating the composer.json file

@param		string	$apackageName	The package name in the form of vendor/pacakage
@return	boolean	Indicates if the operation succeeded
Unrequire a package by manipulating the composer . json file