Brick\Money VS PHPStan

Compare Brick\Money vs PHPStan and see what are their differences.

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Brick\Money PHPStan
15 62
1,769 13,474
0.3% 0.6%
6.2 9.9
4 months ago 1 day ago
PHP PHP
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

Brick\Money

Posts with mentions or reviews of Brick\Money. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-18.
  • Introducing Bag 1.0: Immutable Values Objects for PHP
    3 projects | dev.to | 18 May 2024
    For the last couple of years I’ve been using Value Objects in my projects to bring language-level strict types to what would typically be array data structures in my code. From method inputs to JSON API responses, value objects have almost entirely replaced arrays throughout. The ability to get runtime type checking and IDE auto-complete has eliminated many potential bugs, from key typos, to assigning an incorrectly typed value by accident: what type is an “amount” property in a credit card transaction API response? An integer of cents (or other minor units), a Money object such as brick/money or moneyphp/money? Or worst of all, a float?
  • PHP libraries and tools
    47 projects | dev.to | 18 Oct 2023
    brick/money: A money and currency library for PHP
  • Weekly help thread
    1 project | /r/PHP | 15 May 2023
    1 - Floating point is not always great for money operations and can introduce odd rounding errors - https://www.php.net/manual/en/language.types.float.php - you might want to use something like this: https://github.com/brick/money
  • PHP is trolling me
    5 projects | /r/webdev | 3 May 2023
    He should have said to use Brick/Money https://github.com/brick/money which is based on Brick/Math but is specifically money related.
  • How to format prices?
    1 project | /r/PHPhelp | 26 Apr 2023
    If you don’t want to do the integer conversions yourself, I highly recommend looking at: https://github.com/brick/money
  • Which native PHP features do you regret not knowing about/adapting earlier?
    5 projects | /r/PHP | 5 Aug 2022
    brick/date-time is great! I personally prefer its interface and functionality over Carbon's. I also really like his money library
  • Financial values in PHP
    4 projects | /r/PHPhelp | 19 May 2022
  • Best way to handle PHP float issue
    2 projects | /r/PHP | 19 May 2022
    Is the most popular, but https://github.com/brick/money is preferrable IMO. One of the reasons is that it handles not just money, but all arbitrary precision calculations independent of currecy via brick/math.
  • Dealing with money
    4 projects | /r/laravel | 31 Dec 2021
  • Weekly "ask anything" thread
    3 projects | /r/PHP | 14 Sep 2021

PHPStan

Posts with mentions or reviews of PHPStan. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-04.
  • PHP: errors to avoid with constructors
    2 projects | dev.to | 4 Mar 2025
    PHPStan: composer require --dev phpstan/phpstan
  • Build a Symfony 7 boilerplate using FrankenPHP, Docker, PostgreSQL and php 8.4
    11 projects | dev.to | 23 Dec 2024
    To do so simply install the runtime/frankenphp-symfony composer package. Then we install the bare minimum for a kick ass developer experience, a linter using Code Sniffer, phpstan as code quality audit tool, Rector to ease and automate code maintenance, some useful Symfony components and package and of course the Doctrine ORM. Here the composer.json file located at the symfony folder root.
  • How to Avoid Adding New Code that Uses Deprecated Code?
    2 projects | dev.to | 25 Jun 2024
    At DinnerBooking, we've tackled this challenge using PHPStan. Here’s how:
  • Rector keeps your PHP code base fresh and perfect
    2 projects | dev.to | 15 Mar 2024
    As part of the journey to PHP perfection, you should embrace Rector. It's a amazing, free, and open-source tool for migrations, code quality, type coverage, pushing PHPStan to the highest levels, and yes, it can even auto-fix your existing code! It seamlessly integrates into the CI process, making your development workflow smoother than ever.
  • 8 Essential Tools Every PHP Developer Needs
    6 projects | dev.to | 27 Feb 2024
    PHPStan focuses on finding errors in PHP code without running it. It captures all types of errors, even before you write tests. It brings PHP closer to compiled languages by checking the correctness of each line of code before execution.
  • Laravel code-quality tools
    16 projects | dev.to | 8 Feb 2024
    PHPStan is a static analysis tool for PHP. Larastan is a package built on top of PHPStan to make it easier to integrate with Laravel projects. PHPStan works by "sniffing" the code using the various rulesets applied to it and determine if it follows the standards. However, Larastan doesn't fully follow the definition of "static analysis" since it has to boot the application's container and resolve the types that can only be computed at runtime. This is why Larastan is called a "code analysis" tool rather than a "static analysis" tool.
  • PHP 8.3
    3 projects | news.ycombinator.com | 24 Nov 2023
  • PHP libraries and tools
    47 projects | dev.to | 18 Oct 2023
    PHPStan: PHP Static Analysis Tool - discover bugs in your code without running it! Plugins: ergebnis/phpstan-rules: Provides additional rules for phpstan/phpstan. spaze/phpstan-disallowed-calls: PHPStan rules to detect disallowed calls and constant & namespace usages roave/no-floaters: static analysis rules to prevent IEEE-754 floating point errors. dave-liddament/php-language-extensions: Attributes to define PHP language extensions (to be enforced by static analysis) sidz/phpstan-rules: Additional rules for phpstan/phpstan. staabm/phpstan-baseline-analysis: Analyzes PHPStan baseline files and creates aggregated error trend-reports More extensions
  • Writing Custom PHPStan Rule to prohibit business logic in controllers
    1 project | dev.to | 21 Jul 2023
    So, in this article we have written a fairly simple but functional rule for PHPStan. We have discussed the basics of PHPStan and now we can cover our project with more complex tests. I also recommend reading the developer documentation. It won't take you long to learn more rule development features.
  • Secure coding
    1 project | /r/PHPhelp | 5 Jul 2023
    You could try something like PHP Stan. It scans your code for defects and lists them all for you. It probably won't catch everything, but it'll certainly help, and it's free

What are some alternatives?

When comparing Brick\Money and PHPStan you can also consider the following projects:

Money - PHP implementation of Fowler's Money pattern.

Psalm - A PHP static analysis tool for finding errors and security vulnerabilities in PHP applications

Brick\Money - A money and currency library for PHP

phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.

Laravel - The Laravel Framework.

PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured

Did you know that PHP is
the 14th most popular programming language
based on number of references?