ComposerVersionChecker

Class
Read only: Yes Final: Yes

Resolves DevTools freshness through Composer metadata without coupling callers to Composer commands.

Table of Contents

Interfaces

VersionCheckerInterface

Checks whether the installed DevTools package is behind the latest stable release.

Constants

 = 'fast-forward/dev-tools'
 = '0.0.0'

Properties

Methods

 : mixed
check()

Returns version information when it can be resolved without blocking command execution.

 : VersionCheckResult|null
getCurrentVersion()

Returns the installed DevTools version without running external Composer commands.

 : string
resolveLatestStableVersion()

Resolves the latest stable DevTools version available to Composer.

 : string|null
Constants

Constants

Properties
Methods

getCurrentVersion()

Public

Returns the installed DevTools version without running external Composer commands.

public getCurrentVersion() : string

Description

This method MUST return the package version when composer metadata is available. It MUST return VERSION_UNKNOWN when metadata is unavailable or on resolution errors.

Return values
string

resolveLatestStableVersion()

Private

Resolves the latest stable DevTools version available to Composer.

private resolveLatestStableVersion() : string|null
Return values
string|null