nexanet/build-version

A Laravel package for managing build versions.

1.0.0 2025-02-16 20:02 UTC

This package is auto-updated.

Last update: 2025-06-16 21:01:25 UTC


README

A Laravel package to automatically inject build version headers into API responses.

Laravel PHP License

📌 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