Download the PHP package nerweb/laravel-tblist without Composer

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

laravel-tblist

Simple admin table listing for bootstrap 3 and laravel 4|5


Installation

Add the following to your composer.json file:

Then, run composer update nerweb/laravel-tblist or composer install if you have not already installed packages.

and

Publish assets:

Simple Example

First, create a class name UserTblist.

Create a route and and its controller. insert below inside the controller method.

Create the blade user/index.blade.php and insert below.

For complete example, see example folder.


API Reference

Note! Child class should always extend Nerweb\Tblist\BaseTblist.

Column

The column property accepts a data for column name as a key and column options as a value.

Column key

The column key may or may not exists in the result row. Column key also assumes as the name to be sorted.

Note! if column key doesn't exists in the result row, you should create a protected method colSetTheColumnName as custom column.

Column options

Options type Description
label string Column header label.
sortable bool Whether sortable or not.
table_column string if set, then use its value instead of the column key as the column name to sort (i.e roles.admin, users.admin).
classes string table column classes. Note! Both applied to header, footer and body column.
thead_attr string Table header attribute.

Note! All column option is default to null.

Custom Column Display

Add protected method colSetColumnNameToCamel (i.e colSetUsername, colSetCreatedAt) that only accepts 1 parameter an object of result row. Then echo or display the string.

Example

in your class, UserTblist for this example. Add this next to setColumns method

Custom Column

Sometimes we want to show column that is not in the result object row.

To do this, add a column key to columns property and make sure that the sortable options is set to false.

and

create a method called colSetYourColumnName($row) that accepts result row.

Multiple Tblist

Sometimes we want to display multiple table listing on the same page.

To do this,

Demo

see simple demo here

License

This project is open-sourced software licensed under the MIT license.


All versions of laravel-tblist with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.x|5.0.x
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 nerweb/laravel-tblist contains the following files

Loading the files please wait ....