Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@smarterlabs/omni-plugin-php

ken85rose23MIT0.1.12

A plugin that allows you to run PHP in Omni-Directional Documents.

omni, plugin, php, language, odd, markdown, md, smarter, labs, smarterlabs

readme

Omni PHP Plugin

A plugin that allows you to run PHP in Omni-Directional Documents.

Installation

npm install @smarterlabs/omni-plugin-php --save-dev

or

yarn add @smarterlabs/omni-pugin-php

Usage

import Omni  from '@smarterlabs/omni'
import omniPHP from '@smarterlabs/omni-plugin-php'

const omni = new Omni({
    input: `src`,
  output: `dist`,
  plugins: [
    omniPHP(),
  ],
})

omni.watch()

Example


```php run
echo "Hello world!";
```