Download the PHP package jeytekdev/explain-lint-doctrine without Composer

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

jeytekdev/explain-lint-doctrine

Doctrine DBAL bridge for jeytekdev/explain-lint — re-runs EXPLAIN against every query your test suite executes, and fails the build on full table scans, lost indexes, filesort and temporary tables.

Implemented as a Doctrine\DBAL\Driver\Middleware, not the old SQLLogger — SQLLogger is deprecated and has been removed entirely in DBAL 4.x. Compatible with doctrine/dbal: ^3.2 || ^4.0.

Install (2 minutes)

Register the middleware wherever you build your Doctrine\DBAL\Configuration (in a plain DBAL app, or via Symfony's doctrine.yaml):

Symfony (config/packages/doctrine.yaml):

Then wire up the PHPUnit extension (see core README):

Running under Codeception

This package only handles capture (the DBAL Middleware) — the report step is core's PHPUnit <extensions> mechanism, registered via phpunit.xml.

If your suite runs via vendor/bin/codecept run instead of vendor/bin/phpunit/pest, that mechanism never fires — Codeception 5 doesn't bootstrap PHPUnit's native extension system. The middleware will still capture every query, but nothing will ever be analyzed or printed: no error, no warning, just a report that never appears.

Install jeytekdev/explain-lint-codeception too, and register it in codeception.yml instead of phpunit.xml. Use explain-lint:install --config-only (not the plain form) to generate explain-lint.php without also wiring phpunit.xml, since Codeception never reads that file.

Known limitation: PDO-only drivers

explain-lint needs the real \PDO handle behind a connection to re-run EXPLAIN on the exact same session. This bridge supports the pdo_mysql and pdo_pgsql drivers only — native drivers (mysqli, pgsql, sqlite3) have no \PDO to hand back, so queries on those simply aren't captured (no error, nothing to analyze).

License

MIT


All versions of explain-lint-doctrine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
jeytekdev/explain-lint Version ^2.0
doctrine/dbal Version ^3.2 || ^4.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 jeytekdev/explain-lint-doctrine contains the following files

Loading the files please wait ...