Skip to content

loilo/prettier-php-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prettier PHP Playground

This is a temporary playground for Prettier's PHP Plugin, written in Vue.js.

Try it out online!

Motivation

The main purposes of this playground are:

  1. making quick transformations on PHP code more comfortable, obviously
  2. serving as a transitioning tool for simplified testing and bug reporting until the PHP plugin is stable enough to be integrated into the official Prettier Playground.

Features

The PHP playground comes with the interface you know and love — it's almost a 1:1 clone of Prettier's own playground, but with some improvements:

  • Offline First

    Thanks to Service Workers, the playground just worksâ„¢ when you're not connected to the internet.

  • Mobile Support

    Working with code is not all too common on mobile devices, but if you need it, we're here for you — the PHP playground features a functional mobile layout.

Contributing

To get the playground running on your machine, clone this repository...

git clone https://github.com/Loilo/prettier-php-playground.git

...and install dependencies:

npm ci

If you want to work on the project locally with as much comfort as possible (hot reloading et al.), run:

npm run dev

If you want to create a static site from your current work (in the projects dist folder) and then make that available to the browser, do:

npm run build
npm run preview

About

💄 A playground for the Prettier PHP plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published