AbcAeffchen / SepaUtilities

SepaUtilities provides useful methods for validating and sanitizing inputs used in SEPA files supporting PHP >= 7.2 including PHP 8.
GNU Lesser General Public License v3.0
30 stars 10 forks source link
php sanitizer sepa

SepaUtilities

Unit Tests Latest Stable Version Total Downloads License Gitter

General

SepaUtilities is a PHP class to check and sanitize inputs used in SEPA files such as IBAN numbers, creditor identifiers, names and other text.

PHP Versions

SepaUtilities supports PHP >= 7.2 including PHP 8.

Installation

Composer

You can get SepaUtilities via Composer. Just add

{
    "require": {
        "abcaeffchen/sepa-utilities": "^1.3"
    }
}

to your composer.json.

Direct download

If you don't use Composer, you can download SepaUtilities.php and just include it into your PHP files. Make sure you use the namespace AbcAeffchen\SepaUtilities\.

The Utilities

Have a look at the documentation.

Checks

The $options take an array

Sanitizing

Wrappers

Date functions

Patterns

The HTML_PATTERN_* constants can be used as HTML5 pattern attribute. It is user friendlier than the corresponding PATTERN_* as they allow lowercase characters and whitespaces. This is corrected by the check methods.

Licence

SepaUtilities is licensed under the LGPL v3.0 License.