PHPackages                             gymmed/bagisto-vite-parser - 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. gymmed/bagisto-vite-parser

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

gymmed/bagisto-vite-parser
==========================

Neat way to locate documents build with vite laravel library in bagisto project. Helps to find manifest.json while using config/bagisto-vite.

05PHP

Since Sep 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GymMed/Bagisto-Vite-Parser)[ Packagist](https://packagist.org/packages/gymmed/bagisto-vite-parser)[ RSS](/packages/gymmed-bagisto-vite-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

 Bagisto Vite Parser
=====================

[](#----bagisto-vite-parser)

 [![Parses bagisto vite document.](./preview/images/bagisto-vite-parser-gymmed.png)](./preview/images/bagisto-vite-parser-gymmed.png)

Neat way to locate documents build with vite laravel library in bagisto project. Helps to find **manifest.json** while using **config/bagisto-vite**.

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

[](#installation)

You can install the package via composer:

```
composer require gymmed/bagisto-vite-parser
```

Use Case
--------

[](#use-case)

[Dompdf](https://github.com/dompdf/dompdf) and its laravel wrapper, [laravel-dompdf](https://github.com/barryvdh/laravel-dompdf), only support direct CSS or external CSS file links. However, these CSS files require real relative paths, while Vite in Laravel uses hashed filenames to avoid name collisions. This library provides an easy way to retrieve the correct CSS paths from **config/bagisto-vite**, specifically designed for [Bagisto](https://github.com/bagisto/bagisto), not for general [Laravel](https://github.com/laravel/laravel) usage.

Usage
-----

[](#usage)

In your **config/bagisto-vite.php**, add a new entry for your package under the viters section. Example:

```
    return [
        'viters' => [
            ...
            'myNamespace' => [
                'hot_file'                 => 'myNamespace-default-vite.hot',
                'build_directory'          => 'themes/myNamespace/default/build',
                'package_assets_directory' => 'src/Resources/assets',
            ],
        ],
    ];
```

This should correspond to the **laravel plugin** configuration in your package's **vite.config.js**. Example:

```
plugins: [
    ...
    vue(),

    laravel({
        hotFile: "../../../public/myNamespace-default-vite.hot",
        publicDirectory: "../../../public",
        buildDirectory: "themes/myNamespace/default/build",
        input: [
            "src/Resources/assets/css/app.css",
            "src/Resources/assets/js/app.js",
        ],
        refresh: true,
    }),
],
```

To get documents real paths we write:

```
use GymMed\BagistoViteParser;

//provide full path
$viteDocumentsPaths = BagistoViteParser::getDocumentsPaths(
    [
        'src/Resources/assets/css/app.css',
        'src/Resources/assets/js/app.js'
    ],
    'myNamespace'
);
```

returned results:

```
array:2 [▼
  0 => "...\bagisto\public\themes/myNamespace/befault/build/assets/app-2bf84331.css"
  1 => "...\bagisto\public\themes/myNamespace/default/build/assets/app-c35c0f3a.js"
]
```

and you can get single document path:

```
use GymMed\BagistoViteParser;

//provide full path
$viteDocumentsPaths = BagistoViteParser::getDocumentPath(
    'src/Resources/assets/css/app.css',
    'myNamespace'
);
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1369ecac7ae435fa977eb85d85ee4a8a79789b6964490e22a84782898cf19823?d=identicon)[GymMed](/maintainers/GymMed)

---

Top Contributors

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

---

Tags

bagistoverysmallvitejs

### Embed Badge

![Health badge](/badges/gymmed-bagisto-vite-parser/health.svg)

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

###  Alternatives

[marquine/php-etl

Extract, Transform and Load data using PHP.

182137.5k](/packages/marquine-php-etl)[hi-folks/data-block

Data class for managing nested arrays and JSON data.

1472.2k](/packages/hi-folks-data-block)[supermundano/sage-the-events-calendar

1724.5k](/packages/supermundano-sage-the-events-calendar)[practically/preloader

PHP preloading for PHP &gt;=7.4

1034.7k](/packages/practically-preloader)[jiten14/jitone-ai

jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.

213.1k](/packages/jiten14-jitone-ai)[defstudio/enum-features

A simple trait to enable a feature system using Enums and Laravel Pennant

162.1k](/packages/defstudio-enum-features)

PHPackages © 2026

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