https://github.com/stichoza/nbg-currency-cli
🖥 Command-line tool for National Bank of Georgia currency service
https://github.com/stichoza/nbg-currency-cli
Last synced: about 1 year ago
JSON representation
🖥 Command-line tool for National Bank of Georgia currency service
- Host: GitHub
- URL: https://github.com/stichoza/nbg-currency-cli
- Owner: Stichoza
- License: mit
- Created: 2020-03-29T14:07:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T01:13:50.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T11:22:09.247Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NBG Currency CLI
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](https://github.com/Stichoza/nbg-currency)** instead.
## Installation
Install this package globally via [Composer](https://getcomposer.org/).
```
composer global require stichoza/nbg-currency-cli
```
## Usage
### 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.