bayareawebpro/laravel-trusted-forms

This package is abandoned and no longer maintained. No replacement package was suggested.

A Trusted Forms Certificate Client

v1.0 2020-04-29 05:31 UTC

This package is auto-updated.

Last update: 2022-02-12 23:58:37 UTC


README

A service wrapper for the Laravel HTTP client designed for working with the Active Prospect API to generate "TCPA Compliant Trusted Form Certificates".

composer require bayareawebpro/laravel-trusted-forms
php artisan vendor:publish --tag=config

https://packagist.org/packages/bayareawebpro/laravel-trusted-forms

Claim Certificate:

use BayAreaWebPro\TrustedForms\TrustedForms;

$claim = TrustedForms::claimCertificate(request()->only([...]));
$claim->getMaskedCertificateUrl();
$claim->getCertificateToken();
$claim->hasValidCertificate();
$claim->hasValidExpiration();
$claim->hasValidClaims();
$claim->isValid();

$claim->collect('nested.array');
$claim->get('nested.key', 'fallback-values');

Read Certificate:

use BayAreaWebPro\TrustedForms\TrustedForms;

$certificate = TrustedForms::readCertificate($token);
$certificate->getCertificateUrls();
$certificate->hasValidExpiration();
$certificate->hasValidClaims();
$certificate->isValid();

$certificate->collect('nested.array');
$certificate->get('nested.key', 'fallback-values');

TrustedForm Documentation

This is an Open Source Community Project and is not provided by ActiveProspect, or it's affiliates.

https://support.activeprospect.com/hc/en-us/categories/200128909-TrustedForm