@swordev/php-unserialize
v1.0.1
Published
PHP unserialize function
Downloads
3,290
Readme
php-unserialize-js
PHP unserialize function for JavaScript.
Installation
npm install @swordev/php-unserialize
Usage
import { unserialize } from "@swordev/php-unserialize"
unserialize(`key|s:11:"hello world";`) // { key: "hello world" }
Contributing
To contribute to the project, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and check them:
npm run prepare
. - Commit your changes:
git commit -m '<commit_message>'
. - Push to the original branch:
git push origin <branch_name>
. - Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
Forked project
This project was forked from node-php-session-unserialize because it had bugs (ed06e76, 7fa1b48) and it was not being maintained.
License
Distributed under the MIT License. See LICENSE for more information.