Home

Awesome

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

You can install this plugin into your CakePHP application using composer.

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

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

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