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.
Singleton Pattern in PHP: Refactoring Global State the Right Way

Singleton Pattern in PHP: Refactoring Global State the Right Way

1
Comments
4 min read
PHPUnit: Mock sleep() in 2 Ways Without Waiting

PHPUnit: Mock sleep() in 2 Ways Without Waiting

Comments
2 min read
PHP CSV: Convert Scientific Notation Back to Decimal

PHP CSV: Convert Scientific Notation Back to Decimal

Comments
1 min read
Mock IteratorAggregate with Mockery to Fix foreach in Tests

Mock IteratorAggregate with Mockery to Fix foreach in Tests

Comments
1 min read
PHPUnit: Test Closures with Mockery::spy

PHPUnit: Test Closures with Mockery::spy

Comments
1 min read
Laravel LazyCollection Loses Lazy Evaluation with Generator

Laravel LazyCollection Loses Lazy Evaluation with Generator

Comments
1 min read
Optimizing Eloquent Queries with Eager Loading and Model Logic Extraction

Optimizing Eloquent Queries with Eager Loading and Model Logic Extraction

1
Comments
2 min read
Building a Viral Video Detection Algorithm in PHP

Building a Viral Video Detection Algorithm in PHP

Comments
3 min read
Full GitHub Sync for New Users in Landing

Full GitHub Sync for New Users in Landing

Comments
1 min read
LiVue: Use Vue 3 Directives in Laravel Blade Templates

LiVue: Use Vue 3 Directives in Laravel Blade Templates

1
Comments
6 min read
PHPUnit for VSCode 3.0: VS Code Testing API and Docker

PHPUnit for VSCode 3.0: VS Code Testing API and Docker

1
Comments
1 min read
Why Laravel min/max Fails on Numbers: Add the numeric Rule

Why Laravel min/max Fails on Numbers: Add the numeric Rule

Comments
1 min read
Use Laravel Container bind to Inject Any Third-Party Package

Use Laravel Container bind to Inject Any Third-Party Package

Comments
1 min read
Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify

Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify

Comments
1 min read
Fix macOS PHP NSCFConstantString Fork Error with One Env Var

Fix macOS PHP NSCFConstantString Fork Error with One Env Var

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