Download the PHP package hylianshield/validator-base-encoding without Composer

On this page you can find all versions of the php package hylianshield/validator-base-encoding. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package validator-base-encoding

Introduction

The base encoding validators allow the user to validate base64, -32 and -16 encoded messages. The validator will test if the string is encoded in the requested encoding.

Validators will validate against the specification of RFC 4648.

Additionally, the Base32 Crockford implementation is supported.

Installation

Usage

The encoding validators can be configured to require padding or make it optional. Additionally, some implementations require that partitioning will be supported.

The RFC section on the interpretation of non-alphabet characters states:

Implementations MUST reject the encoded data if it contains characters outside the base alphabet when interpreting base-encoded data, unless the specification referring to this document explicitly states otherwise. Such specifications may instead state, as MIME does, that characters outside the base encoding alphabet should simply be ignored when interpreting data ("be liberal in what you accept"). Note that this means that any adjacent carriage return/ line feed (CRLF) characters constitute "non-alphabet characters" and are ignored.

Therefore, the constructors of the validators have the following signature:

With the exception of the Base16Validator, which does not use padding and therefore omits the first parameter, as well as the Base32CrockfordValidator, which requires padding and as such omits it as well.

Padding validation

CRLF validation

Supported encodings

Validators are defined in the \HylianShield\Validator\BaseEncoding namespace.

Base 64 encoding

Attribute Value
Name base64
Specification RFC 4648 - Section 4
Padding = (optional)
Partitioning \r\n (optional)

Signature

Base 64 Encoding with URL and Filename Safe Alphabet

Attribute Value
Name base64url
Specification RFC 4648 - Section 5
Padding = (optional)
Partitioning \r\n (optional)

Signature

Base 32 encoding

Attribute Value
Name base32
Specification RFC 4648 - Section 6
Padding = (optional)
Partitioning \r\n (optional)

Signature

Base 32 Encoding with Extended Hex Alphabet

Attribute Value
Name base32hex
Specification RFC 4648 - Section 7
Padding = (optional)
Partitioning \r\n (optional)

Signature

Crockford's Base 32

Attribute Value
Name base32crockford
Specification Crockford's Base 32 specification
Padding 0 (required)
Partitioning - (optional)

Signature

Base 16 encoding

Attribute Value
Name base16
Specification RFC 4648 - Section 8
Padding No padding
Partitioning \r\n (optional)

Signature


All versions of validator-base-encoding with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
hylianshield/validator-alphabet Version ^1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hylianshield/validator-base-encoding contains the following files

Loading the files please wait ....