validate-semver

Zerotoprod\ValidateSemVer

Repo GitHub Actions Workflow Status Packagist Downloads php Packagist Version License wakatime Hits-of-Code

Validates a SemVer string.

Installation

Install the package via Composer:

composer require zero-to-prod/validate-semver

Usage

Returns true if the value is a valid SemVer string.

Zerotoprod\ValidateSemVer\ValidateSemVer::isValid('1.0.0')