Reply content:
Know the first answer, just tried, to the landlord to write a reliable Chinese answer:
PHP Many excellent framework, such as Laravel and so on, the mirror is abroad, the relevant package management tool Composer is also abroad, so the possibility of installation failure is very large, the main problem is that because not even composer. Here's how to fix it:
Composer
Go to the official website and choose Download to pull down
Looking for manual Download.
I have downloaded the latest, I have downloaded the latest,
The file name should be Composer.phar, paste this into your php file directory
is a php.exe file in the same sibling directory, I myself is a custom environment, a lot of people are using XAMPP and so on
Look at your own situation.
Please look at the first two files and the last file, which is probably the relationship
Composer.bat inside writes:
@ECHO OFF
PHP "%~dp0composer.phar"%*
Then put your PHP into the PATH environment variable I don't have to say more.
Open a command prompt to enter composer-v
That's probably the way you see it. Then you have to install Laravel and then you have to be a little more trouble, but I do not know which frame you are going to use, just don't talk nonsense, eat
Say one more: in the domestic learning something, tossing the environment 90% people see the following two links to know.
Packagist/composer China Full-volume mirror
Composer Chinese web
Save Ca-bundle.crt to your local path
Double click Ca-bundler.crt to import it
Add the PHP.ini
curl.cainfo=d:/download/ca-bundle.crt openssl.cafile=d:/download/ca-bundle.crt
What's the deal? Say, the landlord is want to learn Yii 2.0 it? Go directly to the entire VPN bar, after the wall what problems are not, now free VPN is also quite a lot of. The problem is, I can't even download composer-setup.exe, it's stuck in these days.
Who has to send a link to find solutions. The same question, is not the link on/ httpcomposer.org, cannot get the installation package?
I have solved, recommend you use TOVPN with Agent can link up! If there is a problem, say @ Ma Xiao put forward a positive solution, for you to turn it.
1. Click Ca-bundle.crt , then ctrl+s save to Local
2. Double-click the CA-BUNDLER.CRT to install
3. Add the following two lines to the php.ini file you are using:
curl.cainfo=d:/路径/ca-bundle.crt openssl.cafile=d:/路径/ca-bundle.crt
-