{"id":19513394,"url":"https://github.com/escolalms/mattermost","last_synced_at":"2026-02-11T04:01:22.423Z","repository":{"id":40466946,"uuid":"447672324","full_name":"EscolaLMS/Mattermost","owner":"EscolaLMS","description":"Mattermost integration","archived":false,"fork":false,"pushed_at":"2025-08-28T12:26:33.000Z","size":18773,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T14:56:21.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EscolaLMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-13T16:32:06.000Z","updated_at":"2025-08-28T12:24:38.000Z","dependencies_parsed_at":"2025-04-26T04:31:48.298Z","dependency_job_id":"4be51c75-a096-4b5f-ad68-a89debe43185","html_url":"https://github.com/EscolaLMS/Mattermost","commit_stats":{"total_commits":29,"total_committers":8,"mean_commits":3.625,"dds":0.5862068965517242,"last_synced_commit":"d11c3e751c3050a20135568229418e83eb7a8254"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/EscolaLMS/Mattermost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMattermost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMattermost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMattermost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMattermost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EscolaLMS","download_url":"https://codeload.github.com/EscolaLMS/Mattermost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMattermost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T23:29:51.071Z","updated_at":"2026-02-11T04:01:22.405Z","avatar_url":"https://github.com/EscolaLMS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mattermost\n\n[![swagger](https://img.shields.io/badge/documentation-swagger-green)](https://escolalms.github.io/Mattermost/)\n[![codecov](https://codecov.io/gh/EscolaLMS/Mattermost/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/Mattermost)\n[![phpunit](https://github.com/EscolaLMS/Mattermost/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Mattermost/actions/workflows/test.yml)\n[![downloads](https://img.shields.io/packagist/dt/escolalms/mattermost)](https://packagist.org/packages/escolalms/mattermost)\n[![downloads](https://img.shields.io/packagist/v/escolalms/mattermost)](https://packagist.org/packages/escolalms/mattermost)\n[![downloads](https://img.shields.io/packagist/l/escolalms/mattermost)](https://packagist.org/packages/escolalms/mattermost)\n[![Maintainability](https://api.codeclimate.com/v1/badges/00725c6ea461fcfa2754/maintainability)](https://codeclimate.com/github/EscolaLMS/Mattermost/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/00725c6ea461fcfa2754/test_coverage)](https://codeclimate.com/github/EscolaLMS/Mattermost/test_coverage)\n\n\n## What does it do\n\nThis package is used for [Mattermost](https://mattermost.com/) integration.\n\nIt listens for Events then add/remove user for mattermost and particular channels either as standard user or admin. \n\n\n## Installing\n- `composer require escolalms/mattermost`\n\n## Example\nYou can configure the package using Facade\n```\nConfig::set('mattermost.package_status', PackageStatusEnum::ENABLED);\nConfig::set('mattermost.servers.default.host', 'localhost');\nConfig::set('mattermost.servers.default.login', 'login');\nConfig::set('mattermost.servers.default.password', 'password');\n```\n\nor `/api/admin/config` endpoint\n\n```php \n$this-\u003eactingAs($this-\u003euser, 'api')-\u003ejson(\n    'POST',\n    '/api/admin/config',\n    [\n        'config' =\u003e [\n            [\n                'key' =\u003e 'mattermost.package_status',\n                'value' =\u003e PackageStatusEnum::ENABLED,\n            ],\n            [\n                'key' =\u003e 'mattermost.servers.default.host',\n                'value' =\u003e 'localhost',\n            ],\n            [\n                'key' =\u003e 'mattermost.servers.default.login',\n                'value' =\u003e 'login',\n            ],\n            [\n                'key' =\u003e 'mattermost.servers.default.password',\n                'value' =\u003e 'password',\n            ],\n        ]\n    ]\n);\n```\n\n## Endpoints\nAll the endpoints are defined in [![swagger](https://img.shields.io/badge/documentation-swagger-green)](https://escolalms.github.io/Mattermost/)\n\n## Test\nRun `./vendor/bin/phpunit` to run tests. See tests folder as it's quite good staring point as documentation appendix.\nTest details \n[![codecov](https://codecov.io/gh/EscolaLMS/Mattermost/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/Mattermost)\n[![phpunit](https://github.com/EscolaLMS/Mattermost/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Mattermost/actions/workflows/test.yml)\n\n## Listeners\nHandling events\n- `EscolaLms\\Auth\\Events\\AccountConfirmed` =\u003e add user to Mattermost\n- `EscolaLms\\Auth\\Events\\AccountDeleted` =\u003e remove user from Mattermost\n- `EscolaLms\\Auth\\Events\\AccountBlocked` =\u003e block user account\n- `EscolaLms\\Courses\\Events\\CourseAssigned` =\u003e add user to course channel with member role\n- `EscolaLms\\Courses\\Events\\CourseUnassigned` =\u003e remove user from course channel\n- `EscolaLms\\Courses\\Events\\CourseTutorAssigned` =\u003e add user to course channel with channel_admin role\n- `EscolaLms\\Courses\\Events\\CourseTutorUnassigned` =\u003e remove user from course channel\n- `EscolaLms\\Webinar\\Events\\WebinarUserAssigned` =\u003e add user to webinar channel with member role\n- `EscolaLms\\Webinar\\Events\\WebinarUserUnassigned` =\u003e remove user from webinar channel\n- `EscolaLms\\Webinar\\Events\\WebinarTrainerAssigned` =\u003e add user to webinar channel with channel_admin role \n- `EscolaLms\\Webinar\\Events\\WebinarTrainerUnassigned` =\u003e remove user from webinar channel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fmattermost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescolalms%2Fmattermost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fmattermost/lists"}