This package allows you able to use Jotform API in Laravel.
Supported Laravel Versions: >= 6.x
Run the following command directly in your Project path:
$ composer require izniburak/laravel-jotform
or directly add following command in your composer.json
file.
{
"require": {
"izniburak/laravel-jotform": "^1.0"
}
}
The service provider of the Package will be automatically discovered by Laravel.
After that, you should publish the config file via following command:
$ php artisan vendor:publish --provider="Jotform\JotformServiceProvider"
Greate! You can start to use Jotform API in your Laravel app.
You can use Jotform API in two different ways with this package.
1- Use jotform()
helper function in order to access Jotform API:
<?php
$myForms = jotform()->getForms();
2- Use Facade:
<?php
use Jotform\Facade\Jotform;
$myForms = Jotform::getForms();
Important: You can find all methods that will be able to use with this package by using this documentation. (The official PHP package of Jotform)
You can change the package configs via config/jotform.php
file or directly using .env
file variables.
You can add the variables below in your .env
file and configure it as you desire.
JOTFORM_API_KEY=<YOUR_API_KEY>
JOTFORM_OUTPUT=json
JOTFORM_DEBUG=false
- Fork it ( https://github.com/izniburak/laravel-jotform/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- izniburak İzni Burak Demirtaş - creator, maintainer