escolalms / yepp-chat
Escola Headless LMS Yepp Chat
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
pkg:composer/escolalms/yepp-chat
Requires
- php: >=7.4
- escolalms/auth: ^0
- escolalms/core: ^1
- escolalms/courses: ^0.4
- escolalms/model-fields: ^0
- escolalms/settings: ^0
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: >=5.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.0
README
What does it do
This package is used to communicate with the microservice responsible for chat on the Yepp platform.
Chat can be assigned to a lesson, after filling in the assistant_id parameter in the lesson.
If the lesson does not have a defined parameter, the chat will not be displayed.
Installing
- composer require escolalms/yepp-chat
- php artisan migrate
- php artisan db:seed --class="EscolaLms\YeppChat\Database\Seeders\YeppChatPermissionSeeder"
Configuration
In the configuration, you can:
- enabled- Yepp chat integration is enabled/disabled
- auth.enabled- Authorization in communication with microservice is enabled/disabled
- auth.key- If- auth.enabledtakes the value true, an access key is required
- url- Microservice URL
You can specify the parameter from the config.php file or system administration settings.
[
    'enabled' => env('YEPP_CHAT_ENABLED'),
    'auth' => [
        'enabled' => env('YEPP_CHAT_AUTH_ENABLED'),
        'key' => env('YEPP_CHAT_AUTH_KEY'),
    ],
    'url' => env('YEPP_CHAT_URL', 'http://yepp-chat-ms-backend-service:3000'),
];
Endpoints
All the endpoints are defined in swagger
Events
This package does not dispatch any events.
Permissions
Permissions are defined in seeder