Download the PHP package lucderheld/php-greylog-exception without Composer

On this page you can find all versions of the php package lucderheld/php-greylog-exception. 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 php-greylog-exception

php-greylog-exception

Is a very usefull state of the art exception class and handler for PHP 7 Latest Stable Version Total Downloads Build Status Build Status2 Code Coverage Scrutinizer Code Quality

Usage / Installation

Recommended installation via composer:

Add php-greylog-exception to composer.json either by running composer require lucderheld/php-greylog-exception or by defining it manually:

"require": {
   // ...
   "lucderheld/php-greylog-exception": "1.0"
   // ...
}

Reinstall dependencies: composer install

Install GrayLog2-Server:

How GrayLog2 can be installed is well documented at http://docs.graylog.org/en/2.1/pages/installation.html The easiest way to test GreyLog is to run it as a Virtual-Machine:

Install GrayLog2-Server as VM

  1. Usage Example

GreyLog output:

Example output

  1. Combination with own functions

php-greylog-exception can be combined with user defined exception-functions. The functions are triggered before the exception is logged to GreyLog. To define a exception-function, just create a static-function and name it the same as the actual exception.

Example:

PHP-Output:

The function NOT_BOOTED was called!Exception 10000002 was sent to GreyLog-Server 127.0.0.1

  1. Parameter logging

When an exception occours it is important to have as many informations as possible. The php-greylog-exception-class collects all the parameters that where called and saves them as serialized strings.

Example:

GreyLog output:

Example parameter output

License

The library is licensed under the GPL3 license. For details check out the LICENSE file.

Development & Contributing

You are welcome to modify, extend and bugfix as much as you like! :-) If you have any questions/proposals/etc. you are welcome to contact me via email.


All versions of php-greylog-exception with dependencies

PHP Build Version
Package Version
Requires graylog2/gelf-php Version ~1.5
php Version >=7.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 lucderheld/php-greylog-exception contains the following files

Loading the files please wait ....