DEV Community

PHP

Home for all the PHP-related posts on Dev.to!

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Aggregate Roots: Why Your Entity Needs a Private Constructor in PHP

Aggregate Roots: Why Your Entity Needs a Private Constructor in PHP

Comments
8 min read
The Outer Ring: Why Your Framework Is Actually Replaceable

The Outer Ring: Why Your Framework Is Actually Replaceable

Comments
9 min read
Domain Services in PHP: The Rare Class That Actually Belongs in Your Domain

Domain Services in PHP: The Rare Class That Actually Belongs in Your Domain

Comments
8 min read
PSR-7 Is the Right Shape for Your HTTP Adapter, Even in Laravel

PSR-7 Is the Right Shape for Your HTTP Adapter, Even in Laravel

Comments
8 min read
Composer Autoloading for Hexagonal PHP: A Namespace Plan That Holds

Composer Autoloading for Hexagonal PHP: A Namespace Plan That Holds

Comments
9 min read
Aggregates in PHP: The Boundary Most Teams Get Wrong

Aggregates in PHP: The Boundary Most Teams Get Wrong

Comments
9 min read
The Anti-Corruption Layer: Integrating Legacy PHP Without Catching Its Diseases

The Anti-Corruption Layer: Integrating Legacy PHP Without Catching Its Diseases

Comments
9 min read
Stop Passing Eloquent Models to Blade

Stop Passing Eloquent Models to Blade

Comments
7 min read
Migrate Eloquent Models to Domain Entities Without a Big-Bang Rewrite

Migrate Eloquent Models to Domain Entities Without a Big-Bang Rewrite

Comments
8 min read
DBAL Without an ORM: When a 50-Line Mapper Beats Doctrine

DBAL Without an ORM: When a 50-Line Mapper Beats Doctrine

Comments
9 min read
If Your Controller Is More Than 15 Lines, You Have a Use Case Hiding

If Your Controller Is More Than 15 Lines, You Have a Use Case Hiding

Comments
7 min read
CQRS in PHP: When Reads and Writes Stop Being the Same Thing

CQRS in PHP: When Reads and Writes Stop Being the Same Thing

Comments
9 min read
Pest vs PHPUnit for Use-Case Tests: Which One Hurts Less

Pest vs PHPUnit for Use-Case Tests: Which One Hurts Less

Comments
9 min read
The Specification Pattern in PHP: Querying Without Leaking SQL

The Specification Pattern in PHP: Querying Without Leaking SQL

Comments
9 min read
Bounded Contexts in PHP: Why Your App Should Be 4 Apps in One Codebase

Bounded Contexts in PHP: Why Your App Should Be 4 Apps in One Codebase

Comments
9 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.