Skip to content

Oxicode/debug_http

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DebugHttp

DebugHttp gives the CakePHP DebugKit plugin integration for HTTP requests using CakePHP's client.

Requirements

The master branch has the following requirements:

  • CakePHP 3.0.0 or larger
  • DebugKit 3.2 or larger

Installation

  • Install the plugin with Composer from your CakePHP Project's ROOT directory (where the composer.json file is located)
php composer.phar require dorxy/debug_http "~1.0"

note this is not a dev requirement

Plugin::load('DebugHttp');
Plugin::load('DebugKit', ['bootstrap' => true, 'routes' => true]);
  • Add the panel to DebugKit
Configure::write('DebugKit.panels', ['DebugHttp.ClientCall']);
  • Set 'debug' => true, in config/app.php.

Usage

Whenever you wish to have a client request appear in the DebugHttp panel you must use the provided client, e.g.:

$http = new \DebugHttp\Network\Http\Client();
$http->get('http://www.google.com');

The request and response will automatically appear in the Client calls panel, as well as their timing in the Timer panel.

Screenshots

alt text

alt text

alt text

Reporting Issues

If you have a problem with DebugHttp or wish to see other features please open an issue on GitHub.

About

DebugKit panel for logging http calls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 76.7%
  • CSS 23.3%