Semantic Versioning Rule
Validate Semantic Version Numbers
170k Downloads / Month
Open Source MIT License
170k Downloads / Month
Open Source MIT License
Validate Semantic Version Numbers (semver) in Laravel with Intervention Validation. Version format checks.
public Intervention\Validation\Rules\SemVer::__construct()
The field under validation must be a valid version number using Semantic Versioning.
none
use Illuminate\Support\Facades\Validator; use Intervention\Validation\Rules\SemVer; $validator = Validator::make($request->all(), [ 'attribute-key' => new SemVer(), ]);