library semver-to-drupal
Convert semver versions to Drupal git tags.
eiriksm/semver-to-drupal
Convert semver versions to Drupal git tags.
- Sunday, July 23, 2017
- by eiriksm
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
semver-to-drupal-tag
, (*1)
What is it?
A super small library to convert semver versions to Drupal git tags., (*2)
Why is it?
On Violinist.io, the continuous automatic composer updater, we retrieve the changelog between versions when we create pull requests to your projects. So to retrieve these based on your composer files, we need to convert between these formats., (*3)
Installation
composer require semver-to-drupal
Usage
<?php
use eiriksm\SemverToDrupal\Converter;
// Default usage, assumes major version 8.
print Converter::convertToDrupal('1.0.0'); // Prints 8.x-1.0.
// Usage with Drupal version 7.
print Converter::convertToDrupal('1.16.0', 7); // Prints 7.x-1.16.
dev-master
9999999-dev
Convert semver versions to Drupal git tags.
Sources
Download
The Development Requires