UtilsModule
Less than 1 minute
UtilsModule
Class UtilsModule.
class UtilsModule extends \Hazaar\Console\ModuleExtends: Hazaar\Console\Module
Console module for utility commands. Provides commands for geodata caching, building the currency database and other utilities.
Methods
configure
Configures the module by adding utility commands.
protected configure(): voidReturns: void
buildCurrencyDatabase
Builds the currency database used by Hazaar\Util\Money.
protected buildCurrencyDatabase(Input $input, Output $output): intReturns: int
Downloads the current ISO 4217 list and CLDR data, and writes the database to the framework's libs/currency.db, or to the file given with --output.
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
cacheGeodataFile
Caches the geodata database file using GeoData utility.
protected cacheGeodataFile(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
Generated by Hazaar API Doc Generator on Sun, 08 Nov 2026 03:36:16 +0000