Posts marked with “php”

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 […]

 

Education Station: Deeper into the Streams

by · February 8, 2021

0
 

As I wrote last month, streams are an important feature of PHP used quite a bit without most developers ever noticing. While developers can use them to help optimize read and write operations, they are also useful for working with incoming requests and data manipulation.

 

PHP Puzzles: Environmental Noise

by ·

0
 

This month, we wrap up our grid maze theme by adding some noise or empty space to our grid that already contains a path from the entrance to the exit. The idea is to approximate an environment map for a tabletop game.

 

Front-end frameworks, dev lead duties, subresource security, and more

by · January 25, 2021

0
 

Listen to Eric, John, and Oscar discuss the articles in the January 2021 issue, Newfangled Views. Topics Covered Front-end coding with Vue and React. Responsibilities when you’re a development lead Security of third-party resources Learning new skills and avoiding burnout. Mimicking AWS S3 with Minio  

 

Interview with Chris Tankersley

by · January 22, 2021

0
 

Eric and John talk to long-time contributor Chris Tankersley about contributing to the magazine and more. Topics Covered Getting started in programming and web development with PHP. Docker and using it across operating systems. Developing with PHP and the ecosystem around it. What kind of things he tries to cover in Education Station for self-taught […]

 

Sustainable PHP: Database Playback Testing

by · January 8, 2021

0
 

While completing the Deep Analysis we discussed last month, I was faced with the inability to test. That’s because—I discovered–accounting data cannot be erased—even in the sandbox. There’s no way to begin each test with a clean test environment. This month we walk through a relatively convoluted solution. We’ll capture the accounting data as we […]

 

The Workshop: S3 Storage with MinIO

by ·

0
 

This month, we’re diving into running our own S3 compatible open-source server via the open-source project MinIO. We’ll configure MinIO alongside our local development environment to quickly replicate our application’s integration with S3 object storage without operating on “production” storage buckets or having to set up “dev” buckets.