Download the PHP package sirix/money without Composer

On this page you can find all versions of the php package sirix/money. 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 money

Sirix Money

Flexible, framework-agnostic currency catalogs and money factories for Brick Money. It provides a small, explicit application boundary around Brick's precise monetary types: resolve currencies from immutable catalogs, create money in major or minor units, and format amounts without coupling the application to a framework or global registry.

Why Sirix Money

Requires PHP 8.2 and brick/money.

Install

For a source checkout, install the package normally. Development tools are opt-in and require PHP 8.3+:

Quick start

MoneyFactory uses HALF_UP by default, except that AutoContext uses Brick's required UNNECESSARY rounding mode when no mode is supplied. Amounts must be BigNumber, int, or decimal string; floats are rejected even for applications that do not enable strict PHP types.

Build your own catalog

An ArrayCurrencyCatalog can be the complete currency universe for an application. Use numeric code 0 when a custom currency has no numeric identifier.

To add application currencies to the built-in ISO and digital seed, compose catalogs explicitly. Duplicate canonical string or non-zero numeric codes fail at bootstrap. String codes are not restricted to enum-shaped names.

Use CurrencyCatalogBuilder::replace() only during bootstrap when deliberately replacing an existing definition.

Major and minor units

of() accepts a major-unit decimal amount. ofMinor() accepts an integer amount in the currency's smallest unit. Use strings for values that may exceed PHP integer range.

Catalogs are immutable and safe to construct at a long-running worker's bootstrap.

Documentation

Guide Description
v2 design Public contract and deliberate breaking changes
Dependency injection Container and persistent-worker wiring
Built-in currencies The source-controlled digital seed and ISO metadata source
Upgrading to v2 Migration from the v1 API

License

MIT. See LICENSE.


All versions of money with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
brick/math Version ^0.18 || ^0.19
brick/money Version ^0.14.1
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 sirix/money contains the following files

Loading the files please wait ...