phil / mentoring-bundle
Mentoring in Symfony: mentors suggested by declared criteria, accepted by both people, followed by goals, meetings and private or shared notes.
Package info
github.com/parler-haut-interagir-librement/mentoring-bundle
Type:symfony-bundle
pkg:composer/phil/mentoring-bundle
Requires
- php: >=8.5
- ext-mbstring: *
- doctrine/dbal: ^4.6
- doctrine/orm: ^3.8
- psr/clock: ^1.0
- psr/event-dispatcher: ^1.0
- symfony/config: ^8.2
- symfony/dependency-injection: ^8.2
- symfony/polyfill-php86: ^1.43
- symfony/uid: ^8.2
Requires (Dev)
- doctrine/doctrine-bundle: ^3.4
- doctrine/persistence: ^4.2
- phpunit/phpunit: ^13.4
- symfony/clock: ^8.2
- symfony/event-dispatcher: ^8.2
- symfony/event-dispatcher-contracts: ^3.8
- symfony/framework-bundle: ^8.2
- symfony/http-kernel: ^8.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 02:53:18 UTC
README
Mentoring for Symfony: mentors suggested by the criteria people declare, mentorships that start once both accept, and a follow-up by goals, meetings and notes.
phil/mentoring-bundle keeps mentoring programs in Doctrine, with the profiles people declare in them and the mentorships that pair a mentor with a mentee. A profile says which topics a person brings or seeks, which languages they speak and, for a mentor, how many mentorships they hold at once. A mentee is shown the mentors who fit, ranked by what they share, with the shared topics and languages as the reasons: nothing is inferred and no score is hidden. A mentorship is proposed by either person or by the application, and starts only once both accept; a mentor never holds more mentorships than their capacity, nor a mentee more than one per program. Its agreement sets the goals, how often the two meet and when it ends; meetings are recorded, the next one falls due, and each person writes notes shared with the other or kept for themselves. It ends completed, the moment to ask both for their review, or withdrawn. Every change is an event that carries identifiers only.
It is for any application that pairs people to learn from each other: a cohort of newcomers, a community of practice, a school, a professional association. It stores identifiers of people, never their names or addresses. Booking the meetings, sending the reminders and asking for the review stay with the application, on the bundle's events.
Status
| Part | State |
|---|---|
Program, Profile, Mentorship, Meeting and Note in Doctrine, moments in UTC |
Implemented and tested on SQLite |
Matcher and Suggestion: mentors ranked by declared topics, languages and load |
Implemented and tested |
Mentoring: declare, suggest, propose under the profiles' locks, accept, decline, agree, record, note, complete, withdraw, forget |
Implemented and tested |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, registering the bundle, the schema. |
| Configuration | The options of phil_mentoring. |
| Mentorships | Programs and profiles, suggestions, proposals and acceptance, the agreement, meetings, notes, closing, forgetting a person, the events. |
| Extension points | The ports, events and options an application chooses or replaces. |
| Testing | The bundle's tests and its benchmark. |
| Reference | Every type of the bundle, with its role. |
Quick start
composer require phil/mentoring-bundle
use Phil\MentoringBundle\Application\Mentoring; use Phil\MentoringBundle\Domain\Status\Role; use Phil\MentoringBundle\Domain\Status\Visibility; $program = $mentoring->createProgram('Newcomers 2027'); $mentoring->declare($program->id, $mentorId, Role::Mentor, ['public-speaking', 'php'], ['en', 'fr'], capacity: 2); $mentoring->declare($program->id, $menteeId, Role::Mentee, ['public-speaking'], ['fr']); $suggestions = $mentoring->suggest($program->id, $menteeId); // the best first, with what each shares $mentorship = $mentoring->propose($program->id, $mentorId, $menteeId, proposedBy: $menteeId); $mentoring->accept($mentorship->id, $mentorId); // both accepted: it starts $mentoring->agree($mentorship->id, $menteeId, ['Give a lightning talk'], frequencyDays: 14); $mentoring->addNote($mentorship->id, $mentorId, 'Outline by Friday.', Visibility::Shared); $mentoring->complete($mentorship->id, $menteeId);
Requirements
PHP 8.5 or later, Symfony 8.2 or later, Doctrine ORM 3.8 or later.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the code of conduct. Report a vulnerability privately, as the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.