Download the PHP package voral/version-increment without Composer

On this page you can find all versions of the php package voral/version-increment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package version-increment

Semantic Version Update

RU

Scrutinizer Code Quality Code Coverage Code Intelligence Status \ PHP Tests

This tool automates the process of version management in Composer-based projects by analyzing Git commits and generating a CHANGELOG. It adheres to semantic versioning and supports the Conventional Commits standard.

The version follows the semantic rule <Major>.<Minor>.<Patch>:

Key Features

Why Use This Tool?

Installation

Usage

Utility help command

Retrieving the list of registered commit types and registered scopes

Execute all file updates (e.g., CHANGELOG.md, composer.json) but skip creating the final Git commit and version tag

The --debug flag allows you to preview the changes that will be made to the CHANGELOG and version without actually applying them

To simplify usage, you can add scripts to composer.json:

Example of the output file:

Configuration

You can configure the script by placing a .vs-version-increment.php file in the project directory and making the following adjustments:

Commit Descriptions

For the tool to function correctly, commit descriptions must follow this format:

Examples:

Default Commit Types

Type Purpose
feat Adding new functionality
fix Fixing bugs
chore Routine tasks (e.g., dependency updates)
docs Documentation changes
style Code formatting (indentation, spaces, etc.)
refactor Refactoring code without adding new features or fixing bugs
test Adding or modifying tests
perf Performance optimization
ci Continuous integration (CI) configuration
build Changes related to project build
other All other changes that do not fall under standard categories

CI/CD Integration

The script can be integrated into CI/CD pipelines. In case of errors, it returns different exit codes:

Code Description
10 Composer configuration error
20 Git branch is not the main branch
30 Uncommitted changes in the repository
40 No changes in the repository
50 Invalid configuration file
60 Error executing a Git command
70 Invalid version change type
80 Changelog File Error
90 Unknown config property
100 Configuration is not set
500 Other errors
≥5000 User-defined custom errors

You can use it in the command line, for example:

Example for GitHub Actions:

Event Handling with EventBus

The module includes an EventBus for handling events that occur during the utility's operation. This allows developers to create custom event handlers and extend the tool's functionality.

Key Features:

Example Usage:

Available Event Types:

Event Type Description
BEFORE_VERSION_SET Triggered before the version update begins.
AFTER_VERSION_SET_SUCCESS Triggered after the version update completes successfully.
AFTER_VERSION_SET_ERROR Triggered when an error occurs.

Recommendations:

Error Handling for Custom Extensions

When developing custom extensions or integrations for this tool, it is important to handle errors consistently and avoid conflicts with system-defined error codes. To achieve this, developers should use the UserException class for all custom error scenarios.

Key Points:

By adhering to these guidelines, you can ensure seamless integration of your custom extensions with the tool while maintaining clarity and consistency in error handling.

Configuration Examples

To help you get started with the library more quickly, I provide ready-to-use configuration examples for various use cases.

1. Configuration for Keep a Changelog

This configuration example is designed for projects that follow the Keep a Changelog standard. It organizes changes into categories (Added, Changed, Deprecated, Removed, Fixed, Security), making the changelog easy to read.

Useful Links


All versions of version-increment with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package voral/version-increment contains the following files

Loading the files please wait ....