Login  |  Packages  |  Support  |  Bugs
Top Level :: Languages :: phpy :: 1.0.11

phpy 1.0.11

Package Information
Summary A library for inter-calling Python and PHP
Maintainers Han Tianfeng < rango at swoole dot com > (lead) [details]
License Apache2.0
Description This extension allows PHP to directly use Python modules and functions without RPC.
Including Pytorch, transformer, numpy, tensorflow and other Python AI libraries, which can be used like calling
PHP functions.
Homepage https://github.com/swoole/phpy
Release notes
Version 1.0.11
(stable)
- Added PyCore::raise() to throw exceptions to the Python layer.
- Added PyNamedFn function, which converts PHP functions into Python functions, complete with annotations, parameters, and return type information.
- Added the PyEnum function to transform PHP classes containing only constants into Python Enums.
- Added the bin/phpy tool.
- Added the argument_as_object option
- Fixed a bug in PyTuple::offsetExists where it returned false for negative input parameters.
- Added a PyClass::__init() callback, which is invoked within the init method of Python classes.

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 1.0.11
PHP Version: PHP 8.1.0 or newer
PEAR Package: PEAR 1.4.0 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 21 17:05:02 2024 UTC
Bandwidth and hardware provided by: pair Networks