-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[WIP] Extension installer #2898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Todo: add a pecl.php.net composer repo and to make all these packages available and be able to download auto-built dlls on windows :) |
Ah I missed the third point, but my point still stands, I think we need a way to get pecl stuff as a composer repository, and then maybe also support extension-typed packages on packagist? Could include a binary download url or something. |
Yes my idea was to have a way to specify alternative download urls based on architecture somehow. |
This will install the extension globally on the machine right? |
About HNI extensions: The HHVM HNI extension has the very similar installation process of the PHP extension, so this not should a problem.
As I see, is very complex install extension from composer due to: 1a) From source: C/C++ library dependencies, for example Mongofill extension for HHVM requires libbson installed on the system. Looks a great idea but with a bunch of problems in the back. |
@dzuelke didn't you want to write down what we discussed on this issue? ;-) |
Will do, @naderman, thanks for the reminder :) |
For the record here: |
Summary of my discussion with @naderman a few weeks ago: There should be a If an extension isn't available during a regular Debian etc could ship a php5-composer package that has a different extension installer plugin enabled by default which tries an This is the only sane way, as one can only enable extensions globally in PHP by copying a small So an approach where Composer on regular install writes out extra It also greatly simplifies the amount of work to be done ;) Much less complicated approach overall; installer plugin developers can figure out the gritty details for their respective platform(s) themselves. |
Just a status about pickle: We are close to the 1st release, it supports:
About the roadmap, I will update the README and the wiki later this week but the main next points are:
Feedback, PRs, etc welcome :) |
I am interested in helping out with getting an extension installer working. Are there any thoughts on how the extension installer plugin interface would look? I see a couple of design decisions:
Any thoughts? |
hi, On Wed, Jul 23, 2014 at 8:20 PM, Keith Miller notifications@github.com
Please not that distros package support will be added in pickle (too?). As
Pierre |
Any news? |
Pickle is almost feature complete now. Composer part is being worked on.
|
+1 from Pickle being integrated on Composer. <3 |
you planned to finish? |
Any update on this from Composer or Pickle team? |
bump? :) |
Still heavily unsure how useful this would really be... the issue remains that people run many different projects, and extensions would have to be installed for these, potentially even in different versions. Two years ago I wrote:
That's actually not true; |
Any updates on this PR? It's been open for 3 years now... |
Would be great to finally see this live. |
Any news? I would love to rewrite my lib with php-cpp to ship as an extension to improve performance :D But I refuse to ship the lib without composer support, just to stay modern and easy-to-use ;) |
Would love to see this completed! Specifically in my case for: https://github.com/arnaud-lb/php-rdkafka |
Is there any update? This PR is over 5 years old. |
any update? |
Are there any plans to progress with this or a way we can help out? |
The PR was functional, however the composer team would like to do it
another way. We shortly discussed it about having a design or PR for 2.1 or
2.2
…On Thu, Nov 26, 2020, 11:46 PM Nick ***@***.***> wrote:
Are there any plans to progress with this or a way we can help out?
I would love to see pickle integrated, i think it would be a huge
advantage to have "it" all in one place ❤️
PS: Thx for all the work guys 💪
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2898 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACE6KA3DHFHWSDWME5BGITSR2A7LANCNFSM4AOGETHA>
.
|
For this to be useful at all, we still need https://github.com/phpenv/phpenv to be a thing everybody uses first, because otherwise, there will be endless conflicts from PHP's global INI and extension handling. Otherwise, your |
This PR was really just a random proof of concept that would never have worked in this way, and I left it open as a reference for the future. But to make it clear that there is no work going on in this particular direction I will close this now, There are other tickets open where discussion can continue like #3897 and other issues/prs may be opened in the future. The tool to install extensions is pickle. I'll point again to #2898 (comment) which describes why the best we can really hope for is for composer to help generate a list of extensions to install and potentially have a separate command which invokes pickle with that list. The main problem that prevents deep integration is the fundamental difference between Composer's concept of dependencies local to a project inside a directory, and PHP's extensions which are typically installed system wide and not easily installable/loadable per project. |
Supports PHP & HHVM.
Todo:
Replaces the earlier PR #498