Download the PHP package voral/vinc-file-version-regexp without Composer

On this page you can find all versions of the php package voral/vinc-file-version-regexp. 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 vinc-file-version-regexp

vinc-file-version-regexp

RU

PHP Tests Code Coverage Scrutinizer Code Quality

An extension for voral/version-increment to update version strings in custom files using regular expressions.

This tool allows you to automatically update version numbers in arbitrary files (e.g., PHP, JSON, XML) during the versioning process. It integrates seamlessly with the voral/version-increment package and listens to the BEFORE_VERSION_SET event to perform replacements based on a provided regular expression.


Key Features


Installation

Install the package via Composer:


Usage

To use this extension, configure it in your .vs-version-increment.php file by adding a listener for the BEFORE_VERSION_SET event. Here's an example:

Explanation:


Example Use Cases

1. Updating a PHP File

If your project contains a version.php file like this:

The extension will update it to:

2. Updating a JSON File

For a config.json file:

The extension can update it to:


Error Handling

The extension provides detailed error messages and unique error codes to help diagnose issues:

Error codes are offset by a configurable errorCodeDelta to avoid conflicts with other extensions.


Configuration Options

You can customize the behavior of the extension by adjusting its parameters:

Parameter Description
filePath The path to the file where the version will be updated.
regexp The regular expression used to locate the version string.
errorCodeDelta Optional delta value to ensure unique error codes across multiple modules.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Submit a pull request with a clear description of your changes.

Ensure that your code adheres to the project's coding standards and includes appropriate tests.


Testing

Run the following commands to test the package:

Generate a code coverage report:

Perform static analysis:

Check coding standards:

Run all checks at once:


License

This package is licensed under the MIT License. See the LICENSE file for details.


Useful Links


All versions of vinc-file-version-regexp with dependencies

PHP Build Version
Package Version
Requires voral/version-increment Version ^2.1.0
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/vinc-file-version-regexp contains the following files

Loading the files please wait ....