Download the PHP package ums-lspl/photosign-verification-client without Composer

On this page you can find all versions of the php package ums-lspl/photosign-verification-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package photosign-verification-client

ums-lspl/photosign-verification-client

Laravel package for consumer applications (SmartExam / UMS) that validate passport photos and handwritten signatures via PhotoSign Verification.

Images are checked in memory on PhotoSign and never stored. Do not put OpenCV in Laravel.

Requirements

Installation

From this monorepo (path)

In your consumer app's composer.json:

From Packagist / VCS (when published)

Configuration

.env on your consumer app:

Create an API key in PhotoSign → API keys (assign to the university client). Start with PHOTOSIGN_FAIL_MODE=shadow so enrolment is not blocked while you tune thresholds.

PHOTOSIGN_LOCALE (en or hi) sets student-facing issue copy. Per-call locale overrides it.

fail_mode:

Mode Behaviour
closed Validation failures and outages block the upload
shadow Call PhotoSign, log would-be rejects, never block the user
open Never block; still call PhotoSign when possible

PHOTOSIGN_SHADOW=true is an alias for shadow mode.

Usage

Hard rejects throw. Soft warnings / warning_issues do not throw — use $result->hasWarnings() or $result->tipMessages() when you want coaching tips after accept. Livewire temporary uploads on S3/GCS are supported: the client prefers readStream() / get() when the SplFileInfo path is not a real local file. You can pass $this->photo directly — no app-side materialize helper is required.

Capture widget dataUrl values are also accepted by validatePhoto(). Decode for storage with:

Batch and signature enrolment:

Webhooks

HMAC header: X-PhotoSign-Signature: t=<unix>,v1=<hex> over {timestamp}.{rawBody}. Also sent as X-PhotoSign-Timestamp. Reject signatures older than ~5 minutes (replay protection). Secrets are shown once in PhotoSign Settings and encrypted at rest:

Live capture widget

Do not put API keys in the browser. Your server creates a short-lived session:

SmartExam integration point

Call PhotoSign in PhotoSignature::updatedPhoto() / updatedSignature() (and profile media flows) before uploading to S3:

  1. Validate mime/size locally (existing rules).
  2. PhotoSign::validatePhoto(...) / validateSignature(...).
  3. If ValidationFailedException, show $e->getMessage() and do not upload.
  4. Prefer shadow mode for the first rollout.

Testing

License

MIT


All versions of photosign-verification-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
illuminate/support Version ^10.0|^11.0|^12.0
psr/log Version ^1.1|^2.0|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ums-lspl/photosign-verification-client contains the following files

Loading the files please wait ...