Skip to content

A lib that take a base 10 integer and turns it into a base 26 alphabet string

License

Notifications You must be signed in to change notification settings

dcarbone/php-int-to-alpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-int-to-alpha

A lib that take a base 10 integer and turns it into a base 26 alphabet string

Thanks to:

The logic contained within this lib was inspired by this post: http://www.geeksforgeeks.org/find-excel-column-name-given-number/

Installation

This lib requires the use of Composer

Require entry:

    "dcarbone/php-int-to-alpha": "1.0.*"

Usage

$alpha = \DCarbone\IntToAlpha::invoke($integer);
echo $alpha;

// OR

$intToAlpha = new \DCarbone\IntToAlpha();

$alpha = $intToAlpha($integer);

About

A lib that take a base 10 integer and turns it into a base 26 alphabet string

Resources

License

Stars

Watchers

Forks

Packages

No packages published