Weave Code
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
Block Bundle

Block Bundle Laravel Package

arkounay/block-bundle

View on GitHub
Deep Wiki
Context7

WYSIWIG HTML editable blocks and entities bundle

Frequently asked questions about Block Bundle
Can I use Arkounay BlockBundle in Laravel? Or is it strictly for Symfony?
This bundle is designed for Symfony 3.x, not Laravel. While Laravel shares some Symfony components, this package relies heavily on Symfony’s Doctrine, Twig, and routing systems, making it incompatible without significant refactoring. For Laravel, consider alternatives like Spatie’s Laravel Media Library or custom TinyMCE integrations.
What Laravel versions does Arkounay BlockBundle support?
This bundle does not support Laravel at all—it’s built for Symfony 3.x. If you’re using Laravel, you’ll need a different solution. For Symfony 4/5+, the bundle would require manual migration work due to deprecated features like AppKernel.php and TinyMCE 4.4.3.
How do I install Arkounay BlockBundle in Symfony 3?
Run `composer require arkounay/block-bundle`, register the bundle in `AppKernel.php`, import the routing in `routing.yml`, and install assets with `php bin/console assets:install`. Include the CSS/JS in your Twig templates as shown in the README. Ensure jQuery and TinyMCE 4.4.3 are loaded before the bundle’s scripts.
Is Arkounay BlockBundle still maintained? Should I use it for new projects?
No, the bundle is archived since 2017 with no updates. It’s tied to Symfony 3 and TinyMCE 4.4.3, which are outdated. For new projects, consider modern alternatives like FOSCKEditorBundle (CKEditor) or EasyAdmin, or build a custom solution with TinyMCE 5/6 and Laravel’s Blade.
How do I migrate Arkounay BlockBundle from Symfony 3 to Symfony 4/5+?
Migration requires replacing `AppKernel.php` registration with `config/bundles.php`, updating Doctrine entities for PHP 8.x, and modernizing asset handling (e.g., Webpack Encore for TinyMCE). TinyMCE 4.4.3 must be upgraded to a newer version, which may need custom JS template overrides. This is non-trivial and may not be worth the effort for most projects.
Can I use a different WYSIWYG editor like CKEditor or Quill instead of TinyMCE?
The bundle is tightly coupled to TinyMCE 4.4.3, so swapping editors would require extensive refactoring of the JavaScript and Twig templates. For Symfony 4/5+, consider alternatives like FOSCKEditorBundle (CKEditor) or building a custom solution with Quill.js and Laravel’s Blade directives.
How do I handle permissions for inline editing in Arkounay BlockBundle?
The bundle uses a Twig function `has_inline_edit_permissions()` to conditionally load TinyMCE and render editable fields. Users without permissions see static content. For granular control, extend this logic in your security layer (e.g., Symfony’s voter system) and pass the result to Twig via a custom filter.
What are the performance implications of using Arkounay BlockBundle for high-traffic sites?
The bundle uses AJAX for saving edits, which may not scale well for high-frequency writes (e.g., 1000+ edits/day). Consider adding caching (e.g., Redis) for frequently accessed blocks or implementing optimistic locking in Doctrine to prevent race conditions. For heavy usage, a custom solution with batch processing might be better.
How do I integrate Arkounay BlockBundle with Webpack Encore or Vite in Symfony 4/5+?
The bundle’s static TinyMCE and jQuery includes won’t work directly with Webpack. You’d need to manually bundle these dependencies or use CDN fallbacks. For Symfony 4/5+, replace the bundle’s asset includes with Webpack entries for TinyMCE 5/6 and jQuery, ensuring no global JS conflicts by scoping them to your component.
Are there security risks using TinyMCE 4.4.3 with Arkounay BlockBundle?
Yes, TinyMCE 4.4.3 has known vulnerabilities (e.g., CVE-2019-10776). If you proceed, isolate the editor in an iframe or shadow DOM to limit exposure. For production, upgrade TinyMCE to version 5/6 and patch any custom templates. Alternatively, use a maintained bundle like FOSCKEditorBundle with CKEditor, which receives security updates.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware