PHPackages                             cmfcmf/column-width-calculator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cmfcmf/column-width-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cmfcmf/column-width-calculator
==============================

Calculate "perfect" table column widths in PHP.

1.0.0(12y ago)51.1k1GPLv2PHPPHP &gt;=5.3

Since Jun 25Pushed 12y ago1 watchersCompare

[ Source](https://github.com/cmfcmf/ColumnWidthCalculator)[ Packagist](https://packagist.org/packages/cmfcmf/column-width-calculator)[ RSS](/packages/cmfcmf-column-width-calculator/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ColumnWidthCalculator
=====================

[](#columnwidthcalculator)

Calculate "perfect" table column widths in PHP, based on [my question at StackOverflow](http://stackoverflow.com/q/24394787/2560557) and [@watcher's](http://stackoverflow.com/users/697370/watcher) [answer](http://stackoverflow.com/a/24395075/2560557).

### How to use

[](#how-to-use)

`$rows` needs to be an array of rows. Each `$row` needs to be an array of cells. Each `$cell` needs to have the cell's content in it.

```
