Skip to content

Releases ​

php
final class Zairakai\LaravelDevTools\Update\Releases

The releases of a package on Packagist: which are stable, the latest, the tag to start from.

Source: src/Update/Releases.php

Methods ​

expandReleases() ​

php
public static function expandReleases(array $releases): array

The releases of the metadata of Packagist (p2) in full: after the first one, each lists only what changed.

Returns list<array<string, mixed>>

latestStable() ​

php
public static function latestStable(array $releases): array

The highest stable release, or null.

Returns array<string, mixed>|null

latestTag() ​

php
public static function latestTag(array $tags): string

The highest tag of the form X.Y.Z (a tag with a prefix or a suffix is ignored), or null.

peerRange() ​

php
public static function peerRange(array $releases, string $name): string

The range in which the latest stable release of a package requires $name, from its metadata on Packagist, or null.

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.