PHP not found but s installed

i installed bolt.diy via pnpm and im having an issue, im trying to build a laravel project but as soon as i get to “php artisan xxxxxxx” i get an error “command not found PHP” i reinstalled php and restarted, same prob

so i ran echo $PATH, checked the /usr/bin/ folder and indeed php is there and responds as expected to /usr/bin/php -v and it responds as it should, back to bolt terminal, php not found, so i ran an ls /usr/bin in the bolt terminal, it spat out some folders but there were no files at all. i cant seem to find the /usr/bin folder it is using anywhere

if anyone knows a quick fix for this id be very grateful

Hi @gaspoweredcat,

bolt.diy does not support PHP. It just supports NodeJS based applications.

really? i may be remembering wrong but im sure i was using it with my original laravel project before my ssd crapped out, last time it basically just worked, now its not having it, only real difference is i imported the other from a folder and i started this one in bolt.diy. maybe my brain is just scrambled today

There was never php available within the preview. The LLMs are able to provide PHP code and it will write in the code files, for sure.
But,

  1. The preview will not show your project (you would need to deploy / run locally somewhre to test)
  2. The prompts are optimized for writing nodejs based applications, so the results are never that good, as they could be when optimized for PHP

I would recommend using Cursor/Windsurf/… for PHP applications.