This package is Laravel wrapper for nextgen-tech/ewus package.
Version | Laravel | PHP |
---|---|---|
1.x | >= 6.0 | >= 7.3 |
composer require nextgen-tech/ewus-laravel
Next run artisan command to set current password to eWUŚ:
php artisan ewus:password --init
- EWUS_SANDBOX_MODE (default: false) - disables/enables sandbox mode
- EWUS_CONNECTION (default: http) - connection used for communication
- EWUS_CONNECTION_TIMEOUT (used only by http connection) - duration to timeout request, in seconds
- EWUS_PASSWORD_LENGTH (default: 8) - random generated password length
- EWUS_CREDENTIALS_DOMAIN - operator domain
- EWUS_CREDENTIALS_LOGIN - operator login
- EWUS_CREDENTIALS_OPERATOR_ID (default: null) - operator identificator, required only for certain domains
- EWUS_CREDENTIALS_OPERATOR_TYPE (default: null) - operator type, required only for certain domains
eWUŚ requires password changes every two weeks. We recommend changing it more frequently to be sure it will not expire. To automate this process you can create schedule which will call artisan command:
// app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
// other schedules
$schedule->command('ewus:password --random')->weeklyOn(1, '00:00');
}