{"id":13700120,"url":"https://github.com/jparise/php-python","last_synced_at":"2026-01-11T06:44:01.796Z","repository":{"id":4399912,"uuid":"5537076","full_name":"jparise/php-python","owner":"jparise","description":"Embedded Python Extension for PHP","archived":true,"fork":false,"pushed_at":"2012-09-10T04:48:51.000Z","size":1019,"stargazers_count":68,"open_issues_count":11,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-13T06:33:05.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pecl.php.net/package/python","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jparise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-24T07:21:32.000Z","updated_at":"2023-02-06T16:09:28.000Z","dependencies_parsed_at":"2022-08-28T01:12:10.911Z","dependency_job_id":null,"html_url":"https://github.com/jparise/php-python","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fphp-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fphp-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fphp-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fphp-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jparise","download_url":"https://codeload.github.com/jparise/php-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252382959,"owners_count":21739245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T20:00:48.803Z","updated_at":"2025-05-04T18:34:16.428Z","avatar_url":"https://github.com/jparise.png","language":"C","funding_links":[],"categories":["跨语言"],"sub_categories":[],"readme":"# Python in PHP\n\nCopyright \u0026copy; 2002-2012 Jon Parise\n\n## Overview\n\nThis code is released under the terms of the [MIT License][license].\n\n### Requirements\n\nThe Python extension has the following system requirements:\n\n- PHP version 5.2.0 or later\n- PEAR installer version 1.4.3 or later\n\n### Installation\n\nThe easiest way to install the Perforce extension is by using the PECL\ninstaller::\n\n    pecl install python\n\nIf you're building from source code, should use the ``--with-python``\nconfiguration option.  If your copy of the Python hasn't been installed in one\nof the default locations, you can specify it as a parameter::\n\n    --with-python=/opt/python\n\nMore detailed information on installing PECL packages in general can be found\nin the [Installation of PECL Extensions][pecl-install] section of the [PHP\nManual][php-manual].\n\n### Source Code\n\nThis package's source code is hosted on GitHub:\n\n    https://github.com/jparise/php-python.git\n\nA number of unit tests are included to help maintain correct and expected\nbehavior.  The tests can be run using PECL tool's `run-tests` command:\n\n    pecl run-tests -p python\n\nAdditional unit test contributions are welcome, especially when they increase\ncode coverage or exercise specific use cases.\n\n## Usage\n\n### INI Settings\n\n#### python.optimize\n\nThe `python.optimize` INI setting controls the Python interpreter's runtime\noptimization level.  This is a global, system-wide setting and therefore can\nonly be set in the PHP.ini file.\n\nWhen set to **0** (the default), no additional optimizations are enabled, and\nthe built-in `__debug__` flag is True.\n\nWhen set to **1** (equivalent to Python's `-O` command line option), the\nPython interpreter will generate optimized bytecode, and the built-in\n`__debug__` flag is set to False.\n\nWhen set to **2** (equivalent to Python's `-OO` command line option), the\nPython doc-strings will be removed in addition to the above optimizations.\n\n## Development and Support\n\n### Reporting Problems and Suggestions\n\nIf you run into a problem or would like to make a suggestion, please use the\n[issue tracker][].  Feel free to contact me directly for other issues, but\nplease try to use the bug tracker whenever possible so that others in the\ncommunity will benefit from your feedback and my responses.\n\n[license]: http://www.opensource.org/licenses/mit-license.php\n[pecl-install]: http://www.php.net/manual/install.pecl.php\n[php-manual]: http://www.php.net/manual/\n[issue tracker]: https://github.com/jparise/php-python/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjparise%2Fphp-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjparise%2Fphp-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjparise%2Fphp-python/lists"}