ghostwriter / version

[WIP]parse, compare, and manipulate versions that follow the "Semantic Versioning" specification.

Home Page:https://github.com/ghostwriter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version

Compliance Supported PHP Version Type Coverage Latest Version on Packagist Downloads

Parse, Compare, and Manipulate versions that follow the Semantic Versioning specification.

Warning

This project is not finished yet, work in progress.

Installation

You can install the package via composer:

composer require ghostwriter/version

Usage

// work in progress
//        $grammar = new SemanticVersionGrammar();
//        $grammar = new CalendarVersionGrammar();
//        $grammar = new GitHubActionVersionGrammar();
        
        
\Ghostwriter\Version\Constraint::__construct
\Ghostwriter\Version\Constraint\Operator\AndConstraintOperator::__construct
\Ghostwriter\Version\Constraint\Operator\OrConstraintOperator::__construct
\Ghostwriter\Version\Constraint\Range\Caret::__construct
\Ghostwriter\Version\Constraint\Range\Hyphen::__construct
\Ghostwriter\Version\Constraint\Range\Tilde::__construct
\Ghostwriter\Version\Constraint\Range\Wildcard::__construct

\Ghostwriter\Version\Comparator::__construct
\Ghostwriter\Version\Comparator\Operator\AndOperator::__construct
\Ghostwriter\Version\Comparator\Operator\OrOperator::__construct
\Ghostwriter\Version\Comparator\Operator\EqualOperator::__construct
\Ghostwriter\Version\Comparator\Operator\NotEqualOperator::__construct
\Ghostwriter\Version\Comparator\Operator\LessThanOperator::__construct
\Ghostwriter\Version\Comparator\Operator\LessThanOrEqualOperator::__construct
\Ghostwriter\Version\Comparator\Operator\GreaterLowerThanOperator::__construct
\Ghostwriter\Version\Comparator\Operator\GreaterLowerThanOrEqualOperator::__construct

\Ghostwriter\Version\Lexer::__construct
\Ghostwriter\Version\Parser::__construct
\Ghostwriter\Version\Parser::parse
\Ghostwriter\Version\Parser::parseConstraint
\Ghostwriter\Version\Parser::parseVersion

\Ghostwriter\Version\Traits\Comparable::__construct
\Ghostwriter\Version\Traits\Incrementable::__construct
\Ghostwriter\Version\Traits\Sortable::__construct

\Ghostwriter\Version\Value\Core\Major::__construct
\Ghostwriter\Version\Value\Core\Major::verion

\Ghostwriter\Version\Value\Core\Minor::__construct
\Ghostwriter\Version\Value\Core\Minor::verion

\Ghostwriter\Version\Value\Core\Patch::__construct
\Ghostwriter\Version\Value\Core\Patch::verion

\Ghostwriter\Version\Value\Extension\PreRelease::__construct
\Ghostwriter\Version\Value\Extension\PreRelease::name
\Ghostwriter\Version\Value\Extension\PreRelease::verion

\Ghostwriter\Version\Value\Extension\Build::__construct
\Ghostwriter\Version\Value\Extension\Build::metadata

\Ghostwriter\Version\Version::__construct

bumpMajor
bumpMinor
bumpPatch
bumpPreRelease
newPreRelease
promoteToRelease
//
//tagPrefix
//snapshotSuffix

Testing

composer test

Changelog

Please see CHANGELOG.md for more information what has changed recently.

Security

If you discover any security related issues, please email nathanael.esayeas@protonmail.com instead of using the issue tracker.

Support

[Become a GitHub Sponsor]

Credits

License

The BSD-3-Clause. Please see License File for more information.

About

[WIP]parse, compare, and manipulate versions that follow the "Semantic Versioning" specification.

https://github.com/ghostwriter

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 100.0%