PHPackages                             hnhdigital-os/laravel-console-self-update - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. hnhdigital-os/laravel-console-self-update

ActiveProject[CLI &amp; Console](/categories/cli)

hnhdigital-os/laravel-console-self-update
=========================================

Provides a trait to use to self-update console binary.

1.0.3(7y ago)6170MITPHPPHP ^7.1.3

Since Dec 30Pushed 7y agoCompare

[ Source](https://github.com/hnhdigital-os/laravel-console-self-update)[ Packagist](https://packagist.org/packages/hnhdigital-os/laravel-console-self-update)[ RSS](/packages/hnhdigital-os-laravel-console-self-update/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

```
              .__   _____                          .___       __
  ______ ____ |  |_/ ____\         __ ________   __| _/____ _/  |_  ____
 /  ___// __ \|  |\   __\  ______ |  |  \____ \ / __ |\__  \\   __\/ __ \
 \___ \\  ___/|  |_|  |   /_____/ |  |  /  |_> > /_/ | / __ \|  | \  ___/
/____  >\___  >____/__|           |____/|   __/\____ |(____  /__|  \___  >
     \/     \/                          |__|        \/     \/          \/

```

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

[![Latest Stable Version](https://camo.githubusercontent.com/25397912ccce8ec5c5bc55c534b986f92b88adc9b583b7952c59702f6ec7b262/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f686e686469676974616c2d6f732f6c61726176656c2d636f6e736f6c652d73656c662d7570646174652e737667)](https://travis-ci.org/hnhdigital-os/laravel-console-self-update) [![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT) [![Donate to this project using Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://patreon.com/RoccoHoward)

[![Build Status](https://camo.githubusercontent.com/ebf3a9aa8ee0301a41523ae6817f88d4ebeacc9d33d98c7f9e726325aba58968/68747470733a2f2f7472617669732d63692e636f6d2f686e686469676974616c2d6f732f6c61726176656c2d636f6e736f6c652d73656c662d7570646174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/hnhdigital-os/laravel-console-self-update) [![StyleCI](https://camo.githubusercontent.com/7e84da85c0feae2afb14cbfe10e9705bd2ed5603d7b35ecae5beee24bb9c6914/68747470733a2f2f7374796c6563692e696f2f7265706f732f3136333439383834322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/163498842) [![Test Coverage](https://camo.githubusercontent.com/e72858cb52165f75149cec79de1074d7a3a45edad5c8c0c3e548a0959226cd13/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d636f6e736f6c652d73656c662d7570646174652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-console-self-update/coverage) [![Issue Count](https://camo.githubusercontent.com/4f8de27ed5b33d0b0e5e541eaad3c39fa2bf8d6d80e8dc9487309c17713b2be2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d636f6e736f6c652d73656c662d7570646174652f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-console-self-update) [![Code Climate](https://camo.githubusercontent.com/71c8427c7e30d81acab8c5281b3c5c73583847374b6a65f354012eb7b704a47c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d636f6e736f6c652d73656c662d7570646174652f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-console-self-update)

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

Requirements
------------

[](#requirements)

- PHP 7.1.3
- Laravel Zero 5.7

Installation
------------

[](#installation)

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

Implementation
--------------

[](#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.

```
