# @swordev/php-unserialize

> PHP unserialize function

Latest version **1.0.1** (published 2020-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @swordev/php-unserialize
pnpm add @swordev/php-unserialize
yarn add @swordev/php-unserialize
bun add @swordev/php-unserialize
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-10-22 |
| First published | 2020-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Juanra Galvez |
| Maintainers | juanrgm, swordev-root |
| Keywords | php, unserialize, session |

## Links

- npm: https://www.npmjs.com/package/@swordev/php-unserialize
- Repository: https://github.com/swordev/php-unserialize-js
- Homepage: https://github.com/swordev/php-unserialize-js#readme
- Issues: https://github.com/swordev/php-unserialize-js/issues
- npm.io page: https://npm.io/package/@swordev/php-unserialize

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@oxyhq/services](https://npm.io/package/@oxyhq/services.md) — 2.3K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-10-22
- 1.0.0 — 2020-10-22

## 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 <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](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.

---
_Source: https://npm.io/package/@swordev/php-unserialize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
