A laravel package to perform notarization through blockchain.
This package supports notarization on the following providers:
You can install the package via composer:
composer require beliven-it/laravel-notarify
You can publish the config file with:
php artisan vendor:publish --tag="notarify-config"
Set the ENV variables
NOTARIFY_SERVICE=scalingparrots
// NOTARIFY_SERVICE=iuscribo
// If you use Scaling Parrots
SCALING_PARROTS_ENDPOINT=
SCALING_PARROTS_USERNAME=
SCALING_PARROTS_PASSWORD=
// If you use Iuscribo
IUSCRIBO_ENDPOINT=
IUSCRIBO_USERNAME=
IUSCRIBO_PASSWORD=
IUSCRIBO_COMPANY==
<?php
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
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.