Download the PHP
package artbit/base_convert without Composer
On this page you can find all versions of the php package
artbit/base_convert. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor artbit Package base_convert Short Description Base conversion utility that supports number bases from 2 to 64 (PHP's builtin base_convert supports number bases from 2 through 36) License
MIT Homepage https://github.com/artbit/base_convert
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.
PHP's built in base_convert function supports bases ranging from 2 to 36. This library expands that range to 2 to 64.
Usage
Convert a number 100 from decimal to hexadecimal (from base 10 to base 16):
...and back:
Custom alphabets
Instead of integer bases, you can pass in the alphabet string to use for conversion (since integer bases are converted to alphabet strings anyways, i.e. hexadecimal alphabet is simply "0123456789abcdef").
Here we convert from base 10 to alphabet 'customizable'
Here we convert from alphabet 'customizable' to alphabet 'isogram'
And from alphabet 'isogram' back to base 10
So both slmmmmcui and rorsirrioig, but also 1234567890 describe the same value, but in different alphabets.
NOTE: All alphabets must be isograms
An isogram (also known as a "nonpattern word") is a logological term for a word or phrase without a repeating letter. Conveniently, the word isogram is an isogram as well.
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 artbit/base_convert contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.