{ "info": { "author": "Jonathan Vanasco", "author_email": "jonathan@findmeon.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: PHP", "Programming Language :: Python" ], "description": "php_var_dump\n~~~~~~~~~~~~\n\nA port of the ``var_dump`` function of php to python.\n\nWhy on earth would you want this?!?!?\n=====================================\n\nImagine that you have to deploy something in php. You don't have a choice.\nYou HAVE to.\n\nphp_var_dump lets you do all your data processing and management in python.\nYou can then convert your native python data structures into php code,\nwhich can then be saved as include fles for php.\n\nOther python modules that can accomplish the general idea:\n phpserialize\n implements the PHP serialize/unserialize functions in python\n allows you to serialize a python data structure to PHP\n allows you to unserialize a php data structure to Python\n simplejson\n there are json parsers in php, which can read code you save\n\nThe main benefit of using the var_dump method, is that there is no overhead\nin loading/unloading/parsing/etc.\n\nThis method allows you to build a php include file that simply runs fast,\nand that can use multiple includes within the filesystem as a \"database\"\nlike system. This way you don't have to set up any databases, libraries,\nor whatever - you can just deploy PHP code without coding much in PHP.\n\n\n\n\nUsage\n=====\n\n>>> from php_var_dump import php_var_dump\n>>> data= \"Hello World\"\n>>> as_php = php_var_dump( 'var', data )\n>>> print as_php\n$var = 'Hello World';\n\nYou'd probable then want to save it...\n\ndata_string= \"\" % as_php\nopen('data.php', 'w').write(data_string.encode( \"utf-8\" ))\n\nThen just include that file in your php programs.\n\nThere's also a php_as_block function, which does the trivial encapsulation as above.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jvanasco/php_var_dump", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "php_var_dump", "package_url": "https://pypi.org/project/php_var_dump/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/php_var_dump/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jvanasco/php_var_dump" }, "release_url": "https://pypi.org/project/php_var_dump/0.2/", "requires_dist": null, "requires_python": null, "summary": "a port of the var_dump function of php to python.", "version": "0.2" }, "last_serial": 1161122, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c4f7c8010d9e470704c5ccbc31e628f4", "sha256": "30eb69c4954edac5a120655f5646d15f287c4a008c034cee8ebd12470e12223f" }, "downloads": -1, "filename": "php_var_dump-0.1.tar.gz", "has_sig": false, "md5_digest": "c4f7c8010d9e470704c5ccbc31e628f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2681, "upload_time": "2012-01-24T20:47:03", "url": "https://files.pythonhosted.org/packages/b5/b7/221febf9ddb1c70bc0f7df223b5644e0a1701dfe58355cf4afda4263efda/php_var_dump-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "cecce7834b13ac3e1439c2ac5f72789a", "sha256": "3720bf78ea18b66076c67bfcaca9158dadd656baf766a86a5928c2b74ee7e438" }, "downloads": -1, "filename": "php_var_dump-0.2.tar.gz", "has_sig": false, "md5_digest": "cecce7834b13ac3e1439c2ac5f72789a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2603, "upload_time": "2014-07-17T20:18:19", "url": "https://files.pythonhosted.org/packages/bf/29/a43ff0ef130715fe34462e4acfbf8c6b0966dbf6c16043f273291f842182/php_var_dump-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cecce7834b13ac3e1439c2ac5f72789a", "sha256": "3720bf78ea18b66076c67bfcaca9158dadd656baf766a86a5928c2b74ee7e438" }, "downloads": -1, "filename": "php_var_dump-0.2.tar.gz", "has_sig": false, "md5_digest": "cecce7834b13ac3e1439c2ac5f72789a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2603, "upload_time": "2014-07-17T20:18:19", "url": "https://files.pythonhosted.org/packages/bf/29/a43ff0ef130715fe34462e4acfbf8c6b0966dbf6c16043f273291f842182/php_var_dump-0.2.tar.gz" } ] }