Download the PHP package phpbootstraptableedit/phpbootstraptableedit without Composer

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

PHP Bootstrap Table Edit - datagrid library to edit database tables

License

MIT

Screenshots

Requirements

Status

This project is currently beta

Quick demo using SQLite3 and PHP's built-in webserver

  1. navigate a terminal to the 'examples/' folder
  2. sqlite3 example.db < example.sql
  3. php -S localhost:8080
  4. open web browser to http://localhost:8080

Install from composer

Important Terminology - index, add, edit

[!CAUTION] Stop SQL injection attacks, never place user input into SQL strings! Instead, use sql_param arrays to safely pass input.

[!TIP] Use the nonce properties to prevent Cross-site Request Forgery attacks (CSRF).

Basic Example

Properties

charset (string), output charset, default: 'UTF-8'

table_name (string), database table

identity_name (string), the auto increment id field in the table, typically 'id'

index_sql (string), sql query to define the opening html table listing all records

index_sql_param (array), parameters for index_sql

Example:

add_sql (string), sql query to define what fields to display on the add page, also what fields are in the insert

Example:

add_sql_param (array), named parameters for add_sql, typically not required since no records are retrieved

edit_sql (string), sql query to define what fields to display on the edit page, also what fields are used in the update

Example:

edit_sql_param (array), named parameters for edit_sql

Example:

add (array), define how fields in add_sql are rendered on the add form

Example:

edit (array), define how fields in edit_sql are rendered on the edit form

Example:

index (array), define hooks to render fields on the opening table, function name, or closure

Example:

floating (bool), enable Bootstrap's floating labels on add and edit forms. https://getbootstrap.com/docs/5.3/forms/floating-labels/

nonce_name (string), csrf field name, default 'nonce'

nonce_value (string), csrf field value

limit (int), pagination limit records/page, 0 = off, default = 100

ellipse_at (int), truncate text on index table, 0 = off, default = 0

query_string_carry (array) entries in this array added to all query strings, useful to carry data from page to page

Example:

i18n (array), associative array containing all localization settings

Defaults:

css (array), css class settings

Defaults:

redirect (bool) helpful when debugging, set to false and page will not redirect after insert/update/delete

'on' Event Hooks

'on' event hook functions are called before the sql insert/update/delete. 'on' functions can be used to cast POST data or add validation. Returning a string from an 'on_' function displays an alert on the add/edit form and skips the insert/update/delete.

Text Only Alert:

HTML and Text Alerts:

'after' Event Hooks

after functions are called after the SQL insert/update/delete. after_insert is a unique hook, it's receives an argument; the inserted id.

Examples:

Normal HTML Attributes

Standard HTML attributes can be set in the add and edit arrays. They are passed through as expected

Custom HTML Attributes

Custom attributes instruct this library how to render the input. Unlike normal HTML attributes, such as maxlength, custom attributes do not appear in the input.

Example:

Example:

Example:

Example:

Custom HTML Attributes for File Uploads

Example:

Example:

Example:

Example:

Label - Rename a field

Rename the title appearing with the field Example:


All versions of phpbootstraptableedit with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.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 phpbootstraptableedit/phpbootstraptableedit contains the following files

Loading the files please wait ....