Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravelphp

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravelphp

laravel2js and js2laravel converter laravel php resource utils

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38K
increased by14.27%
Maintainers
2
Weekly downloads
 
Created
Source

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
});

Keywords

FAQs

Package last updated on 16 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc