Download the PHP package sergeykoz/yii2-debug without Composer

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

yii2-debug

Debug panel for Yii 1.1 (ported from Yii 2).

Latest Stable Version Total Downloads

Installation

This extension is available at packagist.org and can be installed via composer by following command:

composer require --dev zhuravljov/yii2-debug.

If you want to install this extension manually just copy sources to /protected/extensions directory.

To enable toolbar in your application add following lines to config:

Configuration

You can customize debug panel behavior with this options:

Each attached panel can be configured individually, for example:

Each panel have callback option filterData. You can define custom function for filtering input data before writing it in to debug log. It's useful when you need to hide something secret or just delete data from logs. Be careful with data structure manipulation. It can lead to log parsing errors.

Example:

Creating own panels

To create own debug panel you can extend class Yii2DebugPanel, for example:

And attach this panel in config:

Disable individual panels

To disable an individual panel, either a core or custom panel, set the enabled property in the panel config to false.

Example: Disable core profiling panel

Variables dumping

With static method Yii2Debug::dump() you can dump any data and examine it later in debug log.

Miscellaneous

Status Code

If you using PHP < 5.4, debug panel can't detect redirects by himself. You can use following code as workaround:

Such code just set 302 code if Location header is present. Codes like 4xx and 5xx can be detected in debug panel by himself. In PHP 5.4 and higher debug panel uses native php function http_response_code() for detecting http response code, and there is no need to use this workaround.


All versions of yii2-debug with dependencies

PHP Build Version
Package Version
Requires php Version >=5.1.0
yiisoft/yii Version >=1.1.15
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 sergeykoz/yii2-debug contains the following files

Loading the files please wait ....