open20/prenotazionemetaverso

There is no license information available for the latest version (dev-main) of this package.

Gestione prenotazioni sale per il metaverso

dev-main 2024-10-21 15:06 UTC

README

Metaverse Room Booking Plugin.

Installation

1. The preferred way to install this extension is through composer.

Either run

composer require open20/prenotazionemetaverso

or add this row

"open20/prenotazionemetaverso": "*"

to the require section of your composer.json file.

2. Add module to your main config in common:

<?php
'modules' => [
    'prenotazionemetaverso' => [
        'class' => 'open20\prenotazionemetaverso\Module'
    ],
],

3. Apply migrations

php yii migrate/up --migrationPath=@vendor/open20/prenotazionemetaverso/src/migrations

or add this row to your migrations config in console:

<?php
return [
    '@vendor/open20/prenotazionemetaverso/src/migrations',
];

4. Check image for invitation emails

In the invitation emails there is an image, which to be displayed, must be reachable by the various email clients; it is therefore necessary to use the "test/1.2.0/11" version of "open20-cms-template" (or higher) which contains the "mail-img.png" file

5. Add metaverse congif param (if not demo)

<?php
return [
    'readyPlayerMeSubdomain' => 'subdomain',
];

6. Check the metaverse rooms ID

For the metaverse to work correctly, the room identifiers must be set in the module (in the "rooms" attribute). By default, the module has set those of the Lombardy Region metaverse

<?php
'modules' => [
    'prenotazionemetaverso' => [
        'class' => 'open20\prenotazionemetaverso\Module',
        'rooms' => ['sede_elite']
    ],
],

7. Cron

Event/meeting notifications

If you want to send notifications to the participants of an event/meeting before it actually starts, you need to add to the configuration of the "console" of the platform (usually in "main-local.php" or in "main.php"), in "controllerMap", the reference to "CronController" (contained in the "commands" directory of the plugin) and set up a cron that calls the "notifica-evento" action.

<?php
'controllerMap' => [
    'prenotazione-metaverso' => [
        'class' => 'open20\prenotazionemetaverso\commands\CronController',
    ]
],

By default, notifications are sent 10 minutes before the event/meeting; if you wish to change this setting, simply set the "notificationsBefore" module parameter with the number of minutes before the event in which you wish the notification to be sent.

<?php
'modules' => [
    'prenotazionemetaverso' => [
        'class' => 'open20\prenotazionemetaverso\Module',
        'notificationsBefore' => 20
    ],
],