PHPackages                             highliuk/vite - 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. highliuk/vite

ActiveLibrary

highliuk/vite
=============

Parse Vite.js manifest file easily and print tags in PHP to enjoy HMR

1.0.1(2y ago)01.4k↓50%MITPHP

Since Jan 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/HighLiuk/vite)[ Packagist](https://packagist.org/packages/highliuk/vite)[ RSS](/packages/highliuk-vite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Vite.js Manifest Parser for PHP
===============================

[](#vitejs-manifest-parser-for-php)

This library allows you to parse Vite.js manifest files easily and print tags in PHP to enjoy Hot Module Replacement (HMR).

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

[](#installation)

Use composer to install the package:

```
composer require highliuk/vite
```

Usage
-----

[](#usage)

```
use HighLiuk\Vite\Vite;
use HighLiuk\Vite\Manifest;

$manifest = new Manifest('/path/to/dist/', '/url/to/dist/');
$vite = new Vite($manifest);

// print the tags
echo $vite->tags();
```

In this example, replace `/path/to/dist` with the path to your Vite.js dist directory and `/url/to/dist` with the URL to your Vite.js dist directory.

You can also specify the Vite host and port (defaults to `http://localhost:5173/`):

```
$vite = new Vite($manifest, 'http://localhost:port/');
```

Example
-------

[](#example)

See the [example](example/README.md) directory for a full example.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~100 days

Total

2

Last Release

760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ab73500015458452d2ee5531aa38b2571e8a65fed47b185698feb7b06d0d6bb?d=identicon)[highliuk](/maintainers/highliuk)

---

Top Contributors

[![HighLiuk](https://avatars.githubusercontent.com/u/65017775?v=4)](https://github.com/HighLiuk "HighLiuk (3 commits)")

---

Tags

phpvitevitejsmanifestHmr

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/highliuk-vite/health.svg)

```
[![Health](https://phpackages.com/badges/highliuk-vite/health.svg)](https://phpackages.com/packages/highliuk-vite)
```

###  Alternatives

[pentatrion/vite-bundle

Vite integration for your Symfony app

2755.3M13](/packages/pentatrion-vite-bundle)[idleberg/wordpress-vite-assets

Injects assets from a Vite manifest to the Wordpress head, supports themes and plugins

14816.4k1](/packages/idleberg-wordpress-vite-assets)[idleberg/vite-manifest

A parser for Vite manifest files

2161.0k3](/packages/idleberg-vite-manifest)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
