phil / groups-bundle
Give clubs and teams a home of their own: groups with visibility and join rules, roles, recurring meetings, attendance for organizers, modules per group.
Package info
github.com/parler-haut-interagir-librement/groups-bundle
Type:symfony-bundle
pkg:composer/phil/groups-bundle
Requires
- php: >=8.5
- ext-mbstring: *
- doctrine/orm: ^3.8
- phil/recurrence: ^0.1@dev
- phil/spaces: ^0.1@dev
- phil/trust-levels: ^0.1@dev
- psr/clock: ^1.0
- psr/event-dispatcher: ^1.0
- symfony/clock: ^8.2
- symfony/config: ^8.2
- symfony/dependency-injection: ^8.2
- symfony/uid: ^8.2
Requires (Dev)
- doctrine/dbal: ^4.6
- phpunit/phpunit: ^13.4
- symfony/cache: ^8.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 01:33:18 UTC
README
Run clubs and teams in Symfony: groups with visibilities, join rules and roles, recurring meetings, attendance seen by organizers, modules per group.
phil/groups-bundle is a Symfony bundle for member groups — a chess club, a game table, a study team. Each group has a page, its members and their roles, its meetings, and the modules it chooses from the application's space registry.
- Four visibilities: a public group shows everything to everyone; an unlisted one does the same for whoever has its address and stays out of the directory; a private one shows its card to everyone and its content to its members; a secret one is not found by anyone who is neither a member nor invited.
- Three ways of joining: at once, on a request an organizer approves, or on an invitation only. Inviting a person who asked approves the request.
- Roles that keep the group alive: organizers, co-organizers and members. Organizers and co-organizers manage the members; only an organizer revises, deletes or gives roles. The last organizer neither leaves, is removed nor steps down: another member is made an organizer first.
- Creation behind a trust level: by default a member creates a group once the trust ladder of
phil/trust-levelsopens the privilegecreate_group; an application opens creation to everyone or writes its own policy. - Modules through
phil/spaces: each group is a space of kindgroup. New groups enable the configured modules; a member's permissions come from the roles the space gives them, so a group may hand the attendance to its co-organizers. - Recurring meetings: an RFC 5545 rule from
phil/recurrence, kept on the wall clock of a named time zone so that a weekly meeting at 19:00 stays at 19:00 across the change of hour. Occurrences are read by whoever sees the group's content, with bounds on every listing. - Attendance for organizers only: recorded once an occurrence has started, for active members, and read only with
the permission
meetings.attendance, held by organizers by default. - Forgetting a person:
forgetMember()removes every membership and attendance row of a person and names the groups left without an organizer. - Events with identifiers only, PSR-14, and services that keep nothing between requests.
Status
| Part | State |
|---|---|
| Groups, visibilities, ways of joining, slugs | Implemented and tested |
| Memberships: join, request, invite, approve, leave, remove, roles, last organizer | Implemented and tested |
| Creation policies: trust level, open, the application's own | Implemented and tested |
Modules and permissions through the space registry, the meetings module |
Implemented and tested |
| Meetings once or recurring, occurrences, attendance | Implemented and tested |
| The page and directory read models | Implemented and tested |
| Doctrine and memory stores, PSR-14 events | Implemented and tested |
| Twig templates of the page and the directory, joining by rule, waiting lists for meetings | Not written |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, installing, the services the bundle needs. |
| Configuration | Every option, with an example. |
| Groups | Visibilities, ways of joining, roles, memberships, forgetting a person, the page and the directory. |
| Meetings | Scheduling, occurrences, time zones, attendance and its permissions. |
| Extension points | The services to replace, the events, the module to register. |
| Testing | The bundle's tests, and how to test code that uses groups. |
| Reference | Every public type, with its role. |
Quick start
// config/bundles.php Phil\GroupsBundle\PhilGroupsBundle::class => ['all' => true],
# config/packages/phil_groups.yaml phil_groups: default_modules: [meetings]
use Phil\GroupsBundle\Application\Groups; use Phil\GroupsBundle\Application\Meetings; use Phil\GroupsBundle\Domain\Enum\JoinPolicy; use Phil\GroupsBundle\Domain\Enum\Visibility; $group = $groups->create('member-17', 'chess-club', 'Chess club', 'Tuesday evenings.', Visibility::Private, JoinPolicy::Request); $groups->join($group->id(), 'member-42'); // a request $groups->approve($group->id(), 'member-17', 'member-42'); // now a member $meeting = $meetings->schedule( $group->id(), 'member-17', 'Weekly game', new DateTimeImmutable('2026-12-08 19:00', new DateTimeZone('America/Toronto')), 'FREQ=WEEKLY;BYDAY=TU', );
Requirements
PHP 8.5 or later with ext-mbstring, Symfony 8.2 or later, and Doctrine ORM 3.8 or later for the Doctrine store.
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.