PHP code example of beliven-it / laravel-notarify
1. Go to this page and download the library: Download beliven-it/laravel-notarify 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/ */
beliven-it / laravel-notarify example snippets
use Beliven\Notarify\Facades\Notarify;
$notarization = Notarify::upload($item) // $item is a file
$notarization = Notarify::verify($item); // $item can be a file or a Notarization instance
// The returned value is an instance of Beliven\Notarify\Entities\Notarization::class, which has the following public methods:
$notarization->getId(); // Returns the Notarization ID
$notarization->getHash(); // Returns the Notarization Hash
$notarization->getTimestamp(); // Returns the Notarization timestamp as a Carbon instance (UTC Timezone)
$notarization->getExplorerUrls(); // Returns the Notarization explorer urls as indexed array
bash
php artisan vendor:publish --tag="notarify-config"