Download the PHP package limu/ctablehelper without Composer

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

Scrutinizer Code Quality Code Coverage Build Status

CTableHelper

CTableHelper is a HTML Helper that helps you create HTML tables. It is written in PHP and is meant to be used with Anax-MVC.

Installation

You can install the class with Composer and Packagist by adding the the ctablehelper package to your composer.json file in your Anax-MVC:

Setup

Example file

In the webroot folder of ctablehelper, you will find an example file named . Move this file into your webroot folder of your Anax-MVC. It is a simple page controller for Anax-MVC and contains examples of html tables the module can create.

CSS file

Move from the ctablehelper/webroot/css folder to your css-folder in your Anax-MVC webroot (Anax-MVC/webroot/css). This is an optional step, but neccessary if you wish to use any of the premade table stylings.

Usage

Get Started

To include the class in your Anax-MVC project, use :

In page controller

In class/controller

Create a table

To create a new HTML Table you will use the method . The array are the table headers you wish to use. The multidimensional array (or object) contains the data that goes into the table cells. Each inner array represents one row in the table. The optional string is which class name (and thus which styling) you wish to assign to the HTML table.

Example (from )

Note

It is possible to use an empty array for if you wish to not use any table headers. However, if you choose to use headers, the number of headers must be the same as the number of arrays in , making the columns and headers match in numbers. Likewise, all rows must contain the same number of cells. If these criterias are not met, the table will not be created but an error message will be produced instead.

Styling

If you wish to use any of the default stylings, you need to import to your in Anax-MVC or add the module's stylesheet with in your page controller. Have a look at the to see the different styling options available, but please remember that you will only see the different stylings if you have moved the to your Anax-MVC css-folder. If you want to use your own styling, simply add a class name of your choice as a third argument to the method and style as you like.


All versions of ctablehelper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 limu/ctablehelper contains the following files

Loading the files please wait ....