Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Message Bundle

Message Bundle Laravel Package

ornicar/message-bundle

ornicar/message-bundle is a lightweight Symfony bundle for adding private user-to-user messaging to an application. It provides Doctrine-backed message and conversation entities plus integration points for inbox-style communication, making it easy to wire basic messaging into existing Symfony projec...

View on GitHub
Deep Wiki
Context7

Provides user-to-user messaging features for your Symfony2 application.

Frequently asked questions about Message Bundle
Can I use ornicar/message-bundle in a Laravel application?
No. ornicar/message-bundle is a Symfony bundle, not a Laravel package. It depends on Symfony's service container, security token storage, event dispatcher, and Doctrine ORM mappings, none of which map directly to Laravel's container, Auth guards, event bus, or Eloquent. Treat it as a reference design rather than a Composer dependency for a Laravel app.
Does ornicar/message-bundle support Laravel 10/11 or PHP 8?
It does not support Laravel at all, so Laravel 10/11 support is not applicable. It is a pre-successor Symfony 2-era bundle, and its Doctrine annotation-style mapping and Symfony APIs are likely incompatible with PHP 8.x and modern Doctrine. In practice, Composer resolution or runtime bootstrapping is likely to fail before you can evaluate features.
Is ornicar/message-bundle still maintained?
No. The author has discontinued the bundle and redirects users to FriendsOfSymfony/FOSMessageBundle for Symfony. The repository has very low adoption, few or no dependents, and no security response channel. If you are on Symfony, evaluate the successor; if you are on Laravel, do not adopt it.
What does OrnicarMessageBundle actually provide?
It provides a lightweight private messaging data model: conversation threads, messages, participants linking users to threads, and per-participant message metadata for read/deleted state. It also includes inbox-style conversation listings, Twig templates, and Doctrine-backed entities. The durable value is the separation of conversation, content, membership, and per-user state.
How do I install ornicar/message-bundle?
For a Symfony app you would install it with Composer and register the bundle, then configure Doctrine mappings. For a Laravel app, installation is not recommended because there is no Laravel service provider, publishable config, migrations, or facade. Even on modern Symfony stacks, expect dependency resolution problems.
Should I port OrnicarMessageBundle to Laravel or build messaging from scratch?
For Laravel, build the feature in Eloquent and use the bundle only as a data-model reference. Skimming the four entities is roughly half a day; implementing threaded direct messages in Laravel is days, not weeks. Porting the bundle itself is a build with a reference design attached, not a package adoption.
What Laravel alternatives should I evaluate for private messaging?
Evaluate maintained Laravel-native messaging packages or build in-house, depending on whether you need flash notifications, threaded direct messages, or real-time chat. Laravel's notification system covers simple notifications, but not inbox-style threads. For Symfony estates, FOSMessageBundle is the only defensible successor path.
What security risks come with porting this messaging bundle to Laravel?
Message bodies are user-generated content, so stored XSS and unsafe markup rendering are the main risks if you copy templates carelessly. Thread and participant authorization is the other critical area: a missing membership check creates an IDOR that lets one user read another's inbox. A copy-paste port makes those issues your bugs with no upstream review.
How should I test a Laravel messaging port based on this bundle?
Test authorization first: every thread read, reply, delete, and inbox query must verify participant membership. Add tests for per-participant read/deleted metadata, XSS-safe rendering of message bodies, and retention or deletion behavior. Also test edge cases such as deleted participants, empty threads, and pagination.
What database schema should I copy from OrnicarMessageBundle?
Copy the concepts, not the Doctrine mapping: a Thread table, a Message table linked to the thread, a Participant join table linking users to threads with lastSeenAt, and per-participant message state for read/deleted flags. In Laravel, implement these as Eloquent models with foreign keys, indexes, and policies. Do not copy annotation mappings or Symfony-specific assumptions.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager