PHPackages                             samsonasik/mezzio-vue - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. samsonasik/mezzio-vue

ActiveProject[HTTP &amp; Networking](/categories/http)

samsonasik/mezzio-vue
=====================

Laminas mezzio skeleton with Vue.js Integration

1.1.0(1y ago)12535BSD-3-ClausePHPPHP ^8.2.0

Since Jun 26Pushed 1y ago3 watchersCompare

[ Source](https://github.com/samsonasik/mezzio-vue)[ Packagist](https://packagist.org/packages/samsonasik/mezzio-vue)[ Docs](https://github.com/samsonasik/mezzio-vue)[ Fund](https://samsonasik.wordpress.com/donate/)[ RSS](/packages/samsonasik-mezzio-vue/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (16)Versions (17)Used By (0)

Example Using Vue.js in Mezzio application
==========================================

[](#example-using-vuejs-in-mezzio-application)

[![ci build](https://github.com/samsonasik/mezzio-vue/workflows/ci%20build/badge.svg)](https://github.com/samsonasik/mezzio-vue/workflows/ci%20build/badge.svg)[![Mutation testing badge](https://camo.githubusercontent.com/ea5491ea1647094a2368ebdd51b56d6e4efcf5987c0a7224de686d2a78cb6b69/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324673616d736f6e6173696b2532466d657a7a696f2d7675652532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/samsonasik/mezzio-vue/master)[![Code Coverage](https://camo.githubusercontent.com/949e097c35d90d4c6b999f9c80cffd16f9d47be2344a3f8ebbb27f8509557283/68747470733a2f2f636f6465636f762e696f2f67682f73616d736f6e6173696b2f6d657a7a696f2d7675652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/samsonasik/mezzio-vue)[![Downloads](https://camo.githubusercontent.com/6406f4598abf2028d739aedcdac7661ef9487a5c740885f654b8462e60f9e842/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6173696b2f6d657a7a696f2d7675652f646f776e6c6f616473)](https://packagist.org/packages/samsonasik/mezzio-vue)

> Version ^0.1.0 is for Vue 3 usage in Mezzio application

> For Vue 2 usage in Mezzio application, you can use version [~0.0.3](https://github.com/samsonasik/mezzio-vue/tree/0.0.x)

Introduction
------------

[](#introduction)

A Mezzio 3 Skeleton Application with Vue.js integration.

Features
--------

[](#features)

- SPA application with Vue Router with cached pages after visited.
- Using server side template from Mezzio, compiled with `Vue.compile()` in Vue.js component's `render()`.
- Using Vuex for state management library, combo with sessionStorage on portfolio page.

Setup
-----

[](#setup)

*1.* Run composer create-project command:

```
composer create-project samsonasik/mezzio-vue
composer development-enable
```

*2.* Run PHP Development server

```
cd mezzio-vue
composer serve
```

*3.* Open web browser

Production
----------

[](#production)

For deploy to production purpose, it has `webpack.config.js` in root directory that when we run `webpack` command, we can get `public/js/dist/bundle.js` after run it. If you don't have a `webpack` installed yet in your system, you can install nodejs and install `webpack` and `webpack-cli`:

```
sudo npm install -g webpack
sudo npm install -g webpack-cli
```

So, we can run:

```
webpack

Hash: 6ed53cca3add09d67d7f
Version: webpack 4.43.0
Time: 462ms
Built at: 06/22/2020 5:14:09 PM
                   Asset     Size  Chunks             Chunk Names
public/js/dist/bundle.js  2.94 KiB       0  [emitted]  main
Entrypoint main = public/js/dist/bundle.js
[0] ./public/js/app.js + 7 modules 4.09 KiB {0} [built]
    | ./public/js/app.js 856 bytes [built]
    | ./public/js/home.js 103 bytes [built]
    | ./public/js/about.js 360 bytes [built]
    | ./public/js/contact.js 112 bytes [built]
    | ./public/js/portfolio.js 1.36 KiB [built]
    | ./public/js/store.js 176 bytes [built]
    | ./public/js/create-page.js 872 bytes [built]
    | ./public/js/portfolio-store-module.js 319 bytes [built]
```

After it generated, we can run the following commands to get `production` environment by default:

```
composer development-disable

# install with --no-dev
composer install --no-dev

# ensure no left over file cache before re-build cache
composer clear-config-cache
```

In `default.phtml`, we have a `isDevelopment()` view helper check to use `js/app.js` when on development, and use `/js/dist/bundle.js` on production when exists.

```
// src/App/templates/layout/default.phtml
$isDevelopment = $this->isDevelopment();

// ...
    ->prependFile(
        $isDevelopment
            ? '/js/app.js'
            : (
                // when after run webpack, allow to use bundled js
                // fallback to use /js/app.js when not
                file_exists('./public/js/dist/bundle.js')
                    ? '/js/dist/bundle.js'
                    : '/js/app.js'
            ),
        'module'
    )
// ...
```

that will automatically take care of that.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 99.4% 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 ~111 days

Recently: every ~23 days

Total

16

Last Release

574d ago

Major Versions

0.5.0 → 1.0.02024-10-20

PHP version history (4 changes)0.0.1PHP ^7.3

0.1.5PHP ^7.4 || ~8.0.0 || ~8.1.0

0.2.0PHP ^8.1.0

1.1.0PHP ^8.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/19076b7688ca1c8ee79ab3ac6fa6acdd7b96012973aba3b1a06cbb3154d7f3e5?d=identicon)[samsonasik](/maintainers/samsonasik)

---

Top Contributors

[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (175 commits)")[![unckleg](https://avatars.githubusercontent.com/u/10105499?v=4)](https://github.com/unckleg "unckleg (1 commits)")

---

Tags

psrpsr-7middlewarePSR-11laminaspsr-15mezzioSkeleton

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/samsonasik-mezzio-vue/health.svg)

```
[![Health](https://phpackages.com/badges/samsonasik-mezzio-vue/health.svg)](https://phpackages.com/packages/samsonasik-mezzio-vue)
```

###  Alternatives

[mezzio/mezzio-skeleton

Laminas mezzio skeleton. Begin developing PSR-15 middleware applications in seconds!

12926.7k](/packages/mezzio-mezzio-skeleton)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.2k5.6k](/packages/shlinkio-shlink)[mezzio/mezzio

PSR-15 Middleware Microframework

3973.9M133](/packages/mezzio-mezzio)[mezzio/mezzio-tooling

Migration and development tooling for Mezzio

191.2M23](/packages/mezzio-mezzio-tooling)[mezzio/mezzio-swoole

Swoole support for Mezzio

92257.2k4](/packages/mezzio-mezzio-swoole)[mezzio/mezzio-fastroute

FastRoute integration for Mezzio

163.0M71](/packages/mezzio-mezzio-fastroute)

PHPackages © 2026

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