PHP code example of codekandis / tiphy-sentry-client-integration

1. Go to this page and download the library: Download codekandis/tiphy-sentry-client-integration library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

codekandis / tiphy-sentry-client-integration example snippets


 declare( strict_types = 1 );
namespace Vendor\Project;

use CodeKandis\SentryClient\SentryClient;
use CodeKandis\Tiphy\Actions\ActionDispatcher;
use CodeKandis\TiphySentryClientIntegration\Throwables\Handlers\InternalServerErrorThrowableHandler;
use CodeKandis\TiphySentryClientIntegration\Throwables\SentryClientConfiguration;

$routesConfiguration = /** ... */;
$preDispatcher       = /** ... */;
$throwableHandler    = new InternalServerErrorThrowableHandler(
	new SentryClient(
		new SentryClientConfiguration(
			[ /** ... */ ]
		)
	)
);

( new ActionDispatcher( $routesConfiguration, $preDispatcher, $throwableHandler ) )
->dispatch();