escolalms/dictionaries

Escola Headless LMS dictionaries package
3,661
Install
composer require escolalms/dictionaries
Latest Version:0.0.5
PHP:>=8.0
License:MIT
Last Updated:Jun 3, 2024
Links: GitHub  ·  Packagist
Maintainer: qunabu

Dictionaries

swagger codecov phpunit downloads downloads downloads Maintainability phpstan

What does it do

This package is used for managing dictionaries and their expressions. You can set the number of free views of words from a given dictionary for users who are not assigned. This package is compatible with the purchasing process in Wellms. The dictionary may be a purchasable product.

Entity Relationship Diagrams

The diagram below shows the relationships between entities.

erDiagram
    Dictionary ||--o{ DictionaryWord : "has"
    Dictionary ||--o{ DictionaryUser : "has"
    DictionaryWord ||--o{ DictionaryWordCategory : "has"

    Dictionary {
        string name
        string slug
        int free_views_count
    }

    DictionaryWord {
        string word
        string description
        json data
    }

    DictionaryUser {
        datetime end_date
    }

Installing

  • composer require escolalms/dictionaries
  • php artisan migrate
  • php artisan db:seed --class="EscolaLms\Dictionaries\Database\Seeders\DictionariesPermissionSeeder"

Endpoints

The endpoints are defined in swagger

Tests

Run ./vendor/bin/phpunit to run tests. Test details codecov

Events

This package does not dispatch any events.

Listeners

This package does not listen for any events.

Permissions

This package contains permissions which you can find in DictionariesPermissionEnum. The default assignment of permissions to roles is carried out after executing the command php artisan db:seed --class="EscolaLms\Dictionaries\Database\Seeders\DictionariesPermissionSeeder"

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

21,010,090 1,982
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,282,182 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,095,827 2,586
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,372,487 272