Add support for PHP#8
Conversation
|
Bless you, Miguel. lets send this one |
|
Good stuff, love this! |
|
@joshma-openai can we get this reviewed/merged? We're wasting lots of time on setup scripts running in the background - package manager updates each time, downloads packages and installs them several times per Codex Task, which is a waste of resources, I guess. |
@brzuchal Do you have a gist for your setup script you could share? |
|
@brzuchal thank you! |
|
For better or worse, php is one of the most used web languages in the world. And Laravel makes it a dream to use with AI support. Let's go!! |
larson-carter
left a comment
There was a problem hiding this comment.
Works for me!
Fixes #36.
Currently over half the time coded takes is running my custom php installation. So this greatly improves it!
|
Woo! Waiting for custom image support, this will at least make the wait less excruciating. |
|
@m1guelpf Please add more PHP versions in the selector. 8.2-8.4 is too new for a lot of users. For example, some could still be on v7, and we're on 8.1. |
|
May I also suggest adding It's such an integral part of PHP that I feel it should be included into the base image. |
|
Came here just to say ... +1 👍🏽 |
I also do agree with this. I think that this is a necessity that should be added. Especially with the future of test driven development. |
|
Especially since by default, Codex attempts to run tests which in PHP's case use phpunit. |
|
After doing further review I have noticed a few things for efficiency reasons:
Also this comment is slightly disheartening. |
|
it may be a good idea to add composer as well |
This PR already installs composer https://github.com/openai/codex-universal/pull/8/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R235. |
|
great!! |
This is not a good idea, PHPUnit version used for testing should go with application requirements and be installed by Composer, you don't want to execute incompatible PHPUnit with your config+tests struggle with deprecation errors or missing features support |
|
Yep. This PR is just to get PHP in the absolute base, 'language' options for Codex and OpenAI. It's not a feature complete docker image for every situation. We can all run our own setup scripts. We just need a common starting point. |
|
Hey folks, sorry for the delay and thank you @m1guelpf for kicking this off! Just a note, this image repo is actually a mirror / reference at the moment - the source of truth is in an internal repo, so while I can merge PRs here, it actually requires some work first to update the real image build. We'll get to this in the upcoming week or so; I'll update back when it's fully merged. |
|
Hi @joshma-openai can you give an update on this? |
|
Hi @joshma-openai, may we request an update on this, please? |
|
Two things, hate to keep tagging you and making this drag out forever. 1.) Is there any update on this PHP/Laravel PR/Ticket? |
|
Folks, happy to announce that PHP is now included in the base image! Version selection in the UI is coming soon - for now it's baked to php 8.4 and you can run |
Adds support for PHP