swoole / phpy

Connecting the Python and PHP ecosystems together
Apache License 2.0
542 stars 44 forks source link

[Tools] lib generator #73

Open TheCelavi opened 1 week ago

TheCelavi commented 1 week ago

Greetings! I am not sure how tools are intended to be used, but I have stumbled upon two problems:

  1. When using "composer req swoole/phpy", and trying to use scripts from tools to generate php code from Python libs, error is emitted due to wrong path to autoload.php. Maybe I am using tools as not intended, or this should be more flexible to the installation location.
  2. If I set properly path to autoload, generated code errors out. PHP mirror classes for Python libs are with empty constructors. Method do have arguments, but without types, nor return types.

Maybe I am doing something wrong, or there is a bug?

Btw - I honestly don't know how you guys pulled this mother f**** black voodoo magic, but it is nothing less than pure awesomeness. I am extremely impressed, level of integration is amazing 👏👏👏👏👏 great work! Well done!