@swordev/php-unserialize
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and check them: npm run prepare.
  4. Commit your changes: git commit -m '<commit_message>'.
  5. Push to the original branch: git push origin <branch_name>.
  6. 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.

Readme

Keywords

Package Sidebar

Install

npm i @swordev/php-unserialize

Weekly Downloads

582

Version

1.0.1

License

MIT

Unpacked Size

8.24 kB

Total Files

5

Last publish

Collaborators

  • juanrgm
  • swordev-root