https://github.com/rohmanhm/js-php-array
Convert php array style into javascript object
https://github.com/rohmanhm/js-php-array
convert-array js-php-array php php-array
Last synced: 9 months ago
JSON representation
Convert php array style into javascript object
- Host: GitHub
- URL: https://github.com/rohmanhm/js-php-array
- Owner: rohmanhm
- License: mit
- Created: 2017-03-05T03:25:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T13:17:57.000Z (over 8 years ago)
- Last Synced: 2025-03-27T15:50:14.049Z (9 months ago)
- Topics: convert-array, js-php-array, php, php-array
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Javascript PHP Array
[](https://greenkeeper.io/)
Use php array style in javascript
## How to use
1. Install `php-array` from npm.
`npm install --save php-array`
2. require or import `php-array` to your code.
Example:
```javascript
const phparray = require('php-array')
phparray(`
[
name => 'john doe',
email => 'johndoe@test.com'
]
`) // it's return {name: 'john doe', email: 'johndoe@test.com'}
```
## LICENSE
**MIT LICENSE**