A Laravel wrapper for the LimeSurvey RemoteControl2 API.
By default, API access via Remotecontrol2 is disabled, follow the instructions at (https://manual.limesurvey.org/RemoteControl_2_API) to enable it.
This package can be installed using the following composer command from the root of your Laravel project.
$ composer require "neilherbertuk/laravellimesurveyapi: dev-master"
In Laravel 5.5+ this package should be auto-discovered, however if you are using an earlier version or Laravel add the following service provider and facade in the config/app.php
file:
'providers' => [
// ...
neilherbertuk\laravellimesurveyapi\LaravelLimesurveyApiProvider::class,
];
'aliases' => [
// ...
'LimeSurveyAPI' => neilherbertuk\laravellimesurveyapi\Facades\LimeSurveyAPI::class,
];
By default, the configuration is set within the .env file, however, if you wish to override this, please publish the config file.
$ php artisan vendor:publish --provider="neilherbertuk\laravellimesurveyapi\LaravelLimesurveyApiProvider"
Add to following to your .env
file. The LIMESURVEY_URL
setting must match the url listed on the Global Settings
-> Interfaces
page.
LIMESURVEY_URL=
LIMESURVEY_USERNAME=
LIMESURVEY_PASSWORD=
TODO
Based on du-lei/limesurvey-api-handle