Download the PHP package laravel-enso/datatable without Composer

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

Data Table

Codacy Badge StyleCI License Total Downloads Latest Stable Version

DataTable package for the DataTables.net library with server-side processing and a VueJS component.

Watch the demo click on the photo to view a short demo in compatible browsers

Details

Supports:

Installation

The component is already included in the Enso install and should not require any additional installation steps.

Use

  1. Optionally, you may publish the example table structure class

  2. In your controller add the DataTable trait. This includes two helper methods that will manage the builder:

    • initTable
    • getTableData
  3. In the controller you must define a method for the query builder, such as:

    Note that it should return a QueryBuilder object and not a collection of results.

  4. Also in the controller add protected $tableStructureClass = MyTableStructure::class which should be the fully qualified class name describing the structure of the table rendered in your page

  5. In your routes files add the routes for the helper methods, and name them myRoute.initTable, myRoute.getTableData and, optionally, myRoute.exportExcel if you want the results exporting functionality

  6. If you need to, don't forget to add user permissions for the new routes

  7. In your page/component add:

  8. Configure the table from the structure class

Options

TableStructure

1 If you are appending attributes fetched through a relationship, you'll need to include the model's id attribute in the raw query 2 When using appended attributes, since these do not actually exist in the model's DB table, you need to exclude them using the notSearchable option, or you'll get errors when searching

Config

Publishes

Notes

The Laravel Enso package comes with this package included. There you'll find working examples for using the component

In the snippets folder you'll find a sublime snippet for quickly creating a stub table-structure class

Depends on:

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.


All versions of datatable with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
laravel-enso/core Version 1.3.*
laravel-enso/helpers Version 1.4.*
laravel-enso/vueadminlte Version 1.3.*
maatwebsite/excel Version ^2.1
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 laravel-enso/datatable contains the following files

Loading the files please wait ....