PHPackages                             webtimal/vite-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webtimal/vite-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webtimal/vite-php
=================

Integrates Vite assets into PHP apps, supporting development HMR and production builds.

v1.0.0(3mo ago)02↓90.9%MITPHPPHP &gt;=8.2

Since Mar 20Pushed 3mo agoCompare

[ Source](https://github.com/webtimal/vite-php)[ Packagist](https://packagist.org/packages/webtimal/vite-php)[ RSS](/packages/webtimal-vite-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 [![Laravel Logo](https://raw.githubusercontent.com/webtimal/vite-php/main/vite-php.svg)](https://raw.githubusercontent.com/webtimal/vite-php/main/vite-php.svg)

 [![PHP 8.2+](https://camo.githubusercontent.com/233addbd8bc6c491cd7a929fd0305ab4d0144a078f8f346dfeb9421d929ac128/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://php.net)

About
-----

[](#about)

**vite-php** is a lightweight library for integrating Vite built assets with any PHP application.

By parsing Vite’s `manifest.json`, it resolves asset URLs and generates the required `` and `` tags.

HMR is supported through automatic `hot` file detection, enabling a seamless development workflow.

Installation
------------

[](#installation)

```
composer require webtimal/vite-php
```

Usage
-----

[](#usage)

### 1. Initialize a new Vite instance

[](#1-initialize-a-new-vite-instance)

```
