Mago Plugin

Adapter plugin that formats PHP code via Mago.

Formats .php files.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint config add mago

This will update your config file to have an entry for the plugin. Then optionally specify a "mago" property to add configuration:

{
  "mago": {
    // mago's config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/mago-x.x.x.wasm"
  ]
}

Configuration

See Configuration

Playground

See Playground

Source

See https://github.com/dprint/dprint-plugin-mago