Scalar Type Declarations and Return Types in PHP 7
A practical look at how I use the scalar type declarations and return types introduced in PHP 7, including what strict_types mode changes in practice.
Blog
My hands-on development journal: PHP and Laravel, Go, JavaScript and TypeScript, developer tools and career. Architecture writing lives in Engineering. (Page 16/17)
A practical look at how I use the scalar type declarations and return types introduced in PHP 7, including what strict_types mode changes in practice.
PHP 7.0 was released this week. I share my first impressions on the performance gains, scalar type declarations, and return types.
I built a PHP package from scratch and published it on Packagist so others could use it: package structure, composer.json, GitHub and the update webhook.
What middleware is in Laravel, how to write it, and how to centralize cross-cutting concerns like authentication in one place.
How to define hasMany and belongsTo relationships in Laravel Eloquent, and how to solve the N+1 query problem with eager loading.
How I set up a front-end workflow that automates Sass compilation, JavaScript bundling, and browser reloading with Gulp.
An introduction to the most impactful ES6 features — let, const, arrow functions, and template literals — with practical examples.
An overview of PHP 5.6's variadic argument support and the ** exponentiation operator, plus constant expressions and importing functions with use.
A practical walkthrough of building interface-agnostic JSON API endpoints in Laravel: routes, JSON responses, standardized errors, validation and headers.
Practical rules for making an API predictable through the triangle of resources, HTTP methods and status codes, with a real-world example.
A step-by-step walkthrough of setting up Laravel Homestead to eliminate the classic 'it works on my machine' problem across teams.
A walkthrough of the key changes when moving from Laravel 4 to 5 — directory layout, .env configuration, and application bootstrapping.