PHPackages                             escolalms/course-access - 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/course-access

ActivePackage

escolalms/course-access
=======================

Escola Headless LMS Course Access

0.1.2(2y ago)06.4k↓40%3MITPHPPHP &gt;=7.4

Since Feb 17Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (14)Used By (3)

Course Access
=============

[](#course-access)

[![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Course-Access/)[![codecov](https://camo.githubusercontent.com/3d880c44d400237ce3af88f02b4e3683c308d1d76cabb0b95e4b9d62052950b1/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f436f757273652d4163636573732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/Course-Access)[![phpunit](https://github.com/EscolaLMS/Course-Access/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Course-Access/actions/workflows/test.yml)[![downloads](https://camo.githubusercontent.com/afad82c3b31cfbda177045e3cdc3ea2a0351855f8831fb45d08a75563acdc114/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f6c616c6d732f636f757273652d616363657373)](https://packagist.org/packages/escolalms/course-access)[![downloads](https://camo.githubusercontent.com/dff1551bea8592b31366739a2382fa2c1ded93888b1990005569ba3c8f5498cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f6c616c6d732f636f757273652d616363657373)](https://packagist.org/packages/escolalms/course-access)[![downloads](https://camo.githubusercontent.com/c057341bea07964c2d4b562cdc9515bf073be0194aa578b37717d6af5672cd02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573636f6c616c6d732f636f757273652d616363657373)](https://packagist.org/packages/escolalms/course-access)[![Maintainability](https://camo.githubusercontent.com/a7a11bc808d5fc966372dd6a3df45e9e09ea7d864c9d376b55f0abbc15bbda30/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30633965323539336662333065323034386639352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/EscolaLMS/Course-Access/maintainability)

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

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

This package is used to manage access to the course for individual users and user groups.

Additionally, it introduces a mechanism where users can send access enquiries with additional information, and administrators (users with appropriate permissions) can approve or remove them.

Installing
----------

[](#installing)

- `composer require escolalms/course-access`
- `php artisan migrate`
- `php artisan db:seed --class="EscolaLms\CourseAccess\Database\Seeders\CourseAccessPermissionSeeder"`

Endpoints
---------

[](#endpoints)

The endpoints are defined in [![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Course-Access/)

Tests
-----

[](#tests)

Run `./vendor/bin/phpunit` to run tests. Test details [![codecov](https://camo.githubusercontent.com/3d880c44d400237ce3af88f02b4e3683c308d1d76cabb0b95e4b9d62052950b1/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f436f757273652d4163636573732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/Course-Access)

Events
------

[](#events)

### Course Access Enquiry

[](#course-access-enquiry)

- `CourseAccessEnquiryAdminCreatedEvent` - This event is dispatched when a student creates an enquiry for course access.
- `CourseAccessEnquiryStudentCreatedEvent` - This event is dispatched to all users who have the `EnquiryStatusEnum::APPROVE_COURSE_ACCESS_ENQUIRY` permission, allowing them to approve the course access enquiry.

These events are listened to by the [escolalms/templates-email](https://github.com/EscolaLMS/Templates-Email/tree/main/src/CourseAccess) package, which sends emails based on its own logic. Additionally, notifications are stored in database.

### Course Access

[](#course-access-1)

- `CourseAssigned` and `CourseAccessStarted` - These events are dispatched when a user is assigned access to a course. It contains information about the user and the course to which access has been granted.
- `CourseUnassigned` and `CourseFinished` - These events are dispatched when a user is denied access to a course.

The [escolalms/templates-email](https://github.com/EscolaLMS/Templates-Email/tree/main/src/Courses) package also listens to the above events.

Course Access Enquiry - sequence diagram
----------------------------------------

[](#course-access-enquiry---sequence-diagram)

 ```
sequenceDiagram

    actor Student
    actor Administrator
    participant FrontApp
    participant AdminPanel
    participant Backend

    Student ->> FrontApp: Send access request
    FrontApp ->> Backend: Forward access request
    Backend ->> Backend: Process access request
    alt Request is valid
        Backend -->> Administrator: Notify about new access request
        Backend -->> Student: Send confirmation
        alt Administrator approves request
            Administrator ->> AdminPanel: Access request approval
            AdminPanel ->> Backend: Approve access request
            Backend ->> Backend: Grant access to course
            Backend ->> Student: Send access confirmation
        else Administrator remove request
            Administrator ->> AdminPanel: Access request remove
            AdminPanel ->> Backend: Remove access request
        else Setting auto_accept_access_request is true
            Backend ->> Backend: Grant access to course
            Backend ->> Student: Send access confirmation
        end
    else Request is invalid
        Backend -->> FrontApp: Send invalid request notification
        FrontApp -->> Student: Forward invalid request notification
    end

```

      Loading Permissions
-----------

[](#permissions)

Permissions are defined in [seeder](https://github.com/EscolaLMS/Course-Access/blob/main/database/seeders/CourseAccessPermissionSeeder.php).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.6% 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 ~33 days

Recently: every ~65 days

Total

13

Last Release

779d ago

### Community

Maintainers

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

---

Top Contributors

[![mako321](https://avatars.githubusercontent.com/u/59456825?v=4)](https://github.com/mako321 "mako321 (17 commits)")[![daVitekPL](https://avatars.githubusercontent.com/u/58150098?v=4)](https://github.com/daVitekPL "daVitekPL (6 commits)")[![dyfero](https://avatars.githubusercontent.com/u/59400506?v=4)](https://github.com/dyfero "dyfero (2 commits)")[![qunabu](https://avatars.githubusercontent.com/u/214608?v=4)](https://github.com/qunabu "qunabu (2 commits)")[![ArtKob](https://avatars.githubusercontent.com/u/108077902?v=4)](https://github.com/ArtKob "ArtKob (1 commits)")[![dicani0](https://avatars.githubusercontent.com/u/58490533?v=4)](https://github.com/dicani0 "dicani0 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[escolalms/headless-h5p

Headless H5P Laravel REST API

2732.6k7](/packages/escolalms-headless-h5p)[escolalms/scorm

Escola LMS SCORM management

13124.9k6](/packages/escolalms-scorm)

PHPackages © 2026

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