1
$ php composer.phar install
PHP's phar extension is missing. Composer requires it to run. Enable the extension or recompile php without --disable-phar then try again.

I trying the extension html2wiki (Unsupported) of mediawiki, where I need to install the composer to make it work.

My php version is: 7.0.13 and my question is

How to enable this extension https://pecl.php.net/package/phar

jomegaA
  • 131
  • 6
  • Does this answer your question? [How do I install / enable the PHP phar extension?](https://stackoverflow.com/questions/22047487/how-do-i-install-enable-the-php-phar-extension) – Reynadan Apr 12 '22 at 09:04
  • Unfortunately no. I am using windows. – jomegaA Apr 12 '22 at 09:10
  • 1
    You are using wamp ? `php -d phar.require_hash=0 go-pear.phar` and restart wamp. if it's not working please follow this : https://stackoverflow.com/a/13032983/5391965 – Reynadan Apr 12 '22 at 09:25
  • https://stackoverflow.com/a/12800017/5391965, download a new composer.phar et put it in C:\composer\composer.phar – Reynadan Apr 12 '22 at 09:59
  • 1
    You are using https://stackoverflow.com/questions/39881924/change-php-version-used-by-composer-on-windows – unbug1402 Apr 12 '22 at 10:48
  • There are perhaps four parts to make html2wiki which I am not really successful yet. 1) PHP (old version) 1a) If Phar extension is missing then I may need a way to make extension work 2) Composer that is compitable with html2wiki 3) Start of the mediawiki without any exceptions 4) Daunting task to converting 1000+ pages of documents to wiki – jomegaA Apr 12 '22 at 13:56
  • I will start with wamp and see how things go – jomegaA Apr 12 '22 at 13:56

0 Answers0