chrisreedio/laravel-jotform-sdk

Provides an SDK for Jotforms API

v1.0.0 2024-02-22 12:28 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a Laravel wrapper for the Jotform SDK/API.

The goal is to streamline the usage in a Laravel application by auto-injecting the API key from the config file.

Installation

You can install the package via composer:

composer require chrisreedio/laravel-jotform-sdk

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-jotform-sdk-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-jotform-sdk-config"

This is the contents of the published config file:

return [
    'api_key' => env('JOTFORM_API_KEY'),
];

Usage

use ChrisReedIO\JotformSDK\Facades\JotformSDK;
$folders = JotformSDK::api()
    ->getFolders();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.