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) => {
});
const js2laravel = require('laravelphp/js2laravel');
js2laravel(js, (err, res) => {
});