-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to Add PHP Extension and documentation suggestion #355
Comments
I did a test using the example: Run
Returns installed extensions I changed composer.json a little to try new extensions:
Result final:
Through the composer it was possible to add new extensions, but some were not added because it is more complex like Phalcon, Mencached and Redis. Perhaps in these cases some way to pass the path of the .so file generated from the extension to part, example of Redis: And from Phalcon: |
There are a few different things here I want to mention:
|
See the documentation to add custom For php versions, you should be able to view the details from the release of the corresponding version of php-dist buildpack packed with this php language-family buildpack. For e.g. https://github.com/paketo-buildpacks/php-dist/releases/tag/v0.2.0 |
Hi, thanks for the info. I will analyze the past information for future use of Paketo in Production. |
There are some PECL extensions I'd like to have available. Namely grpc, amqp, ds, event and eio. 🤔 In this order of importance, grpc being the only critical one. |
@enumag Unfortunately, the only extensions you can add with the buildpacks currently are the ones that come with the distribution of PHP, so if any of those aren't in the list there's no way to add them at the moment. I can file an issue to look into a better way of adding support for other extensions in the future. For the extensions that do come with PHP, they can be used by adding a |
Yeah all of these are PECL extensions... they aren't too difficult to install though. Just install an appropriate library and run pecl install. Possible optimization is that for installation dev libraries are necessary but runtime needs just the non dev ones. |
@enumag we support some PECL extensions already, just not all of them |
Where can I find the definitions for the already supported pecl extensions? If it's simple enough I might be able to send a PR for those I need. |
@enumag it's pretty complicated how it all works together, as I outlined in #529 I want to see if we can find a better way to handle this eventually. I'm not sure if we'd want to add extra extensions here, because then they'd be there for everyone. Anyways, the lists of extensions are defined for each version of PHP: |
@sophiewigmore It seems to refer to some AmqpPeclRecipe... where can I find these recipes? |
@sophiewigmore That... doesn't make sense... amqp extension requires Also it seems that |
Hello, I would like to know how to add new PHP extensions, such as Phalcon, Swoole or some other extension not included in Buildpack?
I would also like to suggest more details like the PHP versions supported in the documentation, I was able to see it in Releases and which extensions are included natively, I missed the documentation of these details and also examples of more complete uses such as adding a new extension, adding SSL through Let's Encrypt and Database like MySQL / Mariadb and the like.
The idealization of this project is very good, if it gets a little more complete, the documentation should make it even easier to use, thanks.
The text was updated successfully, but these errors were encountered: