Download the PHP package covaleski/data-encoding without Composer

On this page you can find all versions of the php package covaleski/data-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 data-encoding

Data Encoding

PHP complete implementation of RFC 4648. Provides methods for data encoding and decoding in multiple bases - including custom encoding.

Uses bitwise operations to provide faster processing than string functions would do.

Note that both base16 and base64 encoding styles are already natively supported by PHP through base64_encode/base64_decode and bin2hex/hex2bin functions.

1 Installation

2 Usage

The following encoding styles - defined in RFC 4648 - are natively provided by this library:

You can easily extend the Encoder class to create custom encoding styles. See 2.3 Creating custom encodings.

2.1 Encoding

Encoding is available through the encode() static method in all encoder classes listed above.

2.2 Decoding

Decoding is available through the decode() static method in all encoder classes listed above.

2.3 Creating custom encodings

For custom encoding, you must extend the Encoder class and set the following properties (all static):

Example with ASCII alphabet:

Example with Unicode alphabet:

3 Testing

Tests were made with PHPUnit. Use the following command to run all of them.


All versions of data-encoding with dependencies

PHP Build Version
Package Version
No informations.
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 covaleski/data-encoding contains the following files

Loading the files please wait ....