laravel ¾µÏñ×°ÖÃ
Ëæ×Å laravel µÄÈÕÒæÊ¢ÐУ¬ÔÚ×°Öà laravel µÄʱ¼ä£¬ÎÒÃǾ³£»áÓöµ½Ò»Ð©ÎÊÌâ¡£ÆäÖУ¬Ðí¶àÎÊÌⶼÊÇÓëÍøÂçÓйصģ¬ÀýÈçÏÂÔØËÙÂÊ»ºÂýµÈ¡£±¾ÎĽ«ÏÈÈÝÔõÑùʹÓà laravel ¾µÏñ¼ÓËÙ×°Öã¬ÒÔÌá¸ß×°ÖÃЧÂÊ¡£
Ò»¡¢Ê²Ã´ÊÇ Laravel ¾µÏñ
Laravel ¾µÏñÊÇÖ¸Ò»¸ö²î±ðÓÚ Laravel ¹Ù·½Ô´µÄ¿ÉÌæ»»ÏÂÔØÔ´¡£Ëü¾ßÓÐÓë Laravel ¹Ù·½Ô´ÏàͬµÄÎļþ£¬µ«ÆäÏÂÔØËÙÂʸü¿ì£¬¿ÉÒÔÈÃÓû§¸ü¿ìµØÏÂÔغÍ×°Öà Laravel¡£
¶þ¡¢ÔõÑùʹÓà Laravel ¾µÏñ
Composer ×°ÖÃ
ÎÒÃÇ¿ÉÒÔͨ¹ýÔÚÏÂÁîÐÐÖÐÌí¼Ó–prefer-distÑ¡ÏîÀ´Ê¹Óà Laravel ¾µÏñÀ´×°Öà Laravel¡£Ê¾ÀýÈçÏ£º
composer create-project --prefer-dist laravel/laravel project-name
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄãµÄÍøÂçÇéÐβ»ÊǺܺ㬿ÉÄÜ»áÓöµ½ÏÂÔØ»ºÂý»òÏÂÔØʧ°ÜµÄÎÊÌâ¡£Õâʱ£¬Äã¿ÉÒÔ°Ñ Laravel ¹Ù·½Ô´»»³ÉÖйúÏìÓ¦¸ü¿ìµÄº£ÄÚÔ´¡£ÒÔ°¢ÀïÔÆµÄ Composer ¾µÏñΪÀý£¬ÎÒÃÇ¿ÉÒÔÔÚÈ«¾ÖÉèÖà Composer ¾µÏñ×°Öà URL¡£
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
Õâʱ£¬ÔÚʹÓà Composer ×°Öà Laravel µÄʱ¼ä£¬Composer »áÓÅÏÈʹÓð¢ÀïÔÆµÄ Composer ¾µÏñÀ´ÏÂÔØËùÐèµÄÎļþ£¬´Ó¶øʹÕû¸öÀú³Ì¸ü¿ìËÙ¡¢¸ü˳³©¡£
Laravel ×°ÖÃ
ÈôÊÇÄãÏëͨ¹ý Laravel ¹ÙÍøÌṩµÄ×°ÖðüÀ´×°Öà Laravel£¬Í¬Ñù¿ÉÒÔʹÓà Laravel ¾µÏñÀ´¼ÓËÙÏÂÔØ¡£ÒÔ°¢ÀïÔÆµÄ Laravel ¾µÏñΪÀý£¬ÎÒÃÇ¿ÉÒÔÔÚ×°Öà Laravel ֮ǰ£¬½« Laravel ¹Ù·½Ô´»»³É°¢ÀïÔÆµÄ Laravel ¾µÏñ¡£Ê¾ÀýÈçÏ£º
composer config -g repositories.laravel composer https://mirrors.aliyun.com/composer/
µÇ¼ºó¸´ÖÆ
ÕâÑù£¬ÔÚ×°Öà Laravel µÄʱ¼ä£¬Composer »á×Ô¶¯´Ó°¢ÀïÔÆµÄ Laravel ¾µÏñÖÐÏÂÔØËùÐèµÄÎļþ£¬¼ÓËÙÏÂÔØËÙÂÊ¡£
Èý¡¢ÔõÑùÉèÖà Laravel ¾µÏñ
°¢ÀïÔÆ Composer ¾µÏñ
°¢ÀïÔÆÌṩÁË Composer µÄ¾µÏñÔ´£¬Ëü²»µ«°üÀ¨ PHP ¿ÍÕ»£¬»¹°üÀ¨ Composer µÄÈ«Á¿¾µÏñ¡¢ÖÐÎÄÎĵµ¡¢¾µÏñÕ¾ÎĵµºÍ Composer ÎĵµµÈ¡£Óû§¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÉèÖþµÏñÔ´£º
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
Laravel China ¾µÏñ
Laravel China ¾µÏñÊÇ Laravel µÄÒ»¸ö·Ç¹Ù·½µÄ¿ª·¢ÉçÇø£¬ÌṩÁ˶à¸ö Laravel ¾µÏñ×ÊÔ´¡£Óû§¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÉèÖà Laravel China ¾µÏñ£º
composer config -g repo.laravelchina composer https://packagist.laravel-china.org
µÇ¼ºó¸´ÖÆ
³ý´ËÖ®Í⣬Laravel China »¹ÌṩÁËÒ»¸ö»ùÓÚ Symfony µÄ¾µÏñÔ´£¬¸ÃÔ´Óжà¸öЧÀÍÆ÷£¬ÊʺϺ£ÄÚ¸÷µØµÄÓû§¡£¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÉèÖà Symfony ¾µÏñ£º
composer config -g repo.symfony composer https://php.cnpkg.org
µÇ¼ºó¸´ÖÆ
×¢ÖØÊÂÏ
ÈôÊÇʹÓÃÁË Laravel ¾µÏñ£¬½¨ÒéÔÚʹÓÃÇ°Ïȱ¸·ÝÔÀ´µÄÉèÖã¬ÒÔÃâ·ºÆðÒâÍâÇéÐΡ£
ÈôÊǽ« Composer ¾µÏñÉèÖÃΪ°¢ÀïÔÆ Composer ¾µÏñ£¬Ê×´ÎʹÓÿÉÄÜÐèÒªÆÚ´ýÒ»¶Îʱ¼äÒÔ¾ÙÐгõʼ»¯£¬µ«Ö®ºó»á´ó´ó¼ÓËÙ Laravel µÄ°üÏÂÔغÍ×°Öá£
ÈôÊÇÒª»Ö¸´Ä¬È쵀 Laravel ¾µÏñÔ´£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
composer config -g repo.packagist composer https://packagist.org
µÇ¼ºó¸´ÖÆ
ËÄ¡¢×ܽá
Laravel ¾µÏñÊÇÒ»¸öÈÃÈ˸ÐÓ¦ÐÅÍеŤ¾ß£¬¿ÉÒÔ½â¾öÓÉÍøÂçÏÞÖÆ´øÀ´µÄÎÊÌ⣬Ҳ¿ÉÒÔ¼ÓËÙ Laravel ×°ÖõÄËÙÂÊ¡£ÓÈÆäÊÇÔÚÖйú£¬Ëü¿ÉÒÔÉÁ¿ª·¢Ö°Ô±½ÚÔ¼´ó×ÚµÄʱ¼äºÍ¾«Éñ¡£Ï£Íû±¾ÎĵÄÏÈÈÝÄܹ»×ÊÖú¶ÁÕ߸üºÃµØʹÓà Laravel ¾µÏñ£¬Ìá¸ßÏîÄ¿¿ª·¢Ð§ÂÊ¡£
ÒÔÉϾÍÊÇlaravel ¾µÏñ×°ÖõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