PHP code example of october-bridge / bridge

1. Go to this page and download the library: Download october-bridge/bridge 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/ */

    

october-bridge / bridge example snippets


$app = new Winter\Storm\Foundation\Application(
    realpath(__DIR__.'/../')
);

$app = new Winter\Bridge\Foundation\Application(
    realpath(__DIR__.'/../')
);

Auth::extend('winter', function($app, $name, array $config)
{
    $guard = new \Winter\User\Classes\AuthManager;
    return $guard;
});