Download the PHP package cerbero/sql-dumper without Composer

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

SQL Dumper

Author PHP Version Laravel Version Build Status Coverage Status Quality Score Latest Version PSR-12 Total Downloads

Laravel package to dump SQL queries, related EXPLAIN and location in code in different formats:

Install

Via Composer

To customize some aspects of this package, the config/sql_dumper.php file can optionally be generated via:

Usage

The easiest way to dump a SQL query is calling the helper functions. There is a helper for each dumper:

All SQL queries executed within the helper's closure are dumped:

Depending on dumper and database driver, SQL queries dumps will look like:

console dump
email or HTML file or markdown file dump
log file dump

Along with the default dumper, in config/sql_dumper.php we may customize the SQL dumpers default behavior. For example, the HTML dump default path is /storage/sql_dump_TIMESTAMP.html but we can set a different one:

Also templates and email recipient are customizable, please refer to the [configuration][link-config] for further details.


This package includes a middleware to easily dump SQL queries in routes or group of routes. The middleware can be registered in app/Http/Kernel.php:

Then we can add it to routes to run the default dumper:

If we want to use a different dumper, we can pass it to the middleware as a parameter:

The valid parameters are:

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Contributing

Please see CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of sql-dumper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1||^8.0
illuminate/container Version >=5.6
illuminate/database Version >=5.6
illuminate/mail Version >=5.6
illuminate/support Version >=5.6
jdorn/sql-formatter Version ^1.2
symfony/console Version >=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 cerbero/sql-dumper contains the following files

Loading the files please wait ....