godruoyi commented on issue #2813:
URL: https://github.com/apache/opendal/issues/2813#issuecomment-2737164233

   hi @Xuanwo Promoting PIE to support direct installation of binary files may 
take a lot of time and might not ultimately be accepted. Based on this, I think 
we can consider an alternative approach. My idea is: 
   
   Users can directly install the OpenDAL extension via `composer require 
opendal/opendal`. 
   
   To achieve this effect, we need to:
   
   1. Submit the Composer package to https://packagist.org/; we can modify our 
`ci_bindings_php.yml` file to accomplish this.
   2. Modify the Composer configuration so that it executes a script (e.g., 
`install.php`) during the first installation of `opendal/opendal`.
   3. In `install.php`, detect the user's operating system and PHP version, 
then download the appropriate precompiled file.
   4. If no corresponding precompiled extension exists, attempt to compile from 
source or directly throw an error prompting users to refer to instructions in 
the README for compiling from source.
   
   What do you think? If you're okay with it, I can write a demo soon to see 
how it works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to