Download the PHP package placetopay/app-version without Composer
On this page you can find all versions of the php package placetopay/app-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download placetopay/app-version
More information about placetopay/app-version
Files in placetopay/app-version
Package app-version
Short Description Provides information about the current app
License MIT
Informations about the package app-version
Track the version of your app
The placetopay/app-version
package provides a way to know which version of your app is currently deployed.
- It can be used with Envoyer deployment hooks
- It can be integrated with Sentry to help you keep track of Releases and Deploys in the Sentry Dashboard
- Also you can integrate with NewRelic to track each deployment in your APM
Installation
Install using composer
The package will automatically register itself and it should work now on your local environment
If you are using Sentry please follow this steps to configure the deployments and releases to your reports
-
Publish the configuration file
-
Set up your environment variables at
config/app-version.php
- Set up the
config/sentry.php
file with the following settings
Usage
You can visit https://yourapp.com/version
Envoyer Hooks
Using tools to deploy like Envoyer there is no git source available once deployed so using the sha, project and branch available information we create a file containing this information
- Create a deployment hook in the action "Activate New Release", it is vital that this hook runs BEFORE running config:cache or optimize commands
This will generate your version file at storage/app/app-version.json
- If you are integrating with Sentry or NewRelic Releases/Deployments/Issues, Add these hooks so Sentry and NewRelic can track your deployments. It should be run AFTER running the optimization or configuration cache.
Know your version from CLI
If you're using tinker you can get the version information with the following commands
To access the version information generated with the step 1 of the usage
To access the sha
All versions of app-version with dependencies
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
ext-curl Version *
ext-json Version *