Skip to content

Manifest ​

php
final class Zairakai\LaravelDevTools\Update\Manifest

The changes of composer.json and of the lock file: what changed, what is published with the package.

Source: src/Update/Manifest.php

Constants ​

NameValueDescription
ALL_SECTIONS['require', 'require-dev']All the sections of composer.json that hold requirements.
RUNTIME_SECTIONS['require']The sections of composer.json that are published with the package.

Methods ​

diffDependencies() ​

php
public static function diffDependencies(array $before, array $after, array $sections = self::ALL_SECTIONS): array

The requirements whose range changed, with the section, the old range and the new one.

Returns list<array{section: string, name: string, from: ?string, to: ?string}>

formatChanges() ​

php
public static function formatChanges(array $rows): string

The changes as a Markdown table, for the merge request and the commit.

isRefOnlyChange() ​

php
public static function isRefOnlyChange(string $diff): bool

True when a diff changes one ref: line and nothing else. The install of the tools moves the ref: of the shared pipeline to the installed version: that is the only change of the pipeline file an update may commit.

lockVersions() ​

php
public static function lockVersions(array $lock): array

The locked version of every package of a composer.lock, by name.

Returns array<string, string>

runtimeChanged() ​

php
public static function runtimeChanged(array $before, array $after, array $sections = self::RUNTIME_SECTIONS): bool

True when a range that is published is not the same.

syncDependabot() ​

php
public static function syncDependabot(string $text, array $names, string $ecosystem): string

The text of dependabot.yml with the block of the ecosystem rewritten: between # BEGIN dependency-policy (composer) and # END dependency-policy (composer), one ignore rule per package of the policy (nothing when none). Null without markers.

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