Download the PHP package hnhdigital-os/laravel-console-self-update without Composer

On this page you can find all versions of the php package hnhdigital-os/laravel-console-self-update. 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-console-self-update

Provides a trait to provide self-updating for Laravel Zero console applications.

Latest Stable Version License: MIT Donate to this project using Patreon

Build Status StyleCI Test Coverage Issue Count Code Climate

This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Requirements

Installation

composer require hnhdigital-os/laravel-console-self-update

Implementation

This package is implemented through a trait and an interface (for the constants).

The basic implementation requires setting a base URL setUrl or providing a flysystem adapter setFlysystem before calling the runSelfUpdate method.

Binary versioning is implemented using BRANCH-TAG (eg stable-1.00) but will fallback to TAG (1.0.0) for the more common Laravel Zero version approach.

Latest version

The script checks /latest for the latest tag (eg it would contain 1.0.1).

Download path to binary

The download path for a specific binary version is sourced from a JSON encoded values sourced from /versions (default). You can override that by using setVersionsPath.

By default, the versions file is tag/path. If the versions file contains more than the path, the default path source can be overridden to a specific key using setVersionsTagKey.

For example:

Hash comparing

The downloaded file is hash checked (SHA256). This hash string by default is found in the same path as the download file path (download/1.0.1/sha256).

You can change the default source by overriding the setHashSource method and returning a different constant.

If there is a top level json encoded file storing the hashes, set the source to CHECKSUM_TOP_LEVEL. Specify the file path by using setHashPath.

NOTE: This array is keyed to the download path discovered through the versions file. It must match to be able to retrieve the hash.

If the hash is included in the versions file, set the source to CHECKSUM_VERSIONS. Specify the array key using setHashPath.

Build scripts

Looking for a build script to help create all the necessary files?

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-console-self-update with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
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 hnhdigital-os/laravel-console-self-update contains the following files

Loading the files please wait ....