PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 29, 2022

[FIXED] Updating/Creating Additioanl .profile for laravel

 January 29, 2022     composer-php, laravel, mamp, mamp-pro, php     No comments   

Issue

I'm trying to make my life easier by adding a PATH so that instead of having to type in ~/.composer/vendor/bin/laravel everytime into my terminal to access the Laravel installer menu I can just type in laravel to bring up the same Laravel installer commands. I already have a .profile file that is set up to point to MAMP Pro's PHP module so I'm unsure if I have to update it with an additional line or if I should be creating a new .profile page in a different directory to allow feel or this to happen.

File is located here: ~/ as .profile

export PATH=/Applications/MAMP/bin/php/php5.5.3/bin:$PATH

Edit: I currently have composer residing in my ~/usr/bin/composer directory because when I put it inside of the ~/usr/local/bin/composer directory I cannot type composer commands it says they don't exist. I am running on a OS X Mavericks installation on my Mac. With composer in the directory it currently is in I am able to run composer commands. I have a .profile file that has the above path inside it pointing to Mamp's PHP installation. I'm wanting to be able to just type in "laravel" into my terminal to get the Laravel installation tool but instead of having to type in

~/.composer/vendor/bin/laravel everytime so I saw on a video that you have to add a path but everytime I do it overwrites that one I already have.

Is there any additional ideas that pertain to the exporting situation.


Solution

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Remove your current composer.phar or composer file and run the two commands above.

If you're still getting command not found, something is wrong with your operating system.



Answered By - user4097807
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing