class Package (View source)

Constants

DESCRIPTION

SOURCE

TIME

TYPE

URL

VERSION

META_FILE

Methods

__construct()

No description

static string|null
info(string $name, int $info, bool $dev = false)

Get package info

cache()

Cache composer.lock data

Details

__construct()

No description

static string|null info(string $name, int $info, bool $dev = false)

Get package info

Parameters

string $name

Set /

int $info

Set info by constant:

  • DESCRIPTION
  • SOURCE
  • TIME
  • TYPE
  • URL
  • VERSION
bool $dev

Set true for get from packages-dev

Return Value

string|null

cache()

Cache composer.lock data

Exceptions

Exception