Skip to content

Instantly share code, notes, and snippets.

@mpociot
Created June 4, 2025 09:06
Show Gist options
  • Save mpociot/1d6809a600701beca4fa544551acd2de to your computer and use it in GitHub Desktop.
Save mpociot/1d6809a600701beca4fa544551acd2de to your computer and use it in GitHub Desktop.
OpenAI Codex PHP environment setup for Laravel
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"
export PATH="/root/.config/herd-lite/bin/:$PATH"
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed --force -n
npm install
npm run build
@jimrubenstein
Copy link

jimrubenstein commented Oct 1, 2025

how are these scripts used in the context of https://chatgpt.com/codex?

I mean, how do I make the environment where Codex is running to execute these commands? My best guess here is to indicate it in an AGENTS.md file and keep this codex.sh script somewhere else?

Thanks!

in the web version of codex (which where you use this)

you create an environment at chatgpt.com/codex, and go to its setup configuration. there will be a textarea where you can a write a setup script for the environment. that’s where this goes.

refer to https://dev.to/javiereguiluz/how-to-make-chatgpt-codex-work-with-php-and-symfony-4lj8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment