laravel-wallet

Easy work with virtual wallet

MIT License

Downloads
528.7K
Stars
1.1K
Committers
26

Bot releases are hidden (Show)

laravel-wallet - 6.2.2

Published by rez1dent3 almost 3 years ago

Changed

  • Update key from cache
laravel-wallet - 6.2.1

Published by rez1dent3 almost 3 years ago

Fixed

  • Fix looping for old configs. #387 @AbdullahFaqeir, #391 @Hussam3bd @alexstewartja
laravel-wallet - 6.2.0

Published by rez1dent3 almost 3 years ago

Added

  • ECS
  • Added new exception UnconfirmedInvalid

Changed

  • Raised the minimum php version 7.4+
  • Merged migrations

Deprecated

  • class Storable
  • class Rateable
  • interface Mathable
  • class Bring
  • method Cart::alreadyBuy
  • method Cart::canBuy
  • class EmptyLock
  • class Operation
  • method CommonService::verifyWithdraw
  • method CommonService::multiOperation
  • method CommonService::assemble
  • method CommonService::multiBrings
  • method CommonService::addBalance
  • class DbService
  • class ExchangeService
  • class LockService
  • class MetaService
  • method WalletService::discount
  • method WalletService::decimalPlacesValue
  • method WalletService::decimalPlaces
  • method WalletService::checkAmount
  • method WalletService::refresh
  • method WalletService::adjustment
  • class BrickMath
  • class Rate
  • class Store
laravel-wallet - 6.1.0

Published by rez1dent3 over 3 years ago

Added

  • Added Github Actions
  • Add farsi locale; #317 #320 @hsharghi
  • Added the ability to add meta data from the cart #318
  • Added exceptions to phpdoc

Changed

  • Reworked unit tests
  • Unit tests work faster

Fixed

  • Fixed a bug in the calculation of the commission
laravel-wallet - 6.0.4

Published by rez1dent3 over 3 years ago

Added

  • Updated key "confirmed_invalid" in Arabic; #316 @omarhen
laravel-wallet - 6.0.3

Published by rez1dent3 over 3 years ago

Added

  • Add arabic locale; #302 @akhedrane
laravel-wallet - 6.0.2

Published by rez1dent3 almost 4 years ago

Added

  • Added getWalletOrFail method.
laravel-wallet - 6.0.1

Published by rez1dent3 almost 4 years ago

Fixed

  • Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
  • Fixed bugs in unit tests.
laravel-wallet - 5.5.1

Published by rez1dent3 almost 4 years ago

Fixed

  • Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
  • Fixed bugs in unit tests.
laravel-wallet - 6.0.0

Published by rez1dent3 almost 4 years ago

Added

  • Bigger and safer. There are never many tests. As always, new test cases have been added.
  • Package brick/math is now required.
  • Added examples of integrations with the cknow/laravel-money package in unit tests.
  • The Storable interface has an additional method fresh to clean up all data.
  • Added psalm, but not used yet.
  • Added phpmetrics, thanks to which it was possible to remove a lot of loops in the code.
  • Added meta column in wallet, now the package is more extensible. I moved currency from the config to the meta.
  • Added an icon to the documentation.
  • Added full support for php 8. We are waiting for the release.
  • Added adjustment method, it deals with balance adjustment. In automatic mode, it calculates the difference between the current amount on the balance sheet and for transactions, and if the balance does not converge, then finishes with a transaction.
  • Added the ability to initialize the default wallet with the required meta parameters (needed to work with currencies).
  • Added method negative to Mathable interface.

Changed

  • Now the package works exclusively with strings, there are fewer problems when working with large numbers.
  • Now, to work with cryptocurrencies, it is not necessary to install bcmath.
  • JS documentation is no longer dependent on CDN, everything is collected in one bundle.
  • Updated the command to refresh the balance, now without a transaction for all wallets. Use carefully.
  • Currencies are now in "wallets.meta.currency", please do not use the config for these cases.
  • English documentation has been slightly improved.
  • Updated phpunit to support php 8.

Removed

  • Removed php 7.2 support.
  • Drop package laravel/legacy-factories.
  • Remove BCMath and Math classes.

Fixed

  • Fixed a bug when withdrawing large funds from the wallet. Sometimes the number went beyond int64 and the exception fell on "negative number".

Deprecated

  • The key in the currencies config will be removed in 7.x. Use "wallet.meta.currency".
laravel-wallet - 6.0.0+RC1

Published by rez1dent3 almost 4 years ago

