turksoap-laravel
This package is for accessing amazon turk from laravel, (*1)
This package is to overcome the problem of laraturk( https://github.com/pauly4it/laraturk.git) which is not designed for external experiment design., (*2)
This package used the library file that is not official to amazon but they have provided it to their site for use.
Not all operations are implemented now, but I will provided a clear package which will be able to do all sorts of work for amazon mechanical turk research., (*3)
Installation, (*4)
Install by adding turksoap to your composer.json file:, (*5)
require : {
"mahbubcsedu/laraturksoap": "dev-master"
}
or with a composer command:, (*6)
composer require "mahbubcsedu/laraturksoap": "dev-master"
After installation, add the provider to your config/app.php providers:, (*7)
'mahbubcsedu\TurkSoap\TurkSoapServiceProvider',
and the facade to config/app.php aliases:, (*8)
'TurkSoap' => 'mahbubcsedu\turksoap\Facades\TurkSoap',
Configuring TurkSoap, (*9)
First publish the config file:, (*10)
php artisan vendor:publish
This will create a turksoap.php config file. There you can define default values of parameters used in all functions., (*11)
If you will only be creating one type of HIT, you should specify all the default values in the config file., (*12)
You will also need to set two environment variables which the laraturk.php config file uses: AWS_ROOT_ACCESS_KEY_ID and AWS_ROOT_SECRET_ACCESS_KEY. If these are not set and you try to use LaraTurk, LaraTurk will throw a LaraTurkException., (*13)