Download the PHP package visualweber/error-handler-custom without Composer

On this page you can find all versions of the php package visualweber/error-handler-custom. 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 error-handler-custom

ErrorHandlerCustom

Introduction

ErrorHandlerCustom is a module for Error Logging (DB and Mail) your ZF2, ZF3 Mvc Application, and ZF Expressive for Exceptions in 'dispatch.error' or 'render.error' or during request and response, and PHP E_* Error.

Features

Installation

1. Import the following SQL for Mysql

If you use other RDBMS, you may follow the log table structure above.

2. Setup your Zend\Db\Adapter\Adapter service or your Doctrine\ORM\EntityManager service config

You can use 'db' (with Zend\Db) config or 'doctrine' (with DoctrineORMModule) config that will be converted to be usable with Zend\Log\Writer\Db.

OR

If you use other RDBMS, you may configure your own db or doctrine config.

3. Require this module uses composer.

4. Copy config

a. For ZF2/ZF3 Mvc application, copy error-handler-custom.local.php.dist config to your local's autoload and configure it

source destination
vendor/visualweber/error-handler-custom/config/error-handler-custom.local.php.dist config/autoload/error-handler-custom.local.php

Or run copy command:

b. For ZF Expressive application, copy expressive-error-handler-custom.local.php.dist config to your local's autoload and configure it

source destination
vendor/visualweber/error-handler-custom/config/expressive-error-handler-custom.local.php.dist config/autoload/expressive-error-handler-custom.local.php

Or run copy command:

When done, you can modify logger service named ErrorHandlerCustomLogger and error-handler-custom config in your's local config:

5. Lastly, enable it

a. For ZF Mvc application

b. For ZF Expressive application

You need to use Zend\ServiceManager for service container and Zend\View for template engine.

For zend-expressive-skeleton ^1.0, It's should already just works!

For zend-expressive-skeleton ^2.0, you need to open config/pipeline.php and add the ErrorHandlerCustom\Middleware\Expressive::class middleware after default ErrorHandler::class registration:

and also add error-preview routes in config/routes.php (optional) :

to enable error preview page. To disable error preview page, just remove it from routes.

Give it a try!

Web Access

URl Preview For
http://yourzfapp/error-preview Exception
http://yourzfapp/error-preview/error Error

You will get the following page if display_errors config is 0:

error preview in web

For production env, you can disable error-preview sample page with set ['error-handler-custom']['enable-error-preview-page'] to false.

Console Access

If you use zend-mvc v3, you need to have zendframework/zend-mvc-console in your vendor, if you don't have, you can install it via command:

Command Preview For
php public/index.php error-preview Exception
php public/index.php error-preview error Error

You will get the following page if display_errors config is 0:

error preview in console

For production env, you can disable error-preview sample page with set ['error-handler-custom']['enable-error-preview-page'] to false.

For ZF Expressive, there is no default console implementation, so, if you want to apply it in your console in ZF Expressive, you may need to custom implementation error handler that utilize ErrorHandlerCustom\Handler\Logging service (see detailed usage at ErrorHandlerCustom\Middleware\Expressive class)

Contributing

Contributions are very welcome. Please read CONTRIBUTING.md


All versions of error-handler-custom with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7.0
seld/jsonlint Version ^1.5
zendframework/zend-console Version ^2.5
zendframework/zend-db Version ^2.5
zendframework/zend-log Version ^2.5
zendframework/zend-mail Version ^2.5
zendframework/zend-psr7bridge Version ^0.2.2|^1.0
zendframework/zend-servicemanager Version ^2.5|^3.0
zendframework/zend-text Version ^2.5
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 visualweber/error-handler-custom contains the following files

Loading the files please wait ....