php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program

I am trying to install and setup Laravel 4 through the Git Shell using this tutorial:

It all seems to be working until I have to run php artisan key:generate at which point it gives me the error:

  • What info does Ctrl-t show during a terminal “git push”?
  • How do I check the date and time of the latest `git pull` that was executed?
  • Git gui clients on windows as nice as GitX on MacOS?
  • Git push commits from another repo without the original user info
  • How to push from GitHub to your VPS
  • Issue with cloning git repository
  • php : The term ‘php’ is not recognized as the name of a cmdlet, function, script file, or operable program

    I have hunted around and am not sure how to go about setting this up so it recognizes PHP.

    Does anyone have any ideas or know of a thorough tutorial to get Laravel 4 setup?

  • How to announce backward incompatible changes in OSS project?
  • Findbugs for Git Pull Request
  • git clone fails silently
  • clone repo from local to remote with windows local
  • Stuck on git rebase while merging diverged branches
  • How can I tell which files have been marked as “assume unchanged” in git
  • One Solution collect form web for “php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program”

    Try adding your PHP.exe‘s folder to your System PATH variables, so PHP can be accessed via terminal.

    For example; C:\wamp\bin\php\php5.4.3

    To add new PATH variable, follow this:

    1. Right click on My Computer, select Properties
    2. Select Advanced System Settings
    3. In the System Properties window click the Environment Variables button.
    4. Select System Variables -> PATH and click Edit.
    5. Enter the folder where your PHP.exe is located.

    If you did this correctly, restart your terminal and type php --version to check if it works.

    Note: Don’t forget to seperate paths by using ; seperator.

    Git Baby is a git and github fan, let's start git clone.