Download the PHP package j2nlab/laravel-simple-version without Composer

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

Laravel-Simple-Version

Manage easily your Laravel app version

Description

With this package, you can:

Installation

Via Composer

Then publish the configuration file:

The initial config/version.php is:

If build is false, then this number is ignored; else it's incremented and never reset to 0. If you want a build number, set to any value (0 or 1, for example).

If commit is false, this number is ignored; else get the 6 firsts digits of the last local commit. If you want a commit number, set to (0 or 1, for example).

Artisan commands

All available commands are:

php artisan version

Display version number, in different ways available with helpers and Blade directive, currently 'full' and 'compact' (the default).

If build value is false.

If build and commit values are false.

If patch and build value are false.

php artisan version:commit

If the commit value on config/version.php is not false, get the 6 firsts digits of the last git local commit.

Of, if commit value is false.

php artisan version:build

If the build value on config/version.php is not false, increment build number. This number is never reseted to 0.

Of, if build value is false.

php artisan version:patch

If the patch value on config/version.php is not false, increment app patch number.

Of, if patch value is false.

php artisan version:minor

Increment app minor number version, and reset to 0 patch number.

php artisan version:major

Increment app major number version, and reset to 0 minor and patch numbers.

Summary...

It's really simple:

Helper

You can use this helper to get a compact version format:

Or you can choose the format:

Blade directive

You can use this directive to render a compact version format:

Or you can choose the format:

Testing

You can run some PHPunit tests with the following command:

License

This package is licensed under the MIT License - see the LICENSE file for details.


All versions of laravel-simple-version with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
illuminate/console Version ^6.0|^7.0|^8.0
illuminate/view Version ^6.0|^7.0|^8.0
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 j2nlab/laravel-simple-version contains the following files

Loading the files please wait ....