Download the PHP package vormia-folks/atu-multi-currency without Composer

On this page you can find all versions of the php package vormia-folks/atu-multi-currency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package atu-multi-currency

ATU Multi-Currency

Laravel package for currency normalization, conversion, display, and reporting alongside A2 Commerce. Core commerce data stays in the base system currency; this package adds rates, logs, settings, and APIs without replacing A2 as the source of truth.

Introduction

ATU Multi-Currency is a projection layer: it converts and decorates for display and reporting, keeps an audit trail, and syncs optional settings with A2Commerce when that stack is present.

A2 Commerce owns truth — amounts in A2Commerce stay in base currency. ATU owns atu_multicurrency_* tables, conversion logs, and admin/API surfaces.

How the package is wired (v2.x) — After composer require, Laravel loads migrations, merged config, API routes, and admin Livewire routes directly from the package under vendor (livewire/livewire ^4 is required). The installer does not copy migrations, controllers, or views into your app; it mainly ensures .env keys and walks you through migrate/seed.

Features

Requirements

Optional (Flux admin shell)

livewire/livewire ^4 is required by this package (declared in composer.json). See composer.json suggest for optional Flux-related packages.

Dependencies

A2Commerce is optional. If a2_ec_settings exists, the seeder and sync services can align the default currency with A2; otherwise defaults apply (for example USD).

Installation

1. Require the package

The service provider is discovered automatically.

2. Run the installer (optional .env, migrate, seed)

This command:

Option:

3. Migrate and seed (if you skipped prompts)

The seeder creates a default currency with rate 1.0 when none exists. If a2_ec_settings is present, it reads rows with key of currency_code and currency_symbol; otherwise it uses USD / $.

4. Optional: publish config

Config is merged from the package. To override in your app:

5. Optional: admin UI checklist

Admin routes are registered at /admin/atu/currencies. To verify optional Flux layout dependencies and optionally inject sidebar links:

After composer update of this package, clear caches:

Commands

Command Purpose
atumulticurrency:install Env keys; prompts for migrate/seed (--skip-env)
atumulticurrency:refresh Roll back and re-run package migrations; optional seed (--force, --seed)
atumulticurrency:uninstall Remove env keys; optional migration rollback (--keep-env, --force)
atumulticurrency:ui-install Check UI deps; optional Flux sidebar (--inject-sidebar)
atumulticurrency:ui-update Clear caches after package update
atumulticurrency:ui-uninstall Remove legacy copied views and marked route/sidebar snippets (--force)
atumulticurrency:help Summary of commands, env, routes, seeder class

Run php artisan atumulticurrency:help for the canonical, up-to-date list.

Configuration

Merged config lives in the package at config/atu-multi-currency.php. After publishing, edit config/atu-multi-currency.php in your application.

Typical keys include default_currency, api, conversion, and table_prefix.

Environment variables

Installed keys (when not skipped):

Database tables

All use the atu_multicurrency_ prefix (configurable via table_prefix):

Table Role
atu_multicurrency_currencies Supported currencies, rates, fees, default/active flags
atu_multicurrency_currency_rates_log Historical rates
atu_multicurrency_currency_conversion_log Immutable conversion audit
atu_multicurrency_settings Stored conversion and display settings

Core principles

  1. A2 Commerce owns truth for stored order/catalog amounts in base currency (when A2 is used).
  2. ATU is a projection layer — convert, log, and report without silently rewriting core rows.
  3. Complexity stays in ATU tables — rates, logs, fees, settings.
  4. Logs are append-only — do not mutate historical conversion rows.

Default currency and A2Commerce

When A2Commerce is present, CurrencySyncService keeps the default currency’s code/symbol aligned with a2_ec_settings using updateOrInsert on the key / value shape used by your A2 install.

Operational rules (see admin UI and services for enforcement):

JSON API

Routes are registered by the package with the api middleware stack, prefix /api/atu/currency, and names like api.atu.currency.index.

Endpoints include listing currencies, current/default, switch, CRUD, toggle active, set default, settings read/update, and conversion logs. Secure them with your own middleware (Sanctum, admin gates, throttling) as needed.

Admin UI (Livewire 4)

The service provider registers the package view location with Livewire::addLocation and loads /admin/atu/currencies routes (names such as admin.atu.currencies.index).

For manual route or layout merges, use the reference stubs under vendor/vormia-folks/atu-multi-currency/src/stubs/reference/.

Documentation

Document Description
CHANGELOG.md Version history (Keep a Changelog)
docs/build-guide.md Install, database, API, admin UI (Livewire / Flux), UI contract
docs/package-creation-guide.md Template for ATU-style Laravel packages (optional)
docs/releases/v2.1.0.md Release notes for v2.1.0

A2Commerce documents the commerce core this package extends.

Uninstallation

The uninstall command can strip ATU env keys and optionally roll back this package’s migrations. It does not remove the Composer package; composer remove does that. Routes and admin Livewire UI unregister once the package is removed.

Use atumulticurrency:ui-uninstall first if you still have legacy copied Blade or Livewire files from older installs.

Troubleshooting

Contributing

Contributions are welcome via pull request.

License

MIT. See opensource.org/licenses/MIT.

Versioning

Semantic Versioning; releases are tagged (for example v2.1.0).

Recent releases

Older tags (v1.x, v0.x) may reflect the previous “copy stubs into the app” workflow; prefer v2.x docs for current behavior.


Built for the A2 Commerce ecosystem.


All versions of atu-multi-currency with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^12.0 || ^13.0
livewire/livewire Version ^4.0
vormiaphp/vormia Version ^5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vormia-folks/atu-multi-currency contains the following files

Loading the files please wait ...