Category: input validation

An Alternative to Regular Expressions: agp-exp

Hardly any programmer escapes the need to use regular expressions in one form or another from time to time. For many, the pattern syntax can seem cryptic and forbidding. This tutorial will introduce a new pattern-matching engine, apg-exp—a feature-rich alternative to RegExp with an ABNF pattern syntax that is a l...

Sourcehunt: PHP7-Only Alternative to Laravel, HPKP, and More

Time to promote some open source projects again!paragonie/hpkp-builder [15 ★] This library aims to make it easy to build HTTP Public-Key-Pinning headers in your PHP projects, and requires at least PHP 7. HTTP Public Key Pinning, or HPKP, is a security policy delivered via a HTTP response header much like HSTS and ...

A Closer Look at Angular’s ngMessages Module

This article was peer reviewed by Marc Towler and Stephan Max. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Because of its ability to help developers craft better user experiences when building forms, the ngMessages module became a core directive with the release of Ang...

Validating your data with Respect Validation

Validation is an important aspect of every application’s interaction with data. Instead of reinventing the wheel every time, the community collaborated on some useful packages like Symfony, Laravel, Zend, etc. In this article, we’re going to introduce a new package called Respect Validation, which provides some nic...