Mac iOS install PHP framework laravel and version control tools git

Source: Internet
Author: User
Tags php framework

Well, these two days are configured under Windows and Linux, and have encountered a lot of problems, so it is all recorded.

Environment: Linux + lampcomposer Installation

Find a directory and execute the command. Download composer file

<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">curl-ss Https://getcomposer.org/installer | php</textarea>
1 Curl -ss https://getcomposer. Org/installer | php

Then copy the downloaded file Composer.phar to the/usr/local/bin directory, so you can use it globally.

The manual said to run the composer command directly, but I always feel wrong ah, use it is not right, anyway to lose command should be used Composer.phar

Laravel Installation

First, install the Laravel installer using composer

<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden; height: 15px;" readonly="" data-settings="dblclick">composer global require "Laravel/installer"</textarea>
1 Composer Global require "Laravel/installer"

Then add it to the system path cp composer.phar /usr/local/bin/composer , adding the following code at the bottom of the/etc/profile:

<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">export path= "/root/.composer/vendor/bin: $PATH"</textarea>
1 Export PATH="/root/.composer/vendor/bin: $PATH"

And then executesource /etc/profile

After execution laravel , if a help prompt appears, the installation is successful

Mac iOS install PHP framework laravel and version control tools git

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.