vahidkaargar/currencies

Currencies list

Installs: 296

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/vahidkaargar/currencies

0.2 2023-10-29 07:58 UTC

This package is auto-updated.

Last update: 2025-09-29 02:51:22 UTC


README

With this package you can have currencies names list

Requirement

  1. This is a Laravel package
  2. PHP >= 7.4

Installation

composer require "vahidkaargar/currencies"

Documentation

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

./vendor/bin/phpunit