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
ClickUp Integration
This package also provides a command to post comments on ClickUp tasks based on the changelog file. This is useful for tracking changes and updates in your projects.
Configuration
-
You need to make sure you have the clickup environment variables set in your
config/app-version
configuration file. You can see the variables to configure in step two of the installation process. -
To generate clickup comments, you must run the command 'app-version:notify-clickup'.
This command will read the changelog file specified in the configuration and post comments on ClickUp tasks that match the format specified in the changelog.
Note: The changelog file is specified in the
config/app-version.php
file under thechangelog_file_name
key. By default, it is set toCHANGELOG.md
. -
After this, your tasks will have a comment similar to the following:
Despliegue realizado en ambiente: develop Fecha: 2025-04-30 02:06:21 Versión: 3.1.0
Some of the supported formats for reading ClickUp tasks in the change log file are:
-
Versions:
- Tasks
⚠️ Important: You must add the full URL of the corresponding ClickUp task, as this will retrieve both the task ID and team ID, which are necessary to generate the comment.
All versions of app-version with dependencies
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
ext-curl Version *
ext-json Version *