{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/10"}],"enrichment":{"capability":"Converts Python objects to and from PHP serialization format, implementing the `dumps`/`loads` interface for cross-language data exchange.","skillfed_tags":["php-interop","serialization"],"use_cases":["Deserialize PHP session data or cache stored in PHP format within a Python application","Exchange structured data between PHP and Python services without JSON/XML conversion overhead","Migrate or synchronize data from PHP applications to Python backends while preserving PHP object metadata","Test PHP serialization logic in Python test suites by round-tripping PHP-serialized objects","Parse WordPress or other PHP framework object data in Python analysis or migration tools"],"what_it_does":"phpserialize is a Python port of PHP's serialize and unserialize functions, enabling bidirectional conversion between Python objects and PHP serialization format. It implements the standard Python serialization interface with `dumps`, `loads`, and file-like object support.\n\nThe package handles PHP's type system differences: lists become dicts (with integer keys), unicode strings are UTF-8 encoded by default, and None/floats/booleans are converted to PHP-compatible types. It also supports PHP object serialization through hooks and provides helper functions like `dict_to_list` and `dict_to_tuple` to recover Python data structures. Version 1.3 added Python 3 support using the 'surrogateescape' error handler for bytes/unicode handling.","worth_installing":"Yes, but with caution. The package is stable for basic PHP serialization tasks and carries no known vulnerabilities, but it has been dormant since 2012 with minimal maintenance. Install if you have a specific need to interoperate with PHP serialized data and accept that bug fixes or Python version compatibility updates are unlikely. For new projects, consider whether JSON or another standard format would reduce coupling to PHP."},"id":"phpserialize","links":{"html":"https://skillfed.io/packages/phpserialize","md":"https://skillfed.io/packages/phpserialize.md","pypi":"https://pypi.org/project/phpserialize/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2012-01-22","license_spdx":null,"license_treatment":"permissive","name":"phpserialize","python_support":"unspecified","summary":"a port of the serialize and unserialize functions of php to python."},"popularity":{"monthly_downloads":272666,"position":8207,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3"}
