PHPackages                             escolalms/consultations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. escolalms/consultations

ActivePackage

escolalms/consultations
=======================

Escola Headless LMS Consultations

0.3.10(2mo ago)014.9k↓50%4MITPHPPHP &gt;=7.4CI passing

Since Feb 4Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/EscolaLMS/Consultations)[ Packagist](https://packagist.org/packages/escolalms/consultations)[ RSS](/packages/escolalms-consultations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (117)Used By (4)

Consultations
=============

[](#consultations)

One to one conversation package

[![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Consultations/)[![codecov](https://camo.githubusercontent.com/8161e7c46c8bfee2de91e049935312f7a20974ca012ca4272fc0e8c91e85b8a6/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f436f6e73756c746174696f6e732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/Consultations)[![phpunit](https://github.com/EscolaLMS/Consultations/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Consultations/actions/workflows/test.yml)[![downloads](https://camo.githubusercontent.com/4ef01e979b560928b8d0daf968470a9542dcf586e69b3e67065a45224364e49c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f6c616c6d732f636f6e73756c746174696f6e73)](https://packagist.org/packages/escolalms/consultations)[![downloads](https://camo.githubusercontent.com/20202a10251173baf251461cff29f609e89e6fed54cc93925d82b1d5f22e0d2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f6c616c6d732f636f6e73756c746174696f6e73)](https://packagist.org/packages/escolalms/consultations)[![downloads](https://camo.githubusercontent.com/5f31b8ce50ddf102c9eb417649b93cb309d9d4afea7b12bffd6ab36f34d22932/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573636f6c616c6d732f636f6e73756c746174696f6e73)](https://packagist.org/packages/escolalms/consultations)[![Maintainability](https://camo.githubusercontent.com/a7a11bc808d5fc966372dd6a3df45e9e09ea7d864c9d376b55f0abbc15bbda30/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30633965323539336662333065323034386639352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/EscolaLMS/Consultations/maintainability)

What does it do
---------------

[](#what-does-it-do)

This package is used for creating Consultation for EscolaLms.

Installing
----------

[](#installing)

- `composer require escolalms/consultations`
- `php artisan migrate`
- `php artisan db:seed --class="EscolaLms\Consultations\Database\Seeders\ConsultationsPermissionSeeder"`

Schedule
--------

[](#schedule)

- In App\\Console\\Kernel to method schedule add
    - `$schedule->job(new ReminderAboutConsultationJob(ConsultationTermReminderStatusEnum::REMINDED_HOUR_BEFORE))->everyFiveMinutes()` - reminder about to consultation before one hour, executed every 5 minutes
    - `$schedule->job(new ReminderAboutWebinarJob(ConsultationTermReminderStatusEnum::REMINDED_DAY_BEFORE))->everySixHours();` - reminder about to consultation before one day, executed every 6 hours

Endpoints
---------

[](#endpoints)

All the endpoints are defined in [![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Consultations/)

Tests
-----

[](#tests)

Run `./vendor/bin/phpunit --filter=Consultation` to run tests. See [tests](tests) folder as it's quite good staring point as documentation appendix.

Test details [![codecov](https://camo.githubusercontent.com/8161e7c46c8bfee2de91e049935312f7a20974ca012ca4272fc0e8c91e85b8a6/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f436f6e73756c746174696f6e732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/Consultations) [![phpunit](https://github.com/EscolaLMS/Consultations/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Consultations/actions/workflows/test.yml)

Events
------

[](#events)

- `EscolaLms\Consultations\Events\ApprovedTerm` =&gt; Event is dispatched when trainer approved term reported with buyer. Event refers to users, who have permissions students
- `EscolaLms\Consultations\Events\ApprovedTermWithTrainer` =&gt; Event is dispatched when trainer approved term reported with buyer. Event refers to users, who have permissions tutor
- `EscolaLms\Consultations\Events\ChangeTerm` =&gt; Event is dispatched when trainer changes term in buyed consultations. Event refers to users, who have permissions students
- `EscolaLms\Consultations\Events\RejectTerm` =&gt; Event is dispatched when trainer rejects term reported with buyer. Event refers to users, who have permissions students
- `EscolaLms\Consultations\Events\RejectTermWithTrainer` =&gt; Event is dispatched when trainer rejects term reported with buyer. Event refers to users, who have permissions tutor
- `EscolaLms\Consultations\Events\ReminderAboutTerm` =&gt; Event is dispatched after execute cron job `EscolaLms\Consultations\Jobs\ReminderAboutConsultationJob`, Event is dispatched when deadline for purchased consultation before 1 hours and 1 day. Event refers to users, who have permissions students
- `EscolaLms\Consultations\Events\ReminderTrainerAboutTerm` =&gt; Event is dispatched some time before start consultation. Event refers to users, who have permissions tutor
- `EscolaLms\Consultations\Events\ReportTerm` =&gt; Event is dispatched after reported term with buyer consultation

Listeners
---------

[](#listeners)

- `EscolaLms\Webinar\Listeners\ReminderAboutTermListener` =&gt; Listener execute a method that singed the status in the webinar reminder

How to use this on frontend.
----------------------------

[](#how-to-use-this-on-frontend)

### Admin panel

[](#admin-panel)

**Left menu**

[![Menu](docs/menu.png "Menu")](docs/menu.png)

**List of consultations**

[![List of consultations](docs/list.png "List of consultations")](docs/list.png)

**Creating/editing consultation**

[![Creating/editing consultation](docs/new_consultation.png "Creating or editing consultation")](docs/new_consultation.png)

### Front Application

[](#front-application)

See [implementation](https://github.com/search?q=repo%3AEscolaLMS%2FFront%20Consultation&type=code) in the [demo](https://demo.escolalms.com).

Permissions
-----------

[](#permissions)

Permissions are defined in [seeder](vendor/escolalms/consultations/database/seeders/ConsultationsPermissionSeeder.php)

Database relation
-----------------

[](#database-relation)

1. `Author` Consultation is related belong to with User
2. `ProposedTerms` Consultation model has many to models ConsultationProposedTerm
3. `Categories` Consultation belongs to many with models Categories
4. `Users` Consultation is related belongs to many with User which bought consultation
5. `Terms` Consultation model has many to models ConsultationUserPivot. It is reported terms

```
Consultation 1 -> 1 Author
Consultation 1 -> n ProposedTerms
Consultation 1 -> n Categories
Consultation 1 -> n Users
Consultation 1 -> n Terms

```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance86

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~112 days

Total

110

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c857f3115c790c573d0617d7e9ba4011269ef7b9dfdb003dc4388846a62b14f7?d=identicon)[qunabu](/maintainers/qunabu)

---

Top Contributors

[![HerbertIV](https://avatars.githubusercontent.com/u/62691459?v=4)](https://github.com/HerbertIV "HerbertIV (92 commits)")[![daVitekPL](https://avatars.githubusercontent.com/u/58150098?v=4)](https://github.com/daVitekPL "daVitekPL (47 commits)")[![mako321](https://avatars.githubusercontent.com/u/59456825?v=4)](https://github.com/mako321 "mako321 (13 commits)")[![qunabu](https://avatars.githubusercontent.com/u/214608?v=4)](https://github.com/qunabu "qunabu (5 commits)")[![dicani0](https://avatars.githubusercontent.com/u/58490533?v=4)](https://github.com/dicani0 "dicani0 (4 commits)")[![KrzysztofDziedziechEscolasoft](https://avatars.githubusercontent.com/u/96292232?v=4)](https://github.com/KrzysztofDziedziechEscolasoft "KrzysztofDziedziechEscolasoft (2 commits)")[![dyfero](https://avatars.githubusercontent.com/u/59400506?v=4)](https://github.com/dyfero "dyfero (1 commits)")[![ArtKob](https://avatars.githubusercontent.com/u/108077902?v=4)](https://github.com/ArtKob "ArtKob (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/escolalms-consultations/health.svg)

```
[![Health](https://phpackages.com/badges/escolalms-consultations/health.svg)](https://phpackages.com/packages/escolalms-consultations)
```

###  Alternatives

[escolalms/headless-h5p

Headless H5P Laravel REST API

2732.6k8](/packages/escolalms-headless-h5p)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
