PHPackages                             webflorist/vuefactory - 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. webflorist/vuefactory

ActiveLibrary

webflorist/vuefactory
=====================

Build Vue Instances in PHP.

v1.0.1(6y ago)03.7k—0%11PHPPHP &gt;=7.0.0

Since Nov 15Pushed 6y agoCompare

[ Source](https://github.com/webflorist/vuefactory)[ Packagist](https://packagist.org/packages/webflorist/vuefactory)[ RSS](/packages/webflorist-vuefactory/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

webflorist/vuefactory
=====================

[](#webfloristvuefactory)

**PHP package to generate Vue-Apps**

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

[](#description)

This package provides functionality for building Vue-Apps in PHP.

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

[](#installation)

1. Require the package via composer: `composer require webflorist/vuefactory`

Configuration
-------------

[](#configuration)

No configuration is necessary.

Usage
-----

[](#usage)

### Example

[](#example)

This PHP-code....

```
(new Webflorist\VueFactory\VueInstance('#app'))
    ->addComputed('computed_5','function () { return 2+3 })')
    ->addComputed('computed_8','function () { return 4+4 })')
    ->addData('string','value')
    ->addData('boolean_true',true)
    ->addData('boolean_false',false)
    ->addData('array',['item1','item2'])
    ->addData('object',(new \stdClass()))
    ->addMethod('say_hello','function () { alert("Hello!") })')
    ->addMethod('say_bye','function () { alert("Bye!") })')
    ->addPropsData('property1','value1')
    ->addPropsData('property2',true)
    ->addPropsData('property3',['item1', 'item2'])
    ->addWatcher('data1','value1')
    ->addWatcher('data2','value2')
    ->generate();
```

...results in the following JS-code:

```
new Vue({
    "el": "#app",
    "computed": {
        "computed_5": function() {
            return 2 + 3
        },
        "computed_8": function() {
            return 4 + 4
        }
    },
    "data": {
        "string": "value",
        "boolean_true": true,
        "boolean_false": false,
        "array": ["item1", "item2"],
        "object": {}
    },
    "methods": {
        "say_hello": function() {
            alert("Hello!")
        },
        "say_bye": function() {
            alert("Bye!")
        }
    },
    "propsData": {
        "property1": "value1",
        "property2": true,
        "property3": ["item1", "item2"]
    },
    "watch": {
        "data1": "value1",
        "data2": "value2"
    }
});
```

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~273 days

Total

2

Last Release

2410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c2d4efd8d86101511e621cdfcc7178ba05c4854e4c4176efc0543931075fe54?d=identicon)[codeflorist](/maintainers/codeflorist)

---

Top Contributors

[![geraldb-nicat](https://avatars.githubusercontent.com/u/14835751?v=4)](https://github.com/geraldb-nicat "geraldb-nicat (13 commits)")[![codeflorist](https://avatars.githubusercontent.com/u/41453547?v=4)](https://github.com/codeflorist "codeflorist (3 commits)")[![martingredler](https://avatars.githubusercontent.com/u/96799361?v=4)](https://github.com/martingredler "martingredler (1 commits)")[![moxx](https://avatars.githubusercontent.com/u/389850?v=4)](https://github.com/moxx "moxx (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webflorist-vuefactory/health.svg)

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

PHPackages © 2026

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