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
Vite Php Twig

Vite Php Twig Laravel Package

userfrosting/vite-php-twig

Vite integration for PHP and Twig: render script and link tags from Vite's build manifest, support the dev server with hot module replacement, and wire up asset entry points through a simple Twig extension. Built for UserFrosting but usable in any PHP/Twig app.

Deep Wiki
Context7

VitePHP Twig connects Vite with PHP and Twig, giving server-rendered applications access to Vite's dev server and production build assets. It resolves hashed filenames from the Vite manifest and exposes them to templates, so you never hardcode asset URLs.

In development it targets the Vite dev server for hot module replacement; in production it reads manifest.json and emits the correct versioned paths.

  • Twig functions/extension for entry-point script and style tags
  • Manifest-based asset resolution with hashed filenames
  • Dev-server mode with automatic HMR client injection
  • Configurable manifest path, base URL, and build directory
  • Framework-agnostic core with UserFrosting integration
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.
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment