dev-master
9999999-devFunction collection
BSD
The Requires
- zeptech/utility dev-master
- php >=5.4.0
by Philip Graham
utility functions
Wallogit.com
2017 © Pedro Peláez
Function collection
A set of useful utility functions., (*1)
Install via Composer:, (*2)
{
"require": {
"zeptech/fun-box": "dev-master"
}
}
In order to use functions Fun Box must be initialized because php doesn't
provide function autoloading. Once initialized, functions are included using the
ensureFn function., (*3)
<?php
// ... Initialize composer
FunBox::init();
ensureFn('passwordPrompt');
// ...
if ($interactive) {
$pw = passwordPrompt();
}
List of functions provided by Fun Box, (*4)
Output a countdown to the command line., (*5)
announceWait($waitTime, $message = 'Commencing');
Prompt the user for a password from the command line., (*6)
passwordPrompt($prompt = 'password: ');
Function collection
BSD
utility functions