Download the PHP package codeuptime/app-version-laravel without Composer

On this page you can find all versions of the php package codeuptime/app-version-laravel. 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 app-version-laravel

app-version-laravel

Packagist License Test

This package makes it easy to access current app version information if your Laravel application at runtime.

This can be helpful when you want/need to:

Pre-Requisites

This package relies on current version information being saved in the composer.json or package.json files under the version key.

If you are not currently setting the version of your application in any of these files as part of your CI/CD workflows, you can follow this tutorial to get started: Automatic Version Tagging using Github Actions

Getting Started

Installation

Configre App Service Provider

The package should be included in your application automatically using Laravel's package auto-discovery functionality. If this does not work, you can always add the service provider manually to your config/app.php

Usage

You can now get your application version 2 ways:

Get current version

The current version logic checks the composer.json and package.json files for the version key in that order. As soon as a version value is found, that value is returned.

Get composer.json version

Get package.json version

Get version information from all files

this one returns a \stdClass object containing all version information

Artisan Commands

There are cases where you would like to use the application version number in your scripts and automated workflows. This package provides two commands

version

This command just returns the current version string. This makes it very usable as part of your CI/CD scripts or adding this version to other build artifacts such as API docs.

version:info

This command is helpful when evaluating automation or debugging

version:set-in-json-file --file=/path/to/some/file.json --path=path.to.some.key.in.json.object

This command sets the current version number to a key in a json file. This can be in automated CI/CD pipelines that publish OpenAPI or Swagger based documentation and you want to include the application version with your documentation bundle.


All versions of app-version-laravel with dependencies

PHP Build Version
Package Version
No informations.
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 codeuptime/app-version-laravel contains the following files

Loading the files please wait ....