Project created by Apicra, https://github.com/apicra/npm-github-win.git
PHP.exe with all modules, to usage locally
https://windows.php.net/download#php-7.3
-install-composer.bat
curl.bat
doc.bat
download.bat
info.bat
install.bat
php.bat
powershell.bat
remove.bat
serve.bat
start.bat
status.bat
stop.bat
stop_port.bat
test_after.bat
test_before.bat
update.bat
- How to Install Composer and PHP on Windows 10 | DevAnswers.co
- Installing PHP 7 and Composer on Windows 10, Natively | Jeff Geerling
In order to run PHP on Windows 10, you will need to install Visual C++ Redistributable for Visual Studio. You can download it from the Windows Download page or click the direct link below.
64 bit
- VC_redist.x64.exe (64 bit)
- https://aka.ms/vs/15/release/VC_redist.x64.exe
32 bit
- VC_redist.x86.exe (32 bit)
- https://aka.ms/vs/16/release/VC_redist.x86.exe
Download:
- Composer-Setup.exe
- https://getcomposer.org/Composer-Setup.exe
Composer setup usually does this for you, but if for whatever reason it didn’t, you can set one up manually.
So that you don’t have to type the whole path to php.exe every time you run a PHP command, you should add c:\php7 as a path environment variable.
Open System Properties by clicking the start menu and typing sysdm.cpl and press Enter
php -v
composer -V.
Installing PHP 7 and Composer on Windows 10, Natively | Jeff Geerling
- Install the Visual C++ Redistributable for Visual Studio 2015—this is linked in the sidebar of the PHP for Windows Download page, but it's kind of hidden. If you don't do this, you'll run into a rather cryptic error message,
VCRUNTIME140.DLL was not found
, andphp
commands won't work.- Download PHP for Windows. I prefer to use 7.1.x (current release - 1), so I downloaded the latest Non-thread-safe 64-bit version of 7.1.x. I downloaded the .zip file version of the
VC14 x64 Non Thread Safe
edition, under the PHP 7.1 heading.- Expand the zip file into the path
C:\PHP7
.- Configure PHP to run correctly on your system:
- In the
C:\PHP7
folder, rename the filephp.ini-development
tophp.ini
.- Edit the
php.ini
file in a text editor (e.g. Notepad++, Atom, or Sublime Text).- Change the following settings in the file and save the file:
- Change
memory_limit
from128M
to1G
(because Composer can use lots of memory!)- Uncomment the line that reads
; extension_dir = "ext"
(remove the;
so the line is justextension_dir = "ext"
).- In the section where there are a bunch of
extension=
lines, uncomment the following lines:
extension=php_gd2.dll
extension=php_curl.dll
extension=php_mbstring.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_sockets.dll
- Add
C:\PHP7
to your Windows system path:
- Open the System Control Panel.
- Click 'Advanced System Settings'.
- Click the 'Environment Variables...' button.
- Click on the
Path
row under 'System variables', and click 'Edit...'- Click 'New' and add the row
C:\PHP7
.- Click OK, then OK, then OK, and close out of the System Control Panel.
- Open PowerShell or another terminal emulator (I generally prefer cmder), and type in
php -v
to verify PHP is working.
EQU | equal to NEQ | not equal to LSS | less than LEQ | less than or equal to GTR | greater than GEQ | greater than or equal to