Publish list of the extensions available through the Bref PHP container #116
Replies: 2 comments 1 reply
-
|
I was able to mostly determine this through the PHP info data in utilities when checking a Craft Cloud environment, but maybe worth having in the docs somewhere of all the core PHP extensions available for future reference. |
Beta Was this translation helpful? Give feedback.
-
|
@jamesmacwhite great idea – we'll get this documented. Side note: while not really intended for public consumption, we do have a DDEV plugin we use internally to simulate the Cloud environment as closely as possible: https://github.com/craftcms/ddev-craft-cloud That is likely a bit more than you want or need, as you probably just want the PHP configuration to match, not the entire stack. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For the supported PHP versions available to be defined through the Craft Cloud YAML file, it would be great if there could be a way to see the PHP info page in a sample PHP Bref container that's running on Craft Cloud to see the detailed PHP info. For security reasons the phpinfo() function is being filtered out by the Craft Cloud WAF.
Fortrabbit do this through:
https://phpinfo-81.frb.io/
https://phpinfo-82.frb.io/
https://phpinfo-83.frb.io/
https://phpinfo-84.frb.io/
Similar to #110, I recently used a PHP function included in one of the common extensions that is often bundled in PHP, but it is not available on Craft Cloud. Until I committed the code to at least one Craft Cloud environment. I had no indication of this being a problem.
Ideally my development environment should match Craft Cloud so I can enable and disable extensions accordingly to avoid issues.
Alternatively, if it is possible to publish the core Bref PHP extensions and anything else the PHP container uses as a general list, that would provide additional insight to try and align my development environment to Craft Cloud, to avoid using a function which is not enabled due to the extension being not part of the Bref PHP image.
Beta Was this translation helpful? Give feedback.
All reactions