Download the PHP package ocubom/base-convert without Composer

On this page you can find all versions of the php package ocubom/base-convert. 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 base-convert

Big Numbers Base Convert ======================== Safe number conversion between arbitrary bases. [![Contributors][contributors-img]][contributors-url] [![Forks][forks-img]][forks-url] [![Stargazers][stars-img]][stars-url] [![Issues][issues-img]][issues-url] [![License][license-img]][license-url] [![Version][packagist-img]][packagist-url] [![CI][workflow-ci-img]][workflow-ci-url] [![Code Quality][quality-img]][quality-url] [![Coverage][coverage-img]][coverage-url] [**Explore the docs »**](https://github.com/ocubom/base-convert) [Report Bug](https://github.com/ocubom/base-convert/issues) · [Request Feature](https://github.com/ocubom/base-convert/issues)
Contents * [About](#about-base-convert) * [Getting Started](#getting-started) * [Installation](#installation) * [Usage](#usage) * [Roadmap](#roadmap) * [Contributing](#contributing) * [Authorship](#authorship) * [License](#license)

About Base Convert

Base Convert performs safe number conversion between arbitrary bases. The conversion is performed with a custom implementation to avoid native PHP base_convert function float precision problem.

The implementation used is extracted from the Symfony UID component. The class BinaryUtil implements the necessary fromBase and toBase methods. These methods have been extracted to ensure compatibility (it is an internal class) and to reduce the minimum PHP version requirement.

Getting Started

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Usage

Just use like the native base_convert. Although the implementation is compatible with native conversion it provides some improvements:

Douglas Crockford Base 32 encoding

A secure version of the Base 32 encoding proposed by Douglas Crockford.

Note

The encoding scheme is required to

  • Be human-readable and machine-readable.

  • Be compact. Humans have difficulty in manipulating long strings of arbitrary symbols.

  • Be error resistant. Entering the symbols must not require keyboarding gymnastics.

  • Be pronounceable. Humans should be able to accurately transmit the symbols to other humans using a telephone.

-- Douglas Crockford. Base 32

This encoding is accessible:

An additional parameter can be added to include a checksum for error detection.

Satoshi Nakamoto Base 58 encoding

Bitcoin addresses use a variant of Base 64 that omits characters that can lead to confusion. The result is a Base 58 encoding.

Note

Why base-58 instead of standard base-64 encoding?

  • Don't want 0OIl characters that look the same in some fonts and could be used to create visually identical looking data.

  • A string with non-alphanumeric characters is not as easily accepted as input.

  • E-mail usually won't line-break if there's no punctuation to break at.

  • Double-clicking selects the whole string as one word if it's all alphanumeric.

-- Satoshi Nakamoto. Bitcoin source code

This encoding is accessible by passing a Base58 object as any of the base arguments of the base_convert function.

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/your-feature).
  3. Commit your Changes (git commit -m 'Add your-feature').
  4. Push to the Branch (git push origin feature/your-feature).
  5. Open a Pull Request.

Authorship

See also the list of contributors who participated in this project.

License

Distributed under the MIT License. See LICENSE for more information.

"PHP base_convert"
"Douglas Crockford's Base32 Encoding"
"PHP Floating point numbers"
"PHP GMP extension"
"PHP bin2hex"
"PHP hex2bin"
"PHP bindec"
"PHP decbin"

All versions of base-convert with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
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 ocubom/base-convert contains the following files

Loading the files please wait ....