goodsign / phpapi
Use the GoodSign.io eSignature API to send document to customers for signing. This package supports document generation from existing templates or via PDF upload with TextTags
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- vlucas/phpdotenv: ^5.5
This package is not auto-updated.
Last update: 2024-12-14 03:04:42 UTC
README
This is a PHP SDK for the GoodSign API. It provides methods to interact with the API, such as sending a template, uploading a PDF, getting a document, and downloading a document.
Installation
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
composer install
which will install required libraries
Usage
Have a look at the "examples" folder.
Add your GoodSign API token as an environment variable in a .env
file by renaming the .env.copy -> .env
You can get your API Key from https://goodsign.io/profile/apikeys
GOODSIGN_API_TOKEN=your_api_token
Then, you can use the SDK like this: cd into the example directory (you will see the src and examples in the root folder run a file using the PHP command
php getTemplates.php
Contributing
We welcome contributions to this code! Here's a basic guide on how to make a pull request:
-
Fork the Repository: Click the 'Fork' button at the top right of this page. This will create a copy of this repository in your GitHub account.
-
Clone the Repository: Navigate to your GitHub account, find the forked repository, click the 'Code' button and then click the 'copy to clipboard' icon to get the URL. Then, open your terminal, navigate to the directory where you want to save the project and run
git clone [URL]
, replacing[URL]
with the URL you just copied. -
Create a New Branch: Navigate into the cloned repository in your terminal and run
git checkout -b your-branch-name
, replacingyour-branch-name
with a suitable name for your changes. -
Make Your Changes: Make the changes you want to contribute. This could involve fixing bugs, adding new features, or improving documentation.
-
Commit Your Changes: Once you've made your changes, stage them for commit by running
git add .
. Then, commit your changes by runninggit commit -m "Your commit message"
, replacingYour commit message
with a brief description of the changes you've made. -
Push Your Changes: Push your changes to your forked repository on GitHub by running
git push origin your-branch-name
. -
Submit a Pull Request: Navigate to your forked repository on GitHub, click the 'Pull request' button, then click 'New pull request'. Select your branch from the dropdown menu, then click 'Create pull request'. Add any additional comments about your changes, then click 'Create pull request' again.
Please ensure your code adheres to our style guide before submitting a pull request. Thank you for your contributions!
License
This project is licensed under the terms of the MIT license.