https://github.com/swordev/php-unserialize-js
https://github.com/swordev/php-unserialize-js
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swordev/php-unserialize-js
- Owner: swordev
- License: mit
- Created: 2020-10-22T09:12:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T10:21:41.000Z (over 5 years ago)
- Last Synced: 2024-10-16T00:33:23.158Z (over 1 year ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.