fsi/news-bundle
FSi News Bundle is a Symfony/PHP package for adding a lightweight news section to your site, with article management, listing and detail views, and adaptable templates to help you publish updates quickly.
composer.json first. Given the 2015-03-13 release and the FSi/Symfony2 era, expect constraints like symfony/symfony: ~2.3 and php: >=5.3.3. On any modern Symfony (5/6/7) or PHP 8, composer require fsi/news-bundle will either fail dependency resolution or pull an incompatible tree. Decide up front whether you are on a legacy Symfony 2.x app (where this bundle is usable) or a modern app (where you should vendor the code, not the package).new FSi\Bundle\NewsBundle\FSiNewsBundle() to AppKernel::registerBundles().Resources/config/routing.xml (or .yml) in the bundle for the exposed routes, then add the import in app/config/routing.yml:
fsi_news:
resource: "@FSiNewsBundle/Resources/config/routing.xml"
prefix: /news
DependencyInjection/Configuration.php for the config tree (likely a fsi_news root key with entity class / driver options). If none exists, the bundle may rely on auto-discovery of its Doctrine mapping.Entity\News); use doctrine:schema:update --dump-sql or, better, generate a migration rather than letting the bundle dictate your schema.Resources/views/. That single request exercises the entity, repository, controller, and template layer at once and tells you quickly whether the bundle is functional in your app.Entity\News, add your own fields (slug, cover image, SEO metadata, categories), and point the bundle's config at your subclass where it supports it. If it doesn't, fork the entity into your AppBundle.{% extends %} / Resources/FSiNewsBundle/views/... override path is the cleanest customisation point — copy the bundle's templates into your app's Resources/FSiNewsBundle/views/ tree and modify them there. Avoid editing vendor/.fsi/datatable-bundle or SonataAdmin for CRUD grids. If you need an admin, wire the entity into your existing admin tooling rather than relying on any built-in admin the bundle may or may not provide.symfony/cache / HTTP cache. Cache the rendered response keyed by slug and purge on publish/save via a Doctrine listener.NewsProvider service in front of the bundle so your controllers depend on your interface, not on FSi\Bundle\NewsBundle\Entity\News. When (not if) you migrate off the bundle, only the provider changes.count() on nullable values, missing scalar type hints, possibly deprecated getMock-style tests, and no declare(strict_types=1). Static analysis (PHPStan at a low level) will surface the rough edges quickly.News entity that clashes with your own, you'll get silent schema drift. Always generate migrations and diff them against what the bundle expects.DependencyInjection/FSiNewsExtension.php before guessing config keys.app/console debug:container fsi_news and debug:router will show you exactly what the bundle registered — faster than reading the source.News entity plus a list/detail controller, it's usually cheaper to extract those ~300 lines into your own bundle than to maintain a dependency on an unmaintained package.How can I help you explore Laravel packages today?