nextgen-tech / ewus-laravel
v1.0.0
2020-10-13 07:14 UTC
Requires
- php: ^7.3
- illuminate/console: ^6.0|^7.0|^8.0
- illuminate/contracts: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
- nextgen-tech/ewus: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.12.43
This package is auto-updated.
Last update: 2024-11-13 16:17:22 UTC
README
This package is Laravel wrapper for nextgen-tech/ewus package.
Requirements
Installation
composer require nextgen-tech/ewus-laravel
Next run artisan command to set current password to eWUŚ:
php artisan ewus:password --init
Configuration (.env)
Base
- EWUS_SANDBOX_MODE (default: false) - disables/enables sandbox mode
- EWUS_CONNECTION (default: http) - connection used for communication
Connection
- EWUS_CONNECTION_TIMEOUT (used only by http connection) - duration to timeout request, in seconds
Password
- EWUS_PASSWORD_LENGTH (default: 8) - random generated password length
Credentials
- 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
Scheduling password changes
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'); }