dcarbone / php-int-to-alpha
A lib that take a base 10 integer and turns it into a base 26 alphabet string
Installs: 1 511
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is auto-updated.
Last update: 2024-11-17 09:54:58 UTC
README
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);