morilog/bijective-shortener-cli

PHP Bijective Shortener CLI

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/morilog/bijective-shortener-cli

v0.1.2 2018-12-30 13:40 UTC

This package is auto-updated.

Last update: 2025-09-29 02:49:01 UTC


README

Installation

composer global require morilog/bijective-shortener-cli

Usage

Encode integer number

// With default characters set

$ bshort 200
// output: AF


// With custom characters set

$ bshort 200 --set-chars=abcdefg 
// output: eae 

Decode encoded number

// With default characters set

$ bshort AF --decode
// output: 200

// With custom characters set

$ bshort eae --decode --set-chars=abcdefg
// output: 200

For more information about Bijective shortener functionality, please see Reshadman/Php-Bijective-Shortener