Download the PHP package vandarpay/exception-monitoring without Composer

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

Vandar Exception Monitoring Laravel Package

We need to define keys for each important section of the service.

When an exception occurs in a section, we need to add related key to redis and set a specific ttl to automatically remove the keys.

Also, need an api with dynamic parameter for keys and return related response. api return 500 if the key exists in redis and 200 otherwise.

we must prepare some functionality that get key of important section and ttl from services and this package must provide a dynamic route with dynamic parameter by the given key.

Requirement

Installation

composer

you can publish config file:

Usage

Set key on redis

Here's a quick example:

the default ttl for each key is 300s. you can change that in config/exception-monitoring.php. or you can pass ttl as second argument in set function:

Calling Api for getin Status of mapped sections

there is a route with this pattern /api/exception-monitoring/{key}.

for security and privacy you must send X-TOKEN header with value set in config with token key name. make sure in config bellow key is set:

simply you can set EXCEPTION_MONITORING_TOKEN in .env file.

for example if you call https://your-domain.com/api/exception-monitoring/mandate-store and,

if key exists in redis you will get bellow response:

or if key not exists in redis you will get bellow response:

and if key X-TOKEN header not exists or invalid you will get bellow response:

Remove key from redis manually

you can remove key from redis manually like bellow:

License

The MIT License (MIT). Please see License File for more information.


All versions of exception-monitoring with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
laravel/framework Version ^7.0|^8.0|^9.0|^10.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 vandarpay/exception-monitoring contains the following files

Loading the files please wait ....