PHP code example of codekandis / tiphy-authentication-integration

1. Go to this page and download the library: Download codekandis/tiphy-authentication-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-authentication-integration example snippets


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

use CodeKandis\Tiphy\Actions\ActionDispatcher;
use CodeKandis\TiphyAuthenticationIntegration\Actions\PreDispatchment\Api\AuthorizationHeaderKeyAuthenticationPreDispatcher;

$routesConfiguration = /** ... */;
$throwableHandler    = /** ... */;
$usersRepository     = /** ... */;
$preDispatcher       = new AuthorizationHeaderKeyAuthenticationPreDispatcher( $usersRepository );

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