dcarbone/php-int-to-alpha

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

Installs: 1 556

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dcarbone/php-int-to-alpha

1.0.0 2016-03-10 22:40 UTC

This package is auto-updated.

Last update: 2025-09-17 11:41:19 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);