@coffeekraken/node-blade-php

Blade PHP engine exposed to node using exec-php

Usage no npm install needed!

<script type="module">
  import coffeekrakenNodeBladePhp from 'https://cdn.skypack.dev/@coffeekraken/node-blade-php';
</script>

README

Node Blade PHP

Coffeekraken Node Blade PHP

npm npm npm

Blade PHP engine exposed to node using exec-php

Table of content

  1. Install
  2. Usage
  3. Coffeekraken

Install

npm install @coffeekraken/node-blade-php --save

Usage

const bladePhp = require('@coffeekraken/node-blade-php');
bladePhp.setViewsFolder(process.cwd() + '/views');
bladePhp.compile('my-cool-view', {
    hello: 'world'
}).then((result) => {
    console.log(result)
});

Coffeekraken

We are a young collective of front-end creative developers with one goal in mind. Build tools to make every team working day life better. This is our first and only concern. All our tools are build around that purpose. All what we provide are some cool tools that you can use the way you want. These tools features cover a large scope of the front-end workflow (styleguide generation, colors/fonts management, etc...). You can use only the parts that you need and let the rest aside...

Coffeekraken