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

https://github.com/swordev/php-unserialize-js


https://github.com/swordev/php-unserialize-js

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# php-unserialize-js

PHP [unserialize](https://www.php.net/manual/es/function.unserialize.php) function for JavaScript.

## Installation

```bash
npm install @swordev/php-unserialize
```

## Usage

```typescript
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 `.
3. Make your changes and check them: `npm run prepare`.
4. Commit your changes: `git commit -m ''`.
5. Push to the original branch: `git push origin `.
6. Create the pull request.

Alternatively see the GitHub documentation on [creating a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).

## Forked project

This project was forked from [node-php-session-unserialize](https://github.com/ALiangLiang/node-php-session-unserialize) because it had bugs ([ed06e76](https://github.com/swordev/php-unserialize-js/commit/ed06e76b74eec9ee1ea935269a5934d86705f8ca), [7fa1b48](https://github.com/swordev/php-unserialize-js/commit/7fa1b48a0723063a0b2d414b7f035a7ee1465a65)) and it was not being maintained.

## License

Distributed under the MIT License. See LICENSE for more information.