nexanet / build-version
A Laravel package for managing build versions.
Requires
- php: >=8.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
README
A Laravel package to automatically inject build version headers into API responses.
📌 Overview
Nexanet - Build Version is a Laravel package that automatically adds version tracking headers (X-Build-Version
and X-Minimum-Build
) to API responses. This allows your frontend (e.g., Flutter app) to check if an update is required, eliminating the need for a separate API request.
📦 Configuration
Simple add envoriment variable BUILD_VERSION
and MINIMUM_BUILD
to your .env
file. The package will automatically inject these values into the response headers.
Furthermore, the package can be configured via the config/build-version.php
file. To publish the configuration file, run the following command:
php artisan vendor:publish --provider="Nexanet\BuildVersion\BuildVersionServiceProvider"
📥 Installation
Require the package via Composer:
composer require nexanet/build-version