How To Create Installer In Php Project
How to Install Composer and PHP on Windows ten
Last updated on | 73 replies
In this guide we volition install Composer and PHP on Windows 10 then that nosotros can install dependencies for our web apps directly from Windows command line.
1. Download and Install Visual C++
In lodge to run PHP on Windows 10, y'all volition demand to install Visual C++ Redistributable for Visual Studio. You tin can download information technology from the Windows Download page or click the direct link below.
- Download: VC_redist.x64.exe (64 fleck) or VC_redist.x86.exe (32 scrap)
One time downloaded, run the installer and click Install.
2. Download and Extract PHP
Go to the Windows PHP download page and download the .zip of the version of PHP you lot require. In this guide, we are installing PHP 7.4 VC15 x64 Non Thread Rubber, which is the latest version as of writing (Jan 2022).
One time downloaded, create a new folder in c:\php7 (or wherever you prefer) and excerpt your PHP zip to information technology.
three. Download and Install Composer
- DownloadComposer-Setup.exe from the Composer Download page.
In the second step of Composer Setup, make sure the right path to php.exe is set and click Next.
If Setup prompts to create php.ini, permit information technology and click Next.
Skip the Proxy URL settings, just click Next and then click Install.
Click Finish once install is consummate.
iv. Exam PHP
If y'all accept any Command Prompt windows currently open, close them at present.
Open Command Prompt, blazon php -v and press Enter. You should now see the PHP version.
If it returns a PHP version, you tin can skip to Step 6 to test Composer.
If yous get an error "'php' is not recognized every bit an internal or external command,
operable program or batch file.", yous may demand to Add a Path Environment Variable.
5. Add Path Environment Variable
Composer setup usually does this for yous, just if for whatever reason it didn't, you can ready ane up manually.
So that you don't accept to type the whole path to php.exe every fourth dimension you run a PHP command, you should add c:\php7 as a path surround variable.
Open Arrangement Properties by clicking the start menu and typing sysdm.cpl and press Enter.
In System Properties, click Environment Variables.
In System Variables, click Path so click Edit.
Click New, blazon the path to your PHP folder (c:\php7) and click OK.
Shut the Organization Properties dialogue past clicking OK.
six. Test Composer
Open up Control Prompt and type composer -V (that's uppercase V).
If all was installed correctly, you should see a version number.
Hurrah! You can now run Composer and PHP on Windows 10.
Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.
p.s. I increased my AdSense revenue past 200% using AI 🤖. Read my Ezoic review to discover out how.
Source: https://devanswers.co/install-composer-php-windows-10/
Posted by: warfieldtonts1978.blogspot.com

0 Response to "How To Create Installer In Php Project"
Post a Comment