senikz / whmcs-sentry-integrations
Provides the simplest way to integrate your WHMCS project with Sentry
Installs: 447
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
pkg:composer/senikz/whmcs-sentry-integrations
Requires
- sentry/sentry: ^1.7
This package is not auto-updated.
Last update: 2025-12-21 10:00:44 UTC
README
Since the WHMCS is developed using a composer but without its configuration json file, there is no availability to use
vendorfolder for composer. Therefore we will addcustomfolder inside thevendorand use it for our composer by addingvendor-diroption.
Step-by-step actions to run composer over WHMCS in subfolder:
- Install Composer
- Run
cumposer initto create composer.json file - Add
"vendor-dir": "vendor/custom"into composer.json - Create folder
/vendor/custom - Add the line below into the 5th line of
/vendor/autoload.php
require __DIR__ . '/custom/autoload.php';
After that it becomes possible to install Sentry Integration. To do this run the next command:
composer require senikz/whmcs-sentry-integrations
Configuration
- Turn On 'exceptions interceptor'. To do this modify the
useblock of the file/vendor/filp/whoops/src/Whoops/Exception/ErrorException.phpby changinguse ErrorExceptiontouse \WhmcsSI\Exception\ErrorException. - Put the lines below into
/configuration.phpfile:$sentry_enable = true; $sentry_project_link = '<link_to_your_project>'; - Optionally you can also put the next lines too:
$project_environment = '';
$project_version = '';