Added

  • Bigger and safer. There are never many tests. As always, new test cases have been added.
  • Package brick/math is now required.
  • Added examples of integrations with the cknow/laravel-money package in unit tests.
  • The Storable interface has an additional method fresh to clean up all data.
  • Added psalm, but not used yet.
  • Added phpmetrics, thanks to which it was possible to remove a lot of loops in the code.
  • Added meta column in wallet, now the package is more extensible. I moved currency from the config to the meta.
  • Added an icon to the documentation.
  • Added full support for php 8. We are waiting for the release.
  • Added adjustment method, it deals with balance adjustment. In automatic mode, it calculates the difference between the current amount on the balance sheet and for transactions, and if the balance does not converge, then finishes with a transaction.
  • Added the ability to initialize the default wallet with the required meta parameters (needed to work with currencies).

Changed

  • Now the package works exclusively with strings, there are fewer problems when working with large numbers.
  • Now, to work with cryptocurrencies, it is not necessary to install bcmath.
  • JS documentation is no longer dependent on CDN, everything is collected in one bundle.
  • Updated the command to refresh the balance, now without a transaction for all wallets. Use carefully.
  • Currencies are now in "wallets.meta.currency", please do not use the config for these cases.
  • English documentation has been slightly improved.
  • Updated phpunit to support php 8.

Removed

  • Removed php 7.2 support.
  • Drop package laravel/legacy-factories.
  • Remove BCMath and Math classes.

Deprecated

  • The key in the currencies config will be removed in 7.x. Use "wallet.meta.currency".
laravel-wallet - 6.0.0+alpha1

Published by rez1dent3 about 4 years ago

Added

  • psalm (require-dev), but no annotations yet.
  • phpmetrics (require-dev).
  • Add method fresh to Storable interface.
  • Added more unit tests.

Changed

  • Now strictly php 7.3+.
  • All numbers are converted to a string.

Fixed

  • Now all tests for MySQL, Postgres pass.

Removed

  • docker-compose.yaml file.
  • Package laravel/legacy-factories from composer require-dev.
  • class BCMath.
  • class Math.
laravel-wallet - 5.5.0

Published by rez1dent3 about 4 years ago

Added

  • Added brick/math dependency (Optional in version 5.x. If you already have a package installed, the library will switch to it automatically)
  • Added more php annotations, now it's easier to work with the library.
  • Updated travis. Now we check not only SQLite, but also mysql & postgres.

Fixed

  • Fixed memory leak in models.

Deprecated

  • class BCMath.
  • class Math.
laravel-wallet - 5.4.0

Published by rez1dent3 about 4 years ago

Added

  • Temporarily added package (to develop) laravel/legacy-factories.

Changed

  • PHP 7.3+ support, 7.2 is no longer supported.
  • Formatted code using StyleCI.
  • The mysql/postgres balance refresh command no longer performs a single request update.
  • If you use standard laravel transactions and open it, the library will not open a new transaction.
    This removes a lot of errors that were sent to my email.
  • Removed automatic creation of the default wallet when calling createWallet. #218

Fixed

  • Fixed migrations for unit tests (your app should not be affected).
  • Fixed nested transactions in databases. This is now one transaction.
  • Fixed risk in unit tests for the postgres database.
laravel-wallet - 5.3.2

Published by rez1dent3 about 4 years ago

Added

  • Add support laravel ~8.0
  • Dependency Allowed illuminate/database ^8.0
  • Dependency Allowed doctrine/dbal ^3.0
  • Dependency Allowed infection/infection 0.17.*
  • Added new unit tests
laravel-wallet - 5.3.1

Published by rez1dent3 about 4 years ago

Fixed

  • Fixed migration issue with db table prefix #195 @reedknight @cispl-shaswatad
laravel-wallet - 5.3.0

Published by rez1dent3 about 4 years ago

Added

  • Add resetConfirm, safeResetConfirm methods (unconfirmed).
  • Allow default migrations to be ignored. #189 @driangonzales
laravel-wallet - 5.2.1

Published by rez1dent3 over 4 years ago

Added

  • Added support laravel/cashier ^12.0
laravel-wallet - 5.2.0

Published by rez1dent3 over 4 years ago

Added

  • Added support laravel/cashier ^11.0
laravel-wallet - 5.1.0

Published by rez1dent3 over 4 years ago

Added

  • Added support ramsey/uuid ^4.0

Fixed

  • pg12 support
Package Rankings
Top 1.53% on Packagist.org
Badges
Extracted from project README
Maintainability Test Coverage Financial Contributors on Open Collective Mutation testing badge Latest Stable Version Latest Unstable Version License composer.lock Sparkline Supported by JetBrains
Related Projects