arkitect
Brick\Math
arkitect | Brick\Math | |
---|---|---|
8 | 10 | |
675 | 1,747 | |
1.9% | 1.4% | |
8.0 | 7.4 | |
about 1 month ago | 9 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
arkitect
-
Enforce architecture rules with Deptrac
PHPArkitect
-
PHP libraries and tools
PHPArkitect: Put your architectural rules under test!
- Assert array contains all classes in directory
-
Deptrac - architectural code analysis
I don't like the yaml config so we use https://github.com/phparkitect/arkitect
-
PHPArkitect: Put your architectural rules under test!
wget [https://github.com/phparkitect/arkitect/releases/latest/download/phparkitect.phar](https://github.com/phparkitect/arkitect/releases/latest/download/phparkitect.phar) chmod +x phparkitect.phar ./phparkitect.phar check
-
arkitect VS PHP Architecture Tester - a user suggested alternative
2 projects | 16 Sep 2021
-
Push and publish Docker images with GitHub Actions
So for this reason, in one open-source project Arkitect where Iām contributing nowadays, we have a Dockerfile that needs to be published every time there is a push on master, or a new release comes out.
Brick\Math
-
PHP libraries and tools
brick/math: Arbitrary-precision arithmetic library for PHP
-
PHP is trolling me
Use strings. For PHP specifically, the Brick/Math library.
-
[ELI5] Why is it bad to compare floats directly for equality?
There are excellent wrappers for this like https://github.com/brick/math
-
Need Guidance for my Passionate Ecommerce Project
https://github.com/brick/math to handle bignumber and operations
-
How are you handling your money?
In Java and Ruby, BigDecimal is an inbuilt class that can be used. For PHP, you can checkout the Brick Math Library Basically, just find the arbitrary-precision Decimal type/Class/Library in your choice of language. Got another approach, please do let me know in comment section.
- Weekly "ask anything" thread
-
What are the latest thoughts on storing and working with very large and very small financial transactions?
I decided to use https://github.com/brick/math and store the amount as a string in the database. My project use NANO, so that's 30 decimal points to keep. Number type column is not the choice at all.
-
Vote for enums in PHP 8.1 has started ā looking good so far!
There are many use cases where enums don't need to be backed by a scalar. I'm thinking of brick/math's RoundingMode for example: you use these in code, but never store/serialize them really.
-
(int) (round(19.33, 2) * 100) = 1932 - can someone please explain this to me?
Besides, using an arbitrary-precision library gives you an unlimited number of digits, and, in the case of brick/math, many more rounding modes to choose from. And predictable ones.
What are some alternatives?
PHP Architecture Tester - PHP Architecture Tester - Easy architecture testing for PHP :heavy_check_mark:
decimal-object - Decimal handling as value object instead of plain strings.
ghaction-docker-meta - GitHub Action to extract metadata (tags, labels) for Docker [Moved to: https://github.com/docker/metadata-action]
BigNum-PHP - BigNum library for PHP compatible with bn.js
buildx - Docker CLI plugin for extended build capabilities with BuildKit
PHP Parser - A PHP parser written in PHP
soap-client - A general purpose SOAP client for PHP
Brick\Money - A money and currency library for PHP
phpinsights - š° Instant PHP quality checks from your console
ip - Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
build-push-action - GitHub Action to build and push Docker images with Buildx
Money - PHP implementation of Fowler's Money pattern.