# evoAcademy reference

> evoAcademy reference: package pieces, evoMCP tools, REST API, builder elements, tasks and the rules for access, video and certificates.

## Package pieces

| Piece | What it does |
| --- | --- |
| `com_evoacademy` | Administration, the student-facing site and the read-only REST API. |
| `plg_system_evoacademy` | Licence over `com_ajax` and the four YOOtheme Pro elements. |
| `plg_evomcp_evoacademy` | The 19 evoMCP tools. |
| `plg_webservices_evoacademy` | Joomla REST API routes. |
| `plg_privacy_evoacademy` | Exports, checks and removes a student's data. |
| `plg_task_evoacademy` | Daily maintenance and the HLS conversion queue. |
| `plg_evotheme_evoacademy` | The four elements for evoTheme. |
| evoPDF (`plg_system_evopdf`, `plg_evomcp_evopdf`) | Generates the PDF certificates. |

## evoMCP tools

They only exist if evoMCP is installed. Those that write accept `dry_run`. Those marked "approval" require human approval.

| Tool | Type | What it does |
| --- | --- | --- |
| `evoacademy_list_courses` | read | Lists courses with status, access type, price, lessons and active students. Optional `state` filter: `draft`, `published` or `archived`. |
| `evoacademy_get_course` | read | A whole course: data, modules with their lessons, question count and what is missing to publish it. |
| `evoacademy_check_course` | read | What is missing to publish a course, with stable codes. Changes nothing. |
| `evoacademy_get_exam` | read | The exam questions with their answers and which are correct. |
| `evoacademy_list_students` | read | A course's students with status, progress, best score, attempts and certificate. Filters `status` and `limit` (1 to 200). Contains personal data; emails are masked without the students permission. |
| `evoacademy_sales_report` | read | Charged and refunded orders by currency, course and month. Excludes test orders unless `include_test` is set. No personal data. |
| `evoacademy_save_course` | write | Creates a course (without `course_id`) or changes the fields sent. Does not change its state. |
| `evoacademy_set_course_state` | approval | Publishes, unpublishes or archives a course. Publishing first validates lessons, questions, price and Stripe. |
| `evoacademy_remove_course` | approval | Deletes a course with no history, or archives it if it has enrolments or orders. |
| `evoacademy_save_module` | write | Creates or changes a course module. |
| `evoacademy_save_lesson` | write | Creates or changes a lesson: filtered HTML text, or video by reference and duration. It can only point to an already uploaded Bunny video; your own video is uploaded from the administration. |
| `evoacademy_delete_lesson` | approval | Deletes a lesson and the students' progress in it. |
| `evoacademy_save_question` | write | Creates or changes a question with its answers (2 to 10, at least one correct). HTML is filtered. |
| `evoacademy_delete_question` | approval | Deletes a question. Attempts already made keep their own copy. |
| `evoacademy_invite` | approval | Invites by email: each person gets a personal link, valid for 14 days, that enrols them when opened. |
| `evoacademy_enroll` | approval | Grants access now: creates the account if the email has none, and enrols. With `notify` it emails them. |
| `evoacademy_withdraw` | approval | Removes a student's access. Their progress and certificates are kept. |
| `evoacademy_reset_attempts` | approval | Resets a student's exam attempts. The history is kept. |
| `evoacademy_revoke_certificate` | approval | Revokes a certificate: it stops being valid in public verification. |

The Stripe and Bunny keys, the notification email and retention cannot be changed through evoMCP.

## REST API (read-only)

- `GET /api/index.php/v1/evoacademy/courses`
- `GET /api/index.php/v1/evoacademy/courses/:id`
- `GET /api/index.php/v1/evoacademy/courses/:id/students`

## Builder elements

Four, for YOOtheme Pro ("evoAcademy" group) and for evoTheme (`evoacademy-*`):

| Element | What it renders |
| --- | --- |
| Course list | A grid with category, limit and columns. |
| Course detail | Cover, description, syllabus and the right button. |
| Course player | The whole classroom on its own page. |
| Continue course | The student's progress and a button to carry on. |

They are only the shell: access to lessons, video, files and the exam is decided by the component's service endpoints. Inside an element there is no page title and no redirects: with no session or no enrolment, a notice with the link is shown.

## Scheduled tasks

| Task | Recommended frequency | What it does |
| --- | --- | --- |
| evoAcademy: daily maintenance | daily | Expires access, warns 7 days before it expires, purges by retention and cleans up invitations, rate limits, accounts created by evoAcademy and never activated (30 days) and abandoned uploads. |
| evoAcademy: convert videos to encrypted HLS | every 5 minutes | Converts the next queued video with `ffmpeg`. |

## Access rules

- Students are Joomla users. The account is created automatically on payment, when starting a free course or when accepting an invitation, even if Joomla registration is closed.
- Invitations: single emails, "Name <email>" or CSV, up to 200. The link is personal and expires after 14 days.
- From each course's student list you can enrol now, withdraw, reactivate, reset attempts and export to CSV.
- If attempts run out, the student is locked out and the instructor is notified. The agency resets the attempts.
- A full refund removes access; a certificate already issued stays valid unless revoked. A partial refund is only recorded.

## Video

- **Self-hosted**: MP4 or WebM in `administrator/cache/evoacademy-private`, with `.htaccess` and `index.html`. Served through PHP with `Range` support, using a signed 5-minute token that the page renews. The type is checked by content, not by extension.
- **Chunked upload**: chunks are half of the smaller of `upload_max_filesize` and `post_max_size`. Abandoned chunks are deleted after 24 hours.
- **Bunny Stream**: the site signs each link with `sha256(key + video + expiry)`.
- **Encrypted HLS**: AES-128 with one key per video. The playlist, segments and key go through PHP endpoints that require a session and an enrolment on every request. Safari and iOS play it natively; other browsers use hls.js 1.5.17 (Apache-2.0).

Progress on a video with a known duration only completes by watching it (at least 90 %, with at least half the real time elapsed). Without a duration, it is marked by hand. None of this prevents screen recording: it is a deterrent. Public YouTube and Vimeo are not offered because they do not protect anything.

## Certificates

PDF generated with evoPDF. A 12-character code without ambiguous characters. Public verification (`view=verify`) shows only the course, the holder, the date and whether it is still valid, and limits lookups per IP. Certificates can be revoked and reissued.

---

https://evoaddons.com/en/documentation/evoacademy-reference
