Posts marked with “php”

Sustainable PHP: Build A Composite

by · September 1, 2020

0
 

How might we keep the next PHP project from evolving into the dreaded Big Ball of Mud? This month we’ll explore and build a possible foundational structure, a “composite.” Then, having built out this structure, we’ll realize that we might still be over-engineering things a bit—but this structure remains a necessary step along the way.

 

The Workshop: Mail, Ngrok, and Xdebug in WSL

by ·

0
 

Last month we covered Windows Subsystem for Linux and this month we’re continuing the journey by demonstrating how to further work with our WSL distribution using tools such as Mailhog, Xdebug with PhpStorm and Visual Studio Code, and ngrok.

 

Education Station: Autoloading Your Code

by ·

0
 

Broadly speaking, autoloading is a mechanism for the loading code into your program on demand. If you look at a single request in your application, chances are it needs a different set of classes than another request. Where a “Login” action may use a controller, database class, and an authentication layer, a “Logout” action may […]

 

Serializing PHP Objects

by ·

0
 

PHP has many native ways to serialize objects, but not all of them are created equal. PHP 7.4 introduces what is hopefully the “one final way that will work this time.” Even so, the others aren’t going away any time soon.

 

Stacking Up Middleware

by ·

0
 

The shift towards API driven design has brought in all-new design patterns from traditional Model-View-Controller (MVC). Middleware pipelines are geared to address the complexities and nuances that arise with Application Programming Interfaces (APIs). This article delves into popular frameworks, discusses strategies for adding layers, handling authentication and authorization, and implications for projects. Learn all about […]

 

Education Station: Writing Concise Code

by · August 18, 2020

0
 

By Chris Tankersley There is a huge emphasis put on the code maintainability, and for a good reason. The programming industry is rife with what we like to term “legacy code,” which boils down to code that solves a business problem, but we, as the current maintainers, do not understand. No language is safe from […]

 

Education Station: Calling All Callables

by ·

0
 

By Chris Tankersley When facing a challenging problem, you want a flexible codebase that adapts quickly. Object-oriented programming facilitates it by giving you the power through inheritance, encapsulating code in reusable objects, and generally making them work for your application as you see fit. However, we can find flexibility in other programming approaches. Languages such […]

 

finally{}: What’s in PHP Eight?

by ·

0
 

By Eli White While much of the world shuts down, the PHP core developers have been hard at work preparing for the release of PHP 8.0 at the end of this year! The feature freeze is in just a few months (July 28th), so this is the exciting time when there is a push to […]

 

The Business Of PHP

by ·

1
 

By Sherri Wheeler Among the many strategic decisions a business needs to make, one which we as developers are involved with is the choice of tech stack—the tools and technologies used for software development. When choosing a backend language, PHP presents its list of strengths and weaknesses; this article examines these from a business perspective. […]

 

Community Corner: PHP 8 Release Managers: Interview with Sara Golemon and Gabriel Caruso, Part Two

by · August 6, 2020

0
 

In part two, I continue chatting with the PHP 8 Release Managers about PHP Internals, preparing a new release, the evolution of the language, and where it might go in the future.