Posts marked with “php”

Education Station: How to Build a REST API

by · May 12, 2021

0
 

Over the last few months, I have been slowly building toward something. As you have come along this text journey with me—which thankfully has no Grues—I have been putting into place all the knowledge that you need to start building a web API, and most importantly, to understand what that code will be doing. We […]

 

PHP Puzzles: Sending and Receiving Polybius Ciphers

by ·

0
 

Ciphers come in many different forms and have been used since ancient times to encode and decode vital messages. Today, we use complicated mathematics to encrypt and decrypt messages. Typically, we depend on shared and secret keys to ensure the message is only readable by the intended recipients. What if you don’t have the computing […]

 

Streamlining Behat

by ·

0
 

Behat, and feature tests overall, are crucial for giving you confidence that when you refactor code, you don’t change how an application works and for helping you understand how an application behaves in practice. Investing in integration and functional tests is worth it in the long term, and in this article, we’ll see how I […]

 

Let’s Discover Atoum

by ·

0
 

In the PHP world, if you ask most developers about testing frameworks, the first response you’ll get is PHPUnit. But there are several alternatives, and one of them is atoum. This article introduces you to atoum, the simple, modern, and intuitive unit testing framework! You will discover how to write fluent tests and execute them […]

 

On the Road to Long Living PHP

by ·

0
 

In the past ten years, PHP has undergone several transformations that made the language faster, stricter, and included support for a large variety of high-quality tooling. But, most importantly, the PHP community continued to mature as well, which led to the introduction of modern development practices, robust application architectures, and top-notch instruments.

 

Security Corner: Basics of Password Hashing

by · May 2, 2021

0
 

By Eric Mann Every web application that allows users to authenticate needs to ensure their users’ credentials are afforded the best protection possible. Conventionally, this is done by storing only the hash of a password rather than the password itself. Luckily, password hashing in PHP is secure, safe, and remarkably straightforward to implement. Last month […]

 

Security Corner: Basics of Password Hashing

by · April 9, 2021

0
 

Every web application that allows users to authenticate needs to ensure their users’ credentials are afforded the best protection possible. Conventionally, this is done by storing only the hash of a password rather than the password itself. Luckily, password hashing in PHP is secure, safe, and remarkably straightforward to implement.

 

Sustainable PHP: Machine Learning and Yoda

by ·

0
 

When you encounter extremely costly errors, take steps to prevent the error from happening in the future. The earlier we catch an error, the less expensive it is to fix. Here we discuss two costly situations: a typo in an if statement and upcoming PHP 8 breaking changes.

 

Education Station: Designing a REST API

by ·

0
 

APIs are a matter of life on the modern web. Modern web applications are no longer tasked with just rendering a web page. Our applications need to support various native client applications, or our applications may need to expose data to users. Developers face an increasing need to supply APIs as part of applications. As […]

 

About PHP’s Compromised Git Commit

by · April 1, 2021

0
 

PHP internals contributor Sara Golemon answers questions from a panel of php[architect] and PHP Ugly contributors about the recent git compromise that affected the PHP project and what they’re doing about it. You can also watch a video of the roundtable with Sara. More on This From Rasmus Lerdorf: It wasn't, but we caught it […]