The Email Validator library builds upon PHP’s built in filter_var($emailAddress, FILTER_VALIDATE_EMAIL);
by adding a default MX record check. It also offers additional validation against disposable email addresses, free email address providers, and a custom banned domain list. Continue reading
Author Archives: John Conde
Going Deeper Into Email Address Validation
We all recognize an email address when we see one. They are comprised of a unique identifier, the @ symbol and a domain name (i.e. example.com). But is it really that simple? Can you tell which of the following email addresses are valid and which ones are not? Continue reading
PHP Simple Encryption
Encryption is a complicated topic and one that, when done incorrectly, could result in sensitive data being exposed to bad actors or lost due to an inability to decrypt that data at a later date. The PHP Simple Encryption library is designed to simplify the process of encrypting and decrypting data while ensuring best practices are followed. By default is uses a secure encryption algorithm and generates a cryptologically strong initialization vector (more on that later) so developers do not need to become experts in encryption to securely store sensitive data. Continue reading
Handling Authorize.Net’s Webhooks with PHP
On December 1st, 2016, Authorize.Net announced support for Webhooks. What is a Webhook? A WebHook is an HTTP callback: an HTTP POST that occurs when something happens; a simple event-notification via HTTP POST. Continue reading
Using Reflection for Better Unit Testing in PHP
Reflection is often used as part of software testing that requires the runtime creation/instantiation of mock objects. It’s also great for inspecting the state of an object at any given point in time. Here’s an example of using Reflection in a unit test to verify a protected class member contains the expected value. Continue reading