Download the PHP package riculum/php-datatables without Composer
On this page you can find all versions of the php package riculum/php-datatables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download riculum/php-datatables
More information about riculum/php-datatables
Files in riculum/php-datatables
Package php-datatables
Short Description Simple PHP extension for Datatables
License MIT
Informations about the package php-datatables
PHP-Datatables
Simple PHP extension for Datatables
Installation
Use the package manager composer to install the library
Initial setup
Credentials
The basic database settings can be set through environment variables. Add a .env
file in the root of your project. Make sure the .env
file is added to your .gitignore
so it is not checked-in the code. By default, the library looks for the following variables:
- DB_HOST
- DB_NAME
- DB_USERNAME
- DB_PASSWORD
More information how to use environment variables here
Configuration
Import vendor/autoload.php and load the .env
settings
Datatables
BASIC
To get the properly formatted data, you just need to define the table and columns
JOIN
To combine multiple tables with related columns, use the SQL JOIN
statement
Notice to specify the columns with table names
WHERE
Use the WHERE
clause to extract with priority only those records that meet a certain condition
Bugreport & Contribution
If you find a bug, please either create a ticket in github, or initiate a pull request
Versioning
We adhere to semantic (major.minor.patch) versioning (https://semver.org/). This means that:
- Patch (x.x.patch) versions fix bugs
- Minor (x.minor.x) versions introduce new, backwards compatible features or improve existing code.
- Major (major.x.x) versions introduce radical changes which are not backwards compatible.
In your automation or procedure you can always safely update patch & minor versions without the risk of your application failing.