1. Go to this page and download the library: Download danmichaelo/ncip 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/ */
danmichaelo / ncip example snippets
use Scriptotek\Ncip\NcipConnector,
Scriptotek\Ncip\NcipClient;
$ncipUrl = 'http://eksempel.com/NCIPResponder';
$userAgent = 'My NCIP client/0.1';
$agencyId = 'a';
$conn = new NcipConnector($ncipUrl, $userAgent, $agencyId);
$client = new NcipClient($conn);
use Scriptotek\Ncip\NcipServer;
$server = new NcipServer;
$client = App::make('ncip.client');
$server = App::make('ncip.server');
// Or if you have access to an instance of the application.
$client = $app['ncip.client'];
$server = $app['ncip.server'];