Command-line PHP

The hard drive in my laptop crashed last week. Now I’m trying to recover everything on a new computer. When installing PHPMaker, I apparently need to install a ‘Composer’. That’s where I’m stuck — I don’t know what to fill in the box that says ‘choose the command-line PHP you want to use’. Where can I find this command-line?" How does such a command line look?
Any suggestion much appreciated
//karl eric

Install PHP first, then Composer should be able to find it. If not, specify the folder where the php.exe is.

I have installed PHP and Composer, and both work fine from the command line. However, PHPMaker doesn’t detect Composer.**
I suspect it’s a path issue, but I haven’t been able to solve it. I only receive error messages when I generate with the ‘composer update’ option enabled,

All pages are still generated without errors if I leave that option unchecked, so unless I find a solution, I’ll continue using PHPMaker without the Composer.
//karl eric

You need composer to update packages. PHP simply uses Composer from the system’s command prompt. You can test by running composer -V at the project folder. If you can run it, PHPMaker also can. Read Composer and set up the Windows PATH environment variable properly.

I am on it again. “Composer version 2.8.10 2025-07-10 19:08:33” looks good in the project folder

I believe the problem has somthing to do with SSL

I have checked the PHP.ini and checked that I have

extension=openssl
curl.cainfo = "C:\php\extras\ssl\cacert.pem"
openssl.cafile = "C:\php\extras\ssl\cacert.pem"

I have an old version of the program 2020.0.16 Do yo know if I it would be possible to get support to install the newest version if I buy it?. I mean support with remote control of my laptop to make sure everything is installed correctly.
//karl eric

You need to set up development environment yourself. If you install PHP under C:\, you need to make sure you have read/write permissions. (By default you don’t.) You may either set up read/write permissions of the C:\php folder, or install PHP somewhere else. If you have a D:\ drive, I suggest you install under D:\. (If you changed your PHP location, update the Windows PATH environment variable and re-install Composer.)

If you have antivirus software, also make sure it does not prevent PHPMaker from running php.exe.

I’ve been working on this for several days now. I’ve gotten pretty far but I can’t get to SSL verification to work even though curl and openssl are there and php.ini points to the correct cacert.pem.

Where did you get your cacert.pem? You may try download the latest from CA certificates extracted from Mozilla and try again. As said, put it at where you have read permission, or configure the read/write permission properly first.

Thanks for the tip. I switched to the newest cacert.pem. I’ve tried different versions of PHP, made sure everything is pointing right and everything that should be open in php.ini is, but still I end up here when I check composer:

C:\Users\karl>composer diagnos
Checking platform settings: OK
Checking git settings: No git process found
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://api.github.com/rate_limit: SSL certificate problem: unable to get local issuer certificate
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking Composer version: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://getcomposer.org/versions: SSL certificate problem: unable to get local issuer certificate
Checking Composer and its dependencies for vulnerabilities: Failed performing audit: curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate
Composer version: 2.8.10
PHP version: 8.2.29
PHP binary path: C:\PHP\php.exe
OpenSSL version: OpenSSL 3.0.15 3 Sep 2024
curl version: 8.7.0-DEV libz 1.2.12 brotli  zstd missing ssl OpenSSL/3.0.15
zip: extension not loaded, unzip not available, 7-Zip not available

Try change \ to /. (Just to test, \ should work.)

Make sure you have read permission for the C:\php\extras\ssl\ folder so the cert can be read.

Make sure you configuure for the php.exe (C:\PHP\php.exe) that you’re using, i.e. make sure you configure (C:\PHP\php.ini), in case you have other PHP versions installed.

Thanks for your answers. Now I can run generate in PHPMaker with the Composer update box ticked without any error messages. What finally made it work was when I disabled HTTPS scanning and QUICH/HTTP3 scanning blocks in Norton