Download the PHP package dereuromark/cakephp-whoops without Composer

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

Whoops for CakePHP

CI Total Downloads Latest Stable Version Minimum PHP Version License

Seamlessly integrate Whoops into CakePHP applications.

Demo-Video: Linux Mint + Firefox

This branch is for use with CakePHP 5.0+. For details see version map.

Install

Using Composer:

As this package only offers a Whoops handler for CakePHP, there is no need to enable it (no ->addPlugin() call). You only need to configure the renderer classes inside your config/app.php or config/app_local.php:

When using new Application.php and Middleware approach, you also need to adjust that:

Debug Mode

An important note: This plugin is installed as require dependency, but even so it is more used as require-dev one. If the debug mode is off, it will completely ignore the Whoops handler, as without debug mode there is no exception to render. It will then display the public error message and only log internally.

So make sure you enable debug (locally) for checking out this package. For each error and exception you should then see the improved whoops handler output on your screen.

Editor

Opening the file in the editor via click in the browser is supported for most major IDEs. It uses phpstorm:// URLs which can open the file through a command line call and directly jump to the right line.

Set your config as

To enable it.

If you are using a VM, e.g. CakeBox, you will also need the path mapping:

If you would like to override the default URL handler (phpstorm://) you could do so by setting the ideLinkPattern option to a custom URL handler:

See the Wiki for more details on different OS and Browsers.

Strictness

As a bonus the error handler is a bit more strict here for development. It will not just ignore notices and other errors, but display them the same way in order to fix them with the same ease and speed as exceptions.

Usually, when a variable is not found, all following code can also not yield any useful results, as the example below shows. Better to code cleaner in the first place and to avoid any warning or notice to be thrown in the first place.

Before:

After:


All versions of cakephp-whoops with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
cakephp/cakephp Version ^5.0
filp/whoops Version ^2.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 dereuromark/cakephp-whoops contains the following files

Loading the files please wait ....