Download the PHP package tschueller/phpmysqlgrid without Composer

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

phpMySQLGrid

A flexible MySQL data grid library for PHP.

phpMySQLGrid provides a reusable class to display and manage MySQL table data in a grid with filtering, sorting, pagination, and CRUD actions.

Features

Requirements

Installation

Install with Composer:

composer require tschueller/phpmysqlgrid

Assets (CSS/JS) are not automatically published. Use the provided CLI command from your host project (see Asset Publishing below) to copy them into your web root.:

php vendor/bin/phpmysqlgrid-assets

For development in this repository:

composer install

Upgrade Guide (v0.5 to v1.0)

See the dedicated upgrade guide in docs/upgrade-guide.md.

Simple Example

Database Connection Modes

phpMySQLGrid supports two connection modes:

  1. Default mode (legacy-compatible): internal PDO connection created automatically from hostname, port, username, password, database properties.
  2. Injected connection mode: externally managed PDO connection via setDatabaseConnection().

1) Default mode (internal PDO)

Set the connection properties and call execute(). The class creates a PDO connection internally using mysql:host=…;port=…;dbname=…;charset=utf8mb4. This mode is fully backward compatible with existing integrations that set these properties.

2) Injected PDO mode

Use this mode when you already manage your DB connection externally or when you want to run integration tests against SQLite.

Notes:

Demo Page

This repository includes a manual demo page with seeded user data and a persistent SQLite database file.

Start the demo server from the project root:

composer run demo:start

Then open:

http://127.0.0.1:8000/

Notes:

Asset Publishing for Host Projects

By default, package assets are not automatically copied into your web root. Publish them from your host project with:

php vendor/bin/phpmysqlgrid-assets

Default target is:

assets/phpmysqlgrid

Override target path with either an argument

php vendor/bin/phpmysqlgrid-assets --target public/assets/phpmysqlgrid

or an environment variable:

# Bash
PHPMYSQLGRID_ASSET_TARGET=public/assets/phpmysqlgrid php vendor/bin/phpmysqlgrid-assets

# PowerShell:
$env:PHPMYSQLGRID_ASSET_TARGET="public/assets/phpmysqlgrid"; php vendor/bin/phpmysqlgrid-assets

Automatic Publishing in a Host Project

In your host project's composer.json, you can run asset publishing automatically after install/update:

Include CSS

Use MySQLGridAssets for cache-busted URLs/tags.

The default CSS include is split into:

Recommended default theme usage:

Dark theme example:

When you use themes, set $grid->cssClass so the grid uses the matching theme scope:

Currently available themes:

For full asset helper documentation (themes, custom themes, cache busting internals, method reference, and legacy/deprecated methods), see docs/assets.md.

Code Quality Checks / Unit Tests

Run all quality checks:

composer run lint

Run checks individually:

composer run lint:syntax
composer run lint:style
composer run lint:static

Run unit tests:

composer run test

Contributing

For contribution details, see CONTRIBUTING.md.

Releasing

For release process details, see releasing.md.

Security

Please report vulnerabilities according to SECURITY.md.

For secure runtime configuration and hardening recommendations, see docs/security-settings.md.

License

MIT


All versions of phpmysqlgrid with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-pdo Version *
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 tschueller/phpmysqlgrid contains the following files

Loading the files please wait ...