Skip to content

Instantly share code, notes, and snippets.

View ScottYates's full-sized avatar

Scott Yates ScottYates

View GitHub Profile

Keybase proof

I hereby claim:

  • I am scottyates on github.
  • I am beernutz (https://keybase.io/beernutz) on keybase.
  • I have a public key ASAzdlAj_5oX4u28QxMiKY5l3zaKYZJH0gaY7bx6oBjWoQo

To claim this, I am signing this object:

@ScottYates
ScottYates / progressBar.php
Last active May 16, 2018 17:52 — forked from marcojetson/progressBar.php
Simple and customisable command line progress bar in PHP
<?php
/**
* Create a progress bar
*
* @param int $total Max amount of items
* @param int $width Width in characters of the progress bar (defaults to 100)
* @param string $template Template to use,
* Available placeholders are %finished, %unfinished, %percent, %eta, %current and %total
* @return callable A function that renders the bar and takes the current value as only argument
*

Keybase proof

I hereby claim:

  • I am beernutz on github.
  • I am beernutz (https://keybase.io/beernutz) on keybase.
  • I have a public key ASBuhJe4Lv8o8c_bECzgvUpnOdCWOW7T_Rxki9Aq9sOvRQo

To claim this, I am signing this object: