Skip to content

A playground project made to experiment with a workflow using Vue.js for the frontend and PHP for the backend.

Notifications You must be signed in to change notification settings

Lukevdb01/vue-with-php

Repository files navigation

Vue with PHP

This is a simple project to experiment with using Vue.js in the frontend and PHP in the backend.

Purpose

The goal of this project is to test if you can load Vue directly in PHP and access PHP-generated JSON data without needing JavaScript fetch calls. Instead, the data is passed directly into Vue.

How It Works

  1. PHP Backend: PHP generates JSON data and makes it available via a global set config variable.
  2. Vue Frontend: Vue consumes that data without using fetch or external APIs.

Getting Started

  1. Clone the repo:

    git clone https://github.com/Lukevdb01/vue-with-php.git
    cd vue-with-php
  2. Start the PHP server by using this command: (or clone the repo in htdocs folder of XAMPP)

    php -S localhost:8000
  3. Open http://localhost:8000 in your browser.

© copyright 2025 | Luke van den Broek

About

A playground project made to experiment with a workflow using Vue.js for the frontend and PHP for the backend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published