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

Website Bundle Laravel Package

icymat/website-bundle

Website bundle for PHP apps that groups common site-building pieces—page handling, routing, and frontend scaffolding—into one installable package. It aims to cut boilerplate setup, but with no stars or community activity, docs and long-term support are uncertain. Review the source before adopting.

View on GitHub
Deep Wiki
Context7

Getting Started

  • Install with composer require vendor/package; the 0.2 “correct composer.json” note means package metadata/autoloading should be fixed, so verify normal Composer install and Laravel package discovery work before adding custom registration.
  • Look first at: composer.json for autoload/provider discovery, the README for routing syntax, the package service/resource provider, and any published config/twig.php or routes file.
  • Publish package resources if the provider supports it: php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider". Prefer tag-based publishing if documented.
  • First use case: define one simple route, render one Twig template, and expose one Twig method/function. Keep it small: install, publish, create template, add route, call helper, confirm output.

Implementation Patterns

  • Simple routing: Keep package routes in a small dedicated file or routes/web.php; use named routes so Twig templates can generate URLs. Apply Laravel middleware (auth, throttle, etc.) at the route level rather than inside templates.
  • Twig methods: Register small, deterministic template helpers through the package’s documented extension/config point. Keep methods presentation-focused; move domain logic into services/actions and pass prepared data into the view.
  • Resource provider: Publish config/views once, then override package views under resources/views/vendor/... rather than editing vendor/. Treat published config as application config and commit it.
  • Day-to-day workflow: add route → render Twig template → call helper → test response. Use php artisan route:list to verify routes and Laravel’s HTTP tests to assert rendered output.
  • Integration tip: pass only needed data from controllers into Twig; use Laravel’s route/model binding where supported, but verify package routing handles it before relying on advanced route features.

Gotchas and Tips

  • 0.2 is early; pin the version and read the changelog before upgrading. Public APIs for routing and Twig method registration may still change.
  • After updating, run composer dump-autoload and confirm the provider is discovered. If not, register it manually in bootstrap/providers.php or config/app.php.
  • Resource publishing can overwrite local changes; publish first, then customize. Use --force only when you intend to replace published files.
  • Twig helper naming collisions are easy to create; namespace method names and keep them side-effect free. Clear Twig/Laravel caches when changing helper registration.
  • Simple routing may not cover every Laravel route feature. Test route caching, middleware, route names, and model binding before standardizing on it.
  • Debug with php artisan route:list, php artisan config:clear, php artisan view:clear, and php artisan cache:clear. If a Twig method is missing, check registration order and whether the template cache is stale.
  • Extension points to watch: custom Twig extensions/methods, route macros, view composers, and published resource tags. Prefer documented extension points over editing vendor code.
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections