pronamic / wp-money
WordPress Money library.
Installs: 120 253
Dependents: 16
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 1
Open Issues: 3
Type:wordpress-plugin
Requires
- php: >=7.4
- pronamic/wp-number: ^1.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- koodimonni-language/de_de: *
- koodimonni-language/fr_fr: *
- koodimonni-language/nl_nl: *
- overtrue/phplint: ^9.0
- php-coveralls/php-coveralls: ^2.4
- phpmd/phpmd: ^2.4
- phpstan/phpstan: ^1.11
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^1.3
- roots/wordpress: ^6.0
- szepeviktor/phpstan-wordpress: ^1.3
- vimeo/psalm: ^5.25
- vlucas/phpdotenv: ^2.0
- wp-phpunit/wp-phpunit: ^6.1
- yoast/phpunit-polyfills: ^1.0
README
Non-breaking space
In the money format it is smart to use a non-breaking space:
In word processing and digital typesetting, a non-breaking space (" "), also called no-break space, non-breakable space (NBSP), hard space, or fixed space, is a space character that prevents an automatic line break at its position.
Source: https://en.wikipedia.org/wiki/Non-breaking_space#Keyboard_entry_method
WordPress Filters
pronamic_money_default_format
function prefix_pronamic_money_default_format( $format ) { /* translators: 1: currency symbol, 2: amount, 3: currency code */ return _x( '%1$s%2$s', 'default money format', 'pronamic-ideal' ); } add_filter( 'pronamic_money_default_format', 'prefix_pronamic_money_default_format' );
Inspiration
- http://php.net/manual/en/function.money-format.php
- https://github.com/datasets/currency-codes
- https://github.com/cknow/laravel-money
- https://github.com/akaunting/money
- https://github.com/moneyphp/money
- https://github.com/Torann/laravel-currency
- https://github.com/davidkalosi/js-money
- https://github.com/scurker/currency.js
- https://github.com/woocommerce/woocommerce/blob/3.3.5/includes/wc-core-functions.php#L284-L464
- https://github.com/woocommerce/woocommerce/blob/3.3.5/i18n/locale-info.php
- http://trigeminal.fmsinc.com/samples/setlocalesample2.asp
- http://moneyphp.org/
- https://packagist.org/?q=money
- https://packagist.org/?q=currency
- https://yarnpkg.com/en/packages?q=money
- https://yarnpkg.com/en/packages?q=currency
- https://www.currency-iso.org/en/home.html
- https://docs.oracle.com/javase/7/docs/api/java/util/Currency.html
- https://wp-languages.github.io/
- http://php.net/manual/en/function.sscanf.php
- http://php.net/manual/en/numberformatter.create.php
- https://git.tibidono.com/package/money-datatype/blob/0.1.13/src/Money/TaxedMoney.php
- https://frontstuff.io/how-to-handle-monetary-values-in-javascript
- https://github.com/sarahdayan/dinero.js