PHP code example of oluwatobiakanji / laravel-modulr-auth

1. Go to this page and download the library: Download oluwatobiakanji/laravel-modulr-auth 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/ */

    

oluwatobiakanji / laravel-modulr-auth example snippets


'providers' => [
    ...
    OluwatobiAkanji\ModulrAuth\ModulrAuthServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'AuthHeader' => OluwatobiAkanji\ModulrAuth\Facades\AuthHeader::class,
    ...
]



return [
    
     /**
     * API key From Modulr
     *
     */
    'key' => env('MODULR_API_KEY'),

    /**
     * API secret From Modulr
     *
     */
    'secret' => env('MODULR_API_SECRET'),

    /**
     * Modulr API base url
     *
     */
    'base_url' => env('MODULR_BASE_URL', 'https://api-sandbox.modulrfinance.com'),

    /**
     * Modulr live base route
     *
     */
    'live_base_route' => env('MODULR_LIVE_BASE_ROUTE'),

    /**
     * Modulr sandbox base route
     *
     */
    'local_base_route' => env('MODULR_LOCAL_BASE_ROUTE', '/api-sandbox'),
];
bash
php artisan vendor:publish --tag=modulr-config