Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rmariuzzo/php-array-parser

✨ Parse a PHP array
https://github.com/rmariuzzo/php-array-parser

array javascript parser php

Last synced: 24 days ago
JSON representation

✨ Parse a PHP array

Awesome Lists containing this project

README

        

PHP array Parser


Parse a PHP array into JavaScript!

[![Build Status](https://travis-ci.org/rmariuzzo/php-array-parser.svg?branch=master)](https://travis-ci.org/rmariuzzo/php-array-parser)

## Installation

```shell
npm install php-array-parser
```

## Usage

```js
const parser = require('php-array-parser')
parser.parse(`
array(
"foo" => "bar",
"bar" => "foo",
);
`)

// > { foo: 'bar', bar: 'foo' }
```

#### Tests

```shell
npm run test
```