Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rmariuzzo/php-array-parser
- Owner: rmariuzzo
- License: mit
- Created: 2017-06-18T21:50:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T16:24:40.000Z (over 7 years ago)
- Last Synced: 2024-10-11T07:10:42.511Z (about 1 month ago)
- Topics: array, javascript, parser, php
- Language: JavaScript
- Size: 23.4 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```