Download the PHP package studiow/table without Composer

On this page you can find all versions of the php package studiow/table. 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 table

Table

A helper package for generating HTML tables

Usage

Basic usage

Columns

Defining columns is where most of the fun happens. Most of the time you can use the factory method

is a shorthand for

You can use your own special column types by implementing the \Studiow\Table\ColumnInterface interface.

Column handlers

Column handlers can be either a string or a callable. When the handler is a callable, the value will be the result of the callback applied to the rowdata

When the handler is a string, the script will try to find a value. Consider this example:

When calculating the value we'll check first to see if $rowData is an array or arrayObject. If this is the case, well try to find $rowData['post_title]. If $rowData is an object, we'll check if $rowData has a public property called $post_data. Finally we'll try and call a method called getPostTitle on $rowData to get the value

Known Issues and todo's

Todo: provide better documentation and tests

There are a lot of possibilities with the package which are not documented and tested enough at the moment, will need a lot more examples

Todo: support colgroup, tfoot etc.

Todo: render to template engine(s)

Provide a way to extract the data from the table so that a template system can use it

Standard warning about rendering HTML

If you find yourself rendering large pieces of HTML within a PHP script, you'd probably be better of using a template system.


All versions of table with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
studiow/html Version ^1.0
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 studiow/table contains the following files

Loading the files please wait ....