adachsoft / release-validator-packagist-checks
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
pkg:composer/adachsoft/release-validator-packagist-checks
Requires
- php: ^8.3
- adachsoft/collection: ^3.0
- adachsoft/packagist-api-client: ^1.0
- adachsoft/release-validator: ^0.5
Requires (Dev)
- adachsoft/php-code-style: ^0.5.0
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^13.2
- rector/rector: ^2.5
- symplify/phpstan-rules: ^14.12
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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-validatorvalidation workflow before publishing a release to Packagist.
Installation
composer require adachsoft/release-validator-packagist-checks
Validators
The package includes the following validators:
RegistryVersionDoesNotExistValidatorVersionIsNewerThanLatestValidator
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.