PHPackages                             merrick/laravel-shopify-currencies - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. merrick/laravel-shopify-currencies

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

merrick/laravel-shopify-currencies
==================================

Laravel package providing the full list of Shopify supported currencies (hardcoded from CurrencyCode enum)

1.1.0(3mo ago)02MITPHPPHP ^8.1|^8.2|^8.3

Since Jan 26Pushed 3mo agoCompare

[ Source](https://github.com/merrick67/laravel-shopify-currencies)[ Packagist](https://packagist.org/packages/merrick/laravel-shopify-currencies)[ RSS](/packages/merrick-laravel-shopify-currencies/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Merrick Laravel Shopify Currencies
==================================

[](#merrick-laravel-shopify-currencies)

[![Packagist Version](https://camo.githubusercontent.com/5f6f71d5a843ce4bf1ed3c65272a92d85be64512161e46a5aac3884083a0d1ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65727269636b2f6c61726176656c2d73686f706966792d63757272656e636965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/merrick/laravel-shopify-currencies)[![Downloads](https://camo.githubusercontent.com/1e911ed33855a36225b6a11feaea1ea3b16cc89467aef92e64d008f75b81470c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65727269636b2f6c61726176656c2d73686f706966792d63757272656e636965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/merrick/laravel-shopify-currencies)

A lightweight Laravel package that provides the full list of currencies supported by Shopify, hardcoded from the official CurrencyCode enum (Shopify GraphQL Admin/Storefront APIs, latest 2026-01).

This package includes:

- Currency code, full name, symbol, and display format (e.g., "Vietnamese Dong (VND ₫)", "US Dollar (USD $)").
- Sorted like Shopify Admin dropdown: Most used currencies first (USD, EUR, GBP, CAD, AUD, etc.), then alphabetical by name.
- No database, no migrations, no API calls – pure PHP enum + static data for maximum speed and reliability.

Perfect for:

- Currency dropdowns in forms
- Validation rules
- Payment or checkout features
- Matching Shopify Admin settings exactly

Requirements
------------

[](#requirements)

- PHP ^8.1 | ^8.2 | ^8.3
- Laravel ^9.0 | ^10.0 | ^11.0 | ^12.0 (illuminate/support)

Installation
------------

[](#installation)

Install via Composer (live on Packagist):

composer require merrick/laravel-shopify-currencies

For local development or testing:

Add to your project's composer.json:

"repositories": \[ { "type": "vcs", "url": "" } \], "require": { "merrick/laravel-shopify-currencies": "dev-main" }

Then run:

composer update merrick/laravel-shopify-currencies

No additional setup needed – auto-registered.

Usage
-----

[](#usage)

### 1. Via Facade (Recommended)

[](#1-via-facade-recommended)

use Merrick\\ShopifyCurrencies\\Facades\\ShopifyCurrencies;

// All codes as array $codes = ShopifyCurrencies::codes();

// Full collection (code, name, symbol, display – sorted like Shopify Admin) $currencies = ShopifyCurrencies::all(); // Example items: // \['code' =&gt; 'USD', 'name' =&gt; 'US Dollar', 'symbol' =&gt; '$', 'display' =&gt; 'US Dollar (USD $)'\] // \['code' =&gt; 'EUR', 'name' =&gt; 'Euro', 'symbol' =&gt; '€', 'display' =&gt; 'Euro (EUR €)'\] // \['code' =&gt; 'VND', 'name' =&gt; 'Vietnamese Dong', 'symbol' =&gt; '₫', 'display' =&gt; 'Vietnamese Dong (VND ₫)'\]

// Validate code $isValid = ShopifyCurrencies::isValid('VND'); // true

### 2. Via Helpers

[](#2-via-helpers)

$codes = shopify\_currency\_codes(); $currencies = shopify\_currencies(); // with display format $isValid = is\_shopify\_currency('EUR');

### 3. Via Service Container

[](#3-via-service-container)

use Merrick\\ShopifyCurrencies\\Services\\ShopifyCurrencyService;

$service = app(ShopifyCurrencyService::class); $currencies = $service-&gt;all();

### Blade Dropdown Example (Matches Shopify Admin Style)

[](#blade-dropdown-example-matches-shopify-admin-style)

 @foreach (ShopifyCurrencies::all() as $currency) {{ $currency\['display'\] }} @endforeach Output preview:

- US Dollar (USD $)
- Euro (EUR €)
- British Pound (GBP £)
- ...
- Vietnamese Dong (VND ₫)

### Available Methods

[](#available-methods)

MethodReturn TypeDescriptioncodes()arrayAll currency codesall()CollectionFull list: code, name, symbol, display (Most used first)isValid(string $code)boolCheck if code is supported by ShopifyWhy Hardcoded?
--------------

[](#why-hardcoded)

Shopify's CurrencyCode enum is stable and rarely changes. Hardcoding ensures:

- No API dependencies
- Instant performance
- Easy maintenance (update maps in ShopifyCurrencyService.php)

Version History
---------------

[](#version-history)

- 1.1.0 (latest): Added full names, symbols, display format ("Name (CODE symbol)"), and "Most used" sorting to match Shopify Admin dropdown.
- 1.0.0: Initial release with basic code + name list.

Contributing
------------

[](#contributing)

Report issues, suggest symbols/names, or open PRs on GitHub:

License
-------

[](#license)

MIT License

See LICENSE for details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance80

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

107d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6c486903f58b862a5eb5eb0d9cda2218a3e85f192535a894e2c05fb6ce27258?d=identicon)[merrick67](/maintainers/merrick67)

### Embed Badge

![Health badge](/badges/merrick-laravel-shopify-currencies/health.svg)

```
[![Health](https://phpackages.com/badges/merrick-laravel-shopify-currencies/health.svg)](https://phpackages.com/packages/merrick-laravel-shopify-currencies)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
