npm

Need private packages and team management tools?Check out npm Orgs. »

laravelphp

1.1.0 • Public • Published

travis npm

Download

The source is available for download from GitHub. Alternatively, you can install using npm:

npm install --save laravelphp

You can then require() laravel as normal:

const laravelphp = require('laravelphp');

Or you can direclty require() its functions:

const laravel2js = require('laravelphp/laravel2js');

Usage

 
const php = `<?php
  return [
    'key1' => 'Hello',
    'key2' => 'An application to manipulate and process laravel php language files',
    'key.nested' => 'laravel Data Manager'
  ];
?>`;
 
const js = {
  "key1": "Hello",
  "key2": "An application to manipulate and process laravel php language files",
  "key.nested": "laravel Data Manager"
};
 
 
const laravel2js = require('laravelphp/laravel2js');
laravel2js(php, (err, res) => {
  // res is like js
});
 
const js2laravel = require('laravelphp/js2laravel');
js2laravel(js, (err, res) => {
  // res is like php
});
 

install

npm i laravelphp

Downloadsweekly downloads

4,789

version

1.1.0

license

MIT

homepage

locize.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability