PHPackages                             horizom/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. horizom/vite

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

horizom/vite
============

The Horizom Routing package.

5.0.0(2y ago)0106MITPHPPHP ^8.0

Since Apr 11Pushed 2y ago1 watchersCompare

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

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

Horizom Vite Plugin
===================

[](#horizom-vite-plugin)

[![Total Downloads](https://camo.githubusercontent.com/eb88d37d3ed78f8befc6fe0e8081e00bd1210aa6e3d68acf79aee53585c47519/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f686f72697a6f6d766974652d706c7567696e)](https://www.npmjs.com/package/horizom-vite-plugin)[![Latest Stable Version](https://camo.githubusercontent.com/b3b469fcdb1a7c8076486bd3a735b8d80fccdfb92666547a0755973a1e9098e0/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f686f72697a6f6d2d766974652d706c7567696e)](https://www.npmjs.com/package/horizom-vite-plugin)[![License](https://camo.githubusercontent.com/868af130d18cc2e07df0d1b20d4f45504d7c92a022a4e3ee7efb7301dc123fd7/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f686f72697a6f6d2d766974652d706c7567696e)](https://www.npmjs.com/package/horizom-vite-plugin)

Description
-----------

[](#description)

Vite is a modern frontend build tool that provides an extremely fast development environment and bundles your code for production.

This plugin configures Vite for use with a PHP backend server.

Usage
-----

[](#usage)

```
use Horizom\Vite\Vite;

// Your entry point
$entry = 'resources/js/app.js';

$config = [

    /**
     * The build directory (default: 'public/dist')
     */
    'outputDir' => 'public/dist',

    /**
     * Force development mode (default: false)
     */
    'forceDev' => false,

    /**
     * The host (default: 'http://localhost:5173')
     */
    'host' => 'http://localhost:5173',

    /**
     * The manifest file (default: '.vite/manifest.json')
     */
    'manifest' => '.vite/manifest.json',

    /**
     * The base path (default: '')
     */
    'basePath' => '',
];

$plugin = new Vite($config);

// Render the html tags
$plugin->render($entry);
```

And setup your vite config in `vite.config.js` file

```
import { defineConfig, splitVendorChunkPlugin } from "vite";
import path from "node:path";
import vue from "@vitejs/plugin-vue";
import liveReload from "vite-plugin-live-reload";

export default defineConfig({
  plugins: [
    vue(),
    liveReload([
      __dirname + "/resources/views/**/*.php",
      __dirname + "/app/*.php",
    ]),
    splitVendorChunkPlugin(),
  ],
  publicDir: path.resolve(__dirname, "storage/assets"),
  base: process.env.APP_ENV === "development" ? "/" : "/dist/",
  build: {
    outDir: "./public/dist",
    emptyOutDir: true,
    manifest: true,
    rollupOptions: {
      input: path.resolve(__dirname, "resources/js/app.js"),
    },
  },
});
```

License
-------

[](#license)

The Laravel Vite plugin is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

767d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/412f8e786e65f078584b4bc2c0b7a44af095ab2c0d19a5fb7985598576ca4fda?d=identicon)[lambirou](/maintainers/lambirou)

---

Top Contributors

[![lambirou](https://avatars.githubusercontent.com/u/1428556?v=4)](https://github.com/lambirou "lambirou (2 commits)")

---

Tags

JSvitehorizonbundleresbuildhorizom

### Embed Badge

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

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

###  Alternatives

[nnnick/chartjs

Simple HTML5 charts using the canvas element.

67.3k1.1M15](/packages/nnnick-chartjs)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[mathjax/mathjax

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.

10.8k90.8k1](/packages/mathjax-mathjax)[nostalgiaz/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

5.0k362.3k4](/packages/nostalgiaz-bootstrap-switch)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)

PHPackages © 2026

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