Download the PHP package drupify/version-resolver without Composer
On this page you can find all versions of the php package drupify/version-resolver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drupify/version-resolver
More information about drupify/version-resolver
Files in drupify/version-resolver
Package version-resolver
Short Description A PHP library for resolving version, supported releases etc. for Drupal Core, modules, themes, and other related projects.
License MIT
Homepage https://github.com/vishalkhode1/version-resolver
Informations about the package version-resolver
Drupal Version Resolver Library
The Drupal Version Resolver Library is a PHP library designed to help you easily resolve Drupal project versions, supported releases, and retrieve all releases hosted on Drupal.org. Whether you need to fetch release information for Drupal core or contributed modules/themes, this library offers a simple API to access such data.
Features
- Fetch supported releases for a given Drupal module or theme.
- Get all available releases for any Drupal project.
- Resolve different Drupal core versions, including the current version, development versions, and next minor versions.
Requirements
- PHP 8.1 and above.
- Composer for installation.
- Internet access to query data from drupal.org.
Installation
To install, you can run below command:
Example Usage
Here’s an example to retrieve the releases of a module hosted on Drupal.org:
Fetching All Releases
If you need to retrieve all releases (including older versions), you can do so with the following:
Note: This method returns all releases, but it does not include projects compatible with Drupal Core 7.x and below.
Resolving Drupal Core Versions
The library also provides methods to resolve various types of Drupal core versions:
- Current Stable: Returns the current stable version (e.g.,
10.3
). - Current Dev: Returns the current development version (e.g.,
10.3.x-dev
). - Next Minor: Returns the next minor version (e.g.,
11.0.0-rc1
). - Next Minor Dev: Returns the next minor development version (e.g.,
11.0.x-dev
) and so on.
Example usage:
Example Output
Contact
If you have any questions or issues, feel free to open a GitHub issue or contact the maintainers directly.