Download the PHP package alanzhaonys/cellbrush without Composer

On this page you can find all versions of the php package alanzhaonys/cellbrush. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cellbrush

Build Status

Cellbrush table generator

A library to generate HTML tables with PHP.

Table structure:

Tag attributes:

API design:

Basic usage

A simple 3x3 table with the diagonal cells filled.

Diag 0
Diag 1
Diag 2

Too verbose? Look for "Shortcut syntax" below.

Cells in thead and tfoot

A table like above, but with added thead section.

Column names are shared between table sections, but new rows need to be defined for each section.

H0H1H2
Diag 0
Diag 1
Diag 2

Additional tbody sections

By default, every addRowName() and td() or th() goes into the main tbody section.

So, the following two are equivalent:

More named tbody sections can be added like this:

Again, the column definitions are shared between table sections, but row definitions need to be added separately.

Full rowspan and colspan

To let a cell span the entire width of the table, simply set the column name to ''. Likewise, set the row name to '' to span the entire height of the table section.

Horizontal cell in thead.
#Vertical cell#
##
##

Column groups

Named column groups allow for cells with colspan. In the below example, the column name "products" specifies a colspan cell that spans all 3 products.* cells, whereas "products.a", "products.b" and "products.c" specifies specific cells without colspan.

LegendProducts
Product nameProduct AProduct BProduct C
Width55 cm102 cm7 cm

Row groups

Similar to column groups.

Product 0Product 1
DimensionsWidth2cm5cm
Height14g22g
Price7,- EUR5,22 EUR

Combination of row groups and column groups

NameColorPrice
BananaA yellow fruit.
yellow60 cent
CoconutHas liquid inside.
brown3 dollar

Nested groups

Groups can have unlimited depth.

top
bottom leftB.T / R
B.B / R.LB.B.T / R.R
B.B.B / R.R.LB.B.B / R.R.R

Open-ended cells

Open-end cells allow overlapping colspan cells, like bricks in a wall.

0 1 2 3 4 5 6 7
0..2 3..4 5 6..7
0..1 2..3 4..6 7

Shortcut syntax with row handles and column handles

RowHandle and *ColHandle allow you to omit one of $rowName and $colName to address a table cell.

Column 0Column 1Column 2
Row 0Diag 0
Row 1Diag 1
Row 2Diag 2

Row classes

Row classes can be added quite easily with addRowClass().

Row striping

Row striping classes can be added to a table section with addRowStriping().

The default striping is ['odd', 'even'], but different patterns can be added with three or more stripes.

The striping always applies to a table section. By default, this wil be the main tbody section.

Column classes

You can use addColClass() to add a class to all cells of a column. This can be done either for all table sections at once, or for specific table sections.

Cell classes

Use addCellClass() to add classes to individual cells.

Column Reordering

Columns can be reordered even after the cells are already added.

Diag 0
Diag 1
Diag 2
Diag 0
Diag 1
Diag 2

More examples?

You can see more examples in the unit tests.

Planned features

Next steps:


All versions of cellbrush with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alanzhaonys/cellbrush contains the following files

Loading the files please wait ....