Constants

CHECK_ALL

CHECK_ALL = 3

CHECK_UNBOUND_CONSTRAINTS

CHECK_UNBOUND_CONSTRAINTS = 1

CHECK_STRICT_CONSTRAINTS

CHECK_STRICT_CONSTRAINTS = 2

Properties

$loader

$loader : 

Type

$versionParser

$versionParser : 

Type

$errors

$errors : 

Type

$warnings

$warnings : 

Type

$config

$config : 

Type

$strictName

$strictName : 

Type

$flags

$flags : 

Type

Methods

load()

load(array  $config, string  $class = 'Composer\Package\CompletePackage') : \Composer\Package\PackageInterface

Converts a package from an array to a real instance

Parameters

array $config
string $class

Package class to use

Returns

\Composer\Package\PackageInterface

getWarnings()

getWarnings() 

getErrors()

getErrors() 

validateRegex()

validateRegex(  $property,   $regex,   $mandatory = false) 

Parameters

$property
$regex
$mandatory

validateString()

validateString(  $property,   $mandatory = false) 

Parameters

$property
$mandatory

validateArray()

validateArray(  $property,   $mandatory = false) 

Parameters

$property
$mandatory

validateFlatArray()

validateFlatArray(  $property,   $regex = null,   $mandatory = false) 

Parameters

$property
$regex
$mandatory

validateUrl()

validateUrl(  $property,   $mandatory = false) 

Parameters

$property
$mandatory

filterUrl()

filterUrl(  $value, array  $schemes = array('http', 'https')) 

Parameters

$value
array $schemes