PHP code example of msaaq / nelc-laravel

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

    

msaaq / nelc-laravel example snippets


[
    // ...
    
    'nelc' => [
        'key' => env('NELC_KEY'),
        'secret' => env('NELC_SECRET'),
        'platform' => [
            'name' => env('NELC_PLATFORM_NAME'),
            'identifier' => env('NELC_PLATFORM_IDENTIFIER'),
        ],
        'sandbox' => env('NELC_SANDBOX', false),
    ],
]

use Msaaq\NelcLaravel\Nelc;

app(Nelc::class)->sendStatement($statement);

use Nelc;

Nelc::sendStatement($statement);

use Msaaq\NelcLaravel\Nelc;

class MyController extends Controller
{
    public function index(Request $request, Nelc $nelc)
    {
        $nelc->sendStatement($statement);
    }
}