PHP code example of donnicias / nav_ip

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

    

donnicias / nav_ip example snippets


'providers' => [
    \donnicias\nav_ip\Provider\NavIPServiceProvider::class
],

'aliases' => [
    'Nav' => \donnicias\nav_ip\Facades\Nav::class
],

namespace App\Http\Controllers;
use donnicias\nav_ip\Facades\Nav;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class IntegrationController extends Controller
{
    public function index(){
        $payments = Nav::Read(null,'Payments',null,1);
        $blob = Nav::Read(['returnString'=>'','payload'=>'110415','service'=>'RENEWALINVOICE'],'BlobHandling','ProcessBlobs',null);
    }
}

bash
php artisan vendor:publish