PHPackages                             rrd108/vue-bake - 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. rrd108/vue-bake

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

rrd108/vue-bake
===============

CakePHP Plugin for Baking Vue Components

1.0.1(2y ago)1658↓50%[3 issues](https://github.com/rrd108/vue-bake/issues)MITTwig

Since Jul 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rrd108/vue-bake)[ Packagist](https://packagist.org/packages/rrd108/vue-bake)[ RSS](/packages/rrd108-vue-bake/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

VueBake plugin for CakePHP
==========================

[](#vuebake-plugin-for-cakephp)

Bake VueJs components from CakePHP 5 models.

For CakePHP 4 version see rrd108/vue-bake/tree/cakephp-4

Are you a full stack developer working with the powerful combination of **Vue SPA-s** and **CakePHP** as a REST API backend? If so, we have something special in store for you.

We understand the value of **efficient development processes** and the convenience that **code generation** brings. As avid fans of CakePHP's **bake automatic code generation** capabilities, we noticed a missing piece when it came to **template generation**. That's why we took it upon ourselves to bridge this gap and create the **CakePHP VueBake Plugin**.

Our plugin is designed to enhance your development workflow by seamlessly **generating VueJs components** directly from your CakePHP models. Say goodbye to the tedious task of manually creating Vue components for each model – our plugin automates the process, **saving you valuable time and effort**.

By leveraging the power of CakePHP's backend as a REST API and combining it with the versatility and interactivity of Vue SPA-s, you'll experience a **harmonious synergy** that brings your full stack projects to new heights.

**Key Features** of the CakePHP VueBake Plugin:

1. **Automatic VueJs Component Generation**: Our plugin effortlessly converts your CakePHP models into VueJs components, complete with the necessary code and structure. No more repetitive manual coding – let the plugin do the heavy lifting for you.
2. **Seamless Integration**: The plugin seamlessly integrates into your existing CakePHP and Vue SPA project, preserving the integrity of your codebase while enhancing your development capabilities.
3. **Customization Options**: We understand that each project is unique, and that's why our plugin offers various customization options. Tailor the generated Vue components to match your specific requirements, ensuring a perfect fit for your application.
4. **JavaScript and TypeScript Support**: Our plugin supports both JavaScript and TypeScript, allowing you to choose the language that best suits your project. The plugin generates Typescript interfaces for your models, making it easy to work with TypeScript.
5. **Time and Effort Savings**: With the CakePHP VueBake Plugin, you can significantly reduce development time and effort. Spend less time on boilerplate code and more time on building innovative features and delivering value to your users.

As full stack developers ourselves, we created this plugin with a deep understanding of the challenges and demands of working with Vue SPA-s and CakePHP. Our goal is to empower you with a **seamless development experience**, allowing you to focus on what truly matters – creating exceptional applications.

So why wait? Try out the **CakePHP VueBake Plugin** today and unlock the full potential of your Vue SPA and CakePHP stack. **Elevate your development workflow** and experience the convenience of automatic VueJs component generation like never before.

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require --dev rrd108/vue-bake

```

Then, to load the plugin either run the following command:

```
bin/cake plugin load VueBake

```

or manually add the following line to your app's config/plugins.php:

```
return [
  // other plugins
  'VueBake' => [],
];

```

Bake VueJs components
---------------------

[](#bake-vuejs-components)

```
bin/cake bake vue_component ModelName -l ts -p ../../frontend/src/components

```

- `ModelName`: Specify the name of the model for which you want to generate components. For example, if you want to bake components for the `Posts` model, replace `ModelName` with `Posts`.
- `-l` or `--lang`: (Optional) Specify the language for the generated components. By default, it is set to `js` (JavaScript). However, you can choose `ts` for TypeScript. For instance, use `-l ts` to generate `components` and `interfaces` using TypeScript.
- `-p` or `--path`: (Optional) Provide the path where the output file should be saved. The path should be relative to the `src` directory. Default is `src/VueComponents`. For example, `-p ../../frontend/src/components` specifies that the generated components should be saved in the `frontend/src/components` directory 2 levels above the CakePHP's `src` directory - so it is out of the CakePHP's directory structure.

*Note:* Make sure to replace the placeholders (`ModelName`, `../frontend/src/components`) with the actual values relevant to your project.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

858d ago

Major Versions

0.1.1 → 1.0.02024-01-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f115ed63db719bb70b5f9f74a077e5dba1e3962d394f63bde914de8f64171d8?d=identicon)[rrd](/maintainers/rrd)

---

Top Contributors

[![rrd108](https://avatars.githubusercontent.com/u/3147489?v=4)](https://github.com/rrd108 "rrd108 (45 commits)")

---

Tags

plugincakephpvueVue.js

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rrd108-vue-bake/health.svg)

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/tiny-mce

TinyMCE Plugin for CakePHP

10790.2k](/packages/cakedc-tiny-mce)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[dereuromark/cakephp-calendar

A CakePHP plugin to easily create calendars.

1646.8k1](/packages/dereuromark-cakephp-calendar)

PHPackages © 2026

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