Search by

adachsoft / release-validator-packagist-checks

Arkadiusz Adach

Release-validator checks verifying a package's state in the Packagist registry (version presence, SemVer freshness) before publishing.

Package info

gitlab.com/a.adach/release-validator-packagist-checks

Issues

pkg:composer/adachsoft/release-validator-packagist-checks

Statistics

Installs: 15

Dependents: 1

Suggesters: 0

Stars: 0

v0.2.0 2026-08-31 15:03 UTC

This package is auto-updated.

Last update: 2026-08-31 13:04:18 UTC


README

Release Validator Packagist Checks provides release validators for Composer packages published on Packagist.

Features

  • Verify that a release version does not already exist in the Packagist registry (pre-release safety check).
  • Verify that a release version is newer than the latest version registered on Packagist.
  • Integrate Packagist checks with the adachsoft/release-validator validation workflow before publishing a release to Packagist.

Installation

composer require adachsoft/release-validator-packagist-checks

Validators

The package includes the following validators:

  • RegistryVersionDoesNotExistValidator
  • VersionIsNewerThanLatestValidator

Both validators are designed for pre-release checks, use adachsoft/packagist-api-client, and implement the standard ReleaseValidatorInterface contract from adachsoft/release-validator. They are intended to be executed before creating a Git tag and before publishing the package to Packagist.

Requirements

  • PHP 8.3 or newer
  • A Composer package name
  • Network access to the Packagist API when validations are executed

License

This package is released under the MIT License. See the LICENSE file for details.