Download the PHP package pactivasign/pactivasign-laravel without Composer

On this page you can find all versions of the php package pactivasign/pactivasign-laravel. 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 pactivasign-laravel

PactivaSign for Laravel

Laravel integration for the PactivaSign PHP SDK: send documents for signature from a facade, and receive verified webhooks as Laravel events.

Status: pre-release. Until 1.0, minor versions may change the API.

Requires PHP 8.2+ and Laravel 10.48+, 11, 12 or 13.

Installation

Keys and credentials

PactivaSign uses OAuth with two private keys instead of a shared secret. Generate them once:

This writes storage/pactivasign/client.jwk and storage/pactivasign/dpop.jwk (mode 0600; keep them out of git) and prints the public key. Your PactivaSign organization admin registers that public key as an OAuth client and gives you its client ID. Then set:

Check the connection:

Every server must use the same two key files. If you deploy to several machines, store the keys as secrets instead of files: put the JWKs in PACTIVASIGN_CLIENT_KEY and PACTIVASIGN_DPOP_KEY in an encrypted .env (php artisan env:encrypt), or point pactivasign.client_key.provider at a class implementing PactivaSign\Key\KeyProvider that signs in your KMS.

Tokens are cached in your default cache store (or PACTIVASIGN_CACHE_STORE), shared by every worker.

Sending documents

Or inject PactivaSign\Client and use $client->envelopes->create(...). Every resource, model and option is documented in the SDK README.

Webhooks

  1. Publish and run the migration (it stores each delivery once):

  2. Add the route, in routes/web.php or routes/api.php. It verifies signatures and skips CSRF:

  3. Create the subscription for https://your-app.example/pactivasign/webhook and put its secret in .env:

  4. Listen for the events:

Events: EnvelopeSent, EnvelopeCompleted, EnvelopeDeclined, EnvelopeVoided, EnvelopeExpired, RecipientDelivered, RecipientDeliveryFailed, RecipientViewed, RecipientSigned, RecipientDeclined, and WebhookReceived for every delivery (including types added later). $event->event is the typed PactivaSign\Model\WebhookEvent.

How deliveries are handled:

php artisan pactivasign:webhook-test --type=envelope.completed sends a signed sample through your route, locally, to check the wiring.

Testing your app

Requests without a stub fail the test, so nothing reaches the real API.

Development

The integration tests in tests/Integration run against a live API when the SDK's PACTIVASIGN_* variables are set.

Security

See SECURITY.md.

Licence

MIT. See LICENSE.


All versions of pactivasign-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8 || ^8.0
guzzlehttp/psr7 Version ^2.6 || ^3.0
illuminate/console Version ^10.48 || ^11.0 || ^12.0 || ^13.0
illuminate/contracts Version ^10.48 || ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^10.48 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.48 || ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^10.48 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.48 || ^11.0 || ^12.0 || ^13.0
pactivasign/pactivasign-php Version ^0.1
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 pactivasign/pactivasign-laravel contains the following files

Loading the files please wait ...