Download the PHP package phil/reactions-bundle without Composer
On this page you can find all versions of the php package phil/reactions-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phil/reactions-bundle
More information about phil/reactions-bundle
Files in phil/reactions-bundle
Package reactions-bundle
Short Description Let members react to any content with emojis, the site's own included: an accessible picker, counters shown as you choose, no public count against a content.
License MIT
Homepage https://ph-il.ca
Informations about the package reactions-bundle
phil/reactions-bundle
Reactions to any content for Symfony applications, as a Live Component that also works as a plain form.
phil/reactions-bundle lets the members of a site react to an article, a page, a post or anything else the application can name. Each member has one reaction per content by default, and can change it or take it back; a site that wants more lets each member give several, each emoji once, up to a cap it chooses. The site says which reactions it offers, in labelled sources — Unicode emojis and its own emojis, each an image with a replacement text — and who sees the reactions, their counters and the names of those who reacted. A reaction can be private, such as a "not useful": it never has a public counter or names, so a site offers no reaction counted against a content in public.
It is for any Symfony application with content to respond to: a blog, documentation, a forum, a wiki, announcements.
The application names its contents as references of phil/resource (article:42), its members by a stable
identifier — never an email address — and writes one voter; the bundle
keeps the reactions, draws them with the recipes of the kit it requires, and refuses every reaction until a voter says
otherwise.
A page of many contents reads them in one query for each thing to know. Every button is the button of a plain form the component takes over, so reacting works without JavaScript; the picker adds a search and the keyboard by Stimulus. The services hold nothing between two requests of a worker.
Status
| Part | State |
|---|---|
Reaction, one per member and per content or several up to a cap, its moment in UTC; Doctrine store, and in-memory store emptied between two requests |
Implemented and tested, on SQLite |
A member named by a stable identifier of the site, @ refused |
Implemented and tested |
| The list in sources, private reactions, the visibility | Implemented and tested |
Reactions, the voter attribute, the rate limit, the events |
Implemented and tested |
ReactionBoard, the counters of a page read at once, the names as a list in the language of the page |
Implemented and tested, with a benchmark and a page measured in worker mode |
The Live Component PhilReactions and the plain form with its CSRF token and signed address |
Implemented and tested, with each kit |
| The Stimulus controllers, fetched lazily, and their paths for AssetMapper | Implemented and tested under Node, with AssetMapperBundle and StimulusBundle, and in a headless Chrome; the checks a person makes with a screen reader listed in testing |
| The erasure and the export of a member's reactions, images as media read in one query, visibility among the settings | Implemented and tested, when their package is there |
| Notifications, moderation, reputation | Not part of the bundle: they listen to the events or read the store |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, the bundle, the table, the routes, the recipes, the stylesheet. |
| Configuration | Every option, the services registered. |
| Reactions | The list, several reactions per member, private reactions, the visibility, the member, the voter, the rate limit. |
| The component | The Live Component, the plain form, a page of many contents, the accessibility, the picker. |
| Events | The events, the message bus, the erasure. |
| Extension points | What an application implements, configures or replaces. |
| Testing | The tests, the benchmark, the checks in a browser. |
| Reference | Every class and file of the bundle. |
Quick start
Requirements
PHP 8.5 or later with ext-intl, Symfony 8.2 or later, Symfony UX Live Component 3.8.1 or later, twig/intl-extra,
Doctrine DBAL 4.5 and ORM 3.7. Symfony Security, Messenger, AssetMapper, phil/media-bundle, phil/settings-bundle
and phil/privacy-bundle are optional.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and 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.
All versions of reactions-bundle with dependencies
ext-intl Version *
doctrine/dbal Version ^4.6
doctrine/orm Version ^3.8
phil/resource Version ^0.1.1@dev
psr/clock Version ^1.0
psr/event-dispatcher Version ^1.0
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/http-foundation Version ^8.2
symfony/rate-limiter Version ^8.2
symfony/routing Version ^8.2
symfony/security-csrf Version ^8.2
symfony/service-contracts Version ^3.8
symfony/translation Version ^8.2
symfony/translation-contracts Version ^3.8
symfony/uid Version ^8.2
symfony/ux-live-component Version ^3.8.1
symfony/ux-twig-component Version ^3.8
twig/intl-extra Version ^3.31
twig/twig Version ^3.31.1