stichoza/nbg-currency-cli

Command-line tool for National Bank of Georgia currency service

v1.0.10 2022-12-04 16:35 UTC

This package is auto-updated.

Last update: 2024-04-04 02:34:09 UTC


README

Command-line tool for National Bank of Georgia currency service.

Note: If you're looking for a non-cli PHP package to use in your code, see stichoza/nbg-currency instead.

Installation

Install this package globally via Composer.

composer global require stichoza/nbg-currency-cli

Usage

NBG CLI Screenshot

Options

--help Display this help page.
--plain Display plain results without colors.
--normalize Convert rates to single entity if rate is given for amount larger than 1.

Example commands

nbg usd Get currency rate and change for USD.
nbg usd --plain Get currency rate for USD.
nbg usd eur gbp Get currency rate for USD, EUR, GBP.
nbg 150 usd Get equivalent of 150 USD in GEL.
nbg 150 gel usd Get equivalent of 150 GEL in USD.