PHPackages                             davidhirtz/yii2-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. [Framework](/categories/framework)
4. /
5. davidhirtz/yii2-vite

ActiveYii2-extension[Framework](/categories/framework)

davidhirtz/yii2-vite
====================

Vite integration for Yii 2 framework

0.5.0(3mo ago)116.9k↓10.7%proprietaryPHPPHP ^8.3

Since Jul 2Pushed 3mo ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (6)Used By (0)

Simple [Vite](https://vitejs.dev/) component for [Yii 2 framework](https://www.yiiframework.com/).
--------------------------------------------------------------------------------------------------

[](#simple-vite-component-for-yii-2-framework)

Vite build option `manifest` is required to generate manifest.json file.

### Default component configuration

[](#default-component-configuration)

```
'components' => [
    'vite' => [
        'class' => \davidhirtz\yii2\vite\components\Vite::class,
        'baseUrl' => '/dist/',
        'checkDevServer' => true,
        'devBaseUrl' => 'http://localhost:5173/',
        'devBaseUrlInternal' => null,
        'manifestPath' = '@webroot/dist/.vite/manifest.json',
        'useDevServer' = YII_ENV_DEV
    ],
],
```

### Usage

[](#usage)

```
Yii::$app->get('vite')->register('/resources/js/app.ts');
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~148 days

Total

5

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4266eaf8539e1f155d297647f285c2c2ddd1f3d73f279230acb0fdec9da05af1?d=identicon)[davidhirtz](/maintainers/davidhirtz)

---

Top Contributors

[![davidhirtz](https://avatars.githubusercontent.com/u/973624?v=4)](https://github.com/davidhirtz "davidhirtz (11 commits)")

###  Code Quality

Static AnalysisRector

Code StyleECS

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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