Senior Full-Stack Developer in Cancún, México. I build web products with PHP/Laravel, Vue 3, Inertia.js and AWS, and I contribute fixes to the PHP and Laravel open-source ecosystem.
Verifiable boundaries between the modules of a Laravel application, checked in CI.
Folders don't stop the Billing module from reaching into Catalog's models. Cordon Modulith parses your code statically (it never loads or runs it), builds the dependency graph between modules and fails the build when a module:
- uses internal classes of another module instead of its public API,
- depends on a module it did not declare, or
- takes part in a dependency cycle.
It works with nwidart/laravel-modules, InterNACHI/modular or a plain app/Modules folder, supports a baseline for existing projects, and also runs as a Pest expectation, a PHPStan rule and a GitHub Action. php artisan cordon:docs generates Mermaid diagrams of the real architecture.
composer require --dev chrisabner/cordon-modulith
php artisan cordon:verify📖 Documentation · 📦 Packagist · 💻 Repository
Selected merged pull requests:
- php/php-src#25286: in PHP 8.6,
array_map()with a first-class callable called the wrong function inside a namespace or withuse function. Fixed before the 8.6.0 release. - php/php-src#25383: with the tracing JIT,
++/--on a reference (global,static,&$v) could return its integer result read as a float, so4came back as4.4E-323. A regression since PHP 8.4.0, fixed in 8.4 and later. - laravel/cashier-stripe#1886: Cashier accepts
amount_offcoupons with aforeverduration, which Stripe allows again. - doctrine/DoctrineBundle#2324:
find()no longer refreshes managed entities on ORM < 3.7, which ran an extra query and discarded their unflushed changes. - pestphp/pest#2002: PHPUnit extensions can register event subscribers again in
--parallelmode (based on a fix proposed by @stsepelin in pestphp/pest#1685).
- PromoInvestor: fintech rates comparator for Mexico (Laravel, Laravel Cloud).
🌐 chrisabner.github.io · 💼 LinkedIn


