Download the PHP package eorplatform/laravel-pandadoc without Composer
On this page you can find all versions of the php package eorplatform/laravel-pandadoc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eorplatform/laravel-pandadoc
More information about eorplatform/laravel-pandadoc
Files in eorplatform/laravel-pandadoc
Package laravel-pandadoc
Short Description Laravel package for dealing with PandaDoc API e-signature platform
License MIT
Homepage https://github.com/eorplatform/laravel-pandadoc
Informations about the package laravel-pandadoc
Laravel PandaDoc
This package is aimed for using the PandaDoc API with the Laravel. It provides a database table where you can store the responses from the documents and create a e-signature workflow for your app using the PandaDoc API.
Install
Install using composer
After you install the package, simply run the following command
Using the code above, that command will:
- publish the config file
- publish the migrations
- ask if migrations should be run now
Usage scenario
Imagine you want to integrate the e-signature workflow for your app and you are using PandaDoc as your e-signature provider. With this package you can easily communicate with the API, using the PandaDoc templates and create the functionality on your website as you wish.
For example you can initiate signing of the contract like this:
Utilizing webhooks from PandaDoc
Under the hood, this package relies on and installs the spatie/laravel-webhook-client for you. The only thing you need to do is to run:
Which will basically publish the config file for the webhooks package.
Configuring the webhooks
This is the contents of the file that will be published at config/webhook-client.php
:
Change the following in the first (or just add another item in array) with:
Everything else should remain the same.
Webhook job under the hood looks like:
And it checks the status from PandaDoc API, set the current status inside the DB (if you have stored it) and then dispatches the event
Events
You can utilize your listeners by using the provided PandaDocumentStatusUpdated
event. For example:
All versions of laravel-pandadoc with dependencies
illuminate/http Version ^10.0
illuminate/support Version ^10.0
spatie/laravel-model-status Version ^1.14
spatie/laravel-package-tools Version ^1.16
spatie/laravel-webhook-client Version ^3.2