concrete/src/Console/OutputStyle.php
public function columns(array $values, $width = 5, $tableStyle = 'compact', array $columnStyles = [])
    {
        $table = new Table($this);
        $table->setHeaders([])->setRows(iterator_to_array($this->chunk($values, $width)))->setStyle($tableStyle);

        foreach ($columnStyles as $columnIndex => $columnStyle) {
            $table->setColumnStyle($columnIndex, $columnStyle);
        }

        $columnWidths = $this->getColumnWidths($width);
        $table->setColumnWidths($columnWidths);

        $table->render();
    }
public function columns(array $values, $width = 5, $tableStyle = 'compact', array $columnStyles = [])
    {
        $table = new Table($this);
        $table->setHeaders([])->setRows(iterator_to_array($this->chunk($values, $width)))->setStyle($tableStyle);

        foreach ($columnStyles as $columnIndex => $columnStyle) {
            $table->setColumnStyle($columnIndex, $columnStyle);
        }

        $columnWidths = $this->getColumnWidths($width);
        $table->setColumnWidths($columnWidths);

        $table->render();
    }
public function columns ( array $ values , $ width = 5 , $ tableStyle = 'compact' , array $ columnStyles = [ ] ) { $ table = new Table ( $ this ) ; $ table -> setHeaders ( [ ] ) -> setRows ( iterator_to_array ( $ this -> chunk ( $ values , $ width ) ) ) -> setStyle ( $ tableStyle ) ; foreach ( $ columnStyles as $ columnIndex => $ columnStyle ) { $ table -> setColumnStyle ( $ columnIndex , $ columnStyle ) ; } $ columnWidths = $ this -> getColumnWidths ( $ width ) ; $ table -> setColumnWidths ( $ columnWidths ) ; $ table -> render ( ) ; }
Output in even width columns

@param array $values
@param int $width
@param string $tableStyle
@param array $columnStyles
Output in even width columns