Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vahidkaargar/currencies
Currencies list
https://github.com/vahidkaargar/currencies
Last synced: about 1 month ago
JSON representation
Currencies list
- Host: GitHub
- URL: https://github.com/vahidkaargar/currencies
- Owner: vahidkaargar
- Created: 2023-10-28T15:35:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T07:59:47.000Z (about 1 year ago)
- Last Synced: 2024-06-01T19:02:57.809Z (7 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Currencies name list
With this package you can have currencies names list
### Requirement
1. This is a Laravel package
2. PHP >= 7.4### Installation
```bash
composer require "vahidkaargar/currencies"
```## Documentation
```php
use vahidkaargar\Currencies\Currency;
/*
* There two ways to use
* Output must be an array of currencies names
*/
$currencies = currency();
$currencies = Currency::fetch();/*
* Give you details of currency
*/
$currencies = currency('USD');
$currencies = Currency::fetch('USD');
```### Test
```bash
./vendor/bin/phpunit
```