Download the PHP package phil/mentions-bundle without Composer

On this page you can find all versions of the php package phil/mentions-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mentions-bundle

phil/mentions-bundle

@mentions of members in a text, and their notification, for Symfony applications.

phil/mentions-bundle lets a writer name another member in what they write — @ada in a comment, a proposal, a page — and lets that member know. When the application saves a text, the bundle finds its mentions: handles typed after @ in a plain text or in Markdown, with a pattern the application chooses, or the mention marks a UJO (Universal JSON Output) document holds, <a data-mention="user:42">@Ada</a>. The application's member directory resolves them; the author, and the members who may not see the content, are left out; the others are stored for that text, and only the members it mentions for the first time are announced and notified. Saving the same text again notifies nobody; an edit notifies only the members it adds. A Twig filter turns the handles of a text into links to the members' profiles, and a Stimulus controller offers the members as the writer types @ in a plain text field.

It is for any Symfony application where people write to each other: comments on a draft, proposals in a shared project, posts in a community, messages of a team. The application names its members as references of phil/resource (user:42), and writes one service, the directory, that finds them by handle or reference, searches them, and says whether one may see a piece of content. The notification goes through phil/notifications-bundle, as the type member.mentioned, on the channels each member chose.

It is a Symfony bundle on phil/resource, phil/ujo, phil/notifications-bundle and Doctrine ORM: mentions live in one table, or in memory for tests. With phil/block-editor-bundle, the editor's @ menu searches the directory; with phil/comments-bundle, comments are recorded and their authors named from it; with phil/settings-bundle, each member chooses whether to be notified. The mentions of social networks and forges serve as models of behaviour.

Status

Part State
Mention, MentionPattern: a handle or a mark, what a handle looks like Implemented and tested
TextMentions, UjoMentions: the mentions of a plain text, of Markdown, of a UJO document Implemented, tested and fuzzed
MentionRecorder, Mentions: mentions stored per subject, the diff of an edit, MemberMentioned Implemented and tested
MentionLimits: the members per text and the length of a text Implemented and tested
Doctrine and in-memory stores Implemented and tested, on SQLite, MySQL 8 and PostgreSQL 17; rows added by an upsert, the store in memory emptied between requests
NotifyMentionedMember, the member.mentioned type on the centre, email and Web Push, MentionPreferences Implemented and tested
MentionLinker and the mentions Twig filter Implemented and tested
MemberReferenceSearch, CommentMentions, RecordCommentMentions, MemberAuthorDirectory: the integrations Implemented and tested
The mention controller: the @ autocomplete of plain text fields Implemented; pure modules tested under Node, the controller driven in Chrome by the browser suite
The Flex recipe: the bundle, its configuration and a directory to fill Written in recipe/0.1, for the recipes repository of PHIL

Documentation

Document What it covers
Installation Requirements, enabling the bundle, the table, the directory, the other bundles.
Configuration Every option, and the services registered.
Mentions Handles, the pattern, Markdown, UJO marks, the limits.
Recording Subjects, contexts, visibility, edits, the event and the stores.
Notifications The notification type, its translations, the members' preference.
Rendering The mentions filter and MentionLinker.
Integrations The block editor, the comments and the settings.
JavaScript The controller, its values, what it does, its modules and the stylesheet.
Exceptions The bundle's exceptions.
Extension points What an application implements, configures, replaces or relies on.
Testing The PHP and Node tests, the benchmarks, the fuzz target and the checks in a browser.
Reference Every class and module of the bundle, with its role.

Quick start

Requirements

PHP 8.5 or later, Symfony 8.2, Doctrine ORM 3, phil/resource, phil/ujo and phil/notifications-bundle. For the filter, Twig 3; for the controller, Stimulus 3 and the routes of phil/block-editor-bundle.

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 mentions-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-mbstring Version *
doctrine/dbal Version ^4.5
doctrine/orm Version ^3.7
phil/notifications-bundle Version ^0.1@dev || ^0.2@dev
phil/resource Version ^0.1@dev
phil/ujo Version ^0.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/service-contracts Version ^3.6
symfony/uid Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/mentions-bundle contains the following files

Loading the files please wait ...