How to install PHP extension locally on WAMP?

I have never done this, so I am looking for a detailed guide. I am trying to use the Evernote API to create a PHP page. I downloaded their SDK and it says that I need to install the OAuth extension for PHP. I have a WAMPSERVER installed on my local computer (Windows 7). I tried reading the manual, but I can’t even figure out what to download: S Is this a pretty simple process?

http://php.net/manual/en/book.oauth.php

+6
source share
4 answers

Get the precompiled dll from http://downloads.php.net/pierre/

Find the oauth page and select it for your device.

Put this .dll file in your PHP extension directory. Locate the extension area in the php.ini file and add the following to it:

[PHP_OAUTH]
extension = php_oauth.dll

restart the wamp server

+12
source

The PHP site provides excellent instructions for installing PHP extensions on Windows. Just search for * .dll in PECL and follow these instructions . You can get the OAuth library here .

+4
source

I had the same problems that tried to fix this myself. Most of the stackoverflow information on this topic is good, but outdated. You can get the latest oAuth libraries at php.net here:

http://windows.php.net/downloads/pecl/releases/oauth/

However, I also had some problems getting it to work with WAMP, since the version of PHP they provided is outdated and does not work with extensions there. To fix this, I had to manually add PHP versions to WAMP. You can follow this guide on how to do this:

http://www.websanova.com/tutorials/php/manually-adding-php-versions-to-wamp

0
source

I am using WAMPServer (x64) with PHP5.6.25 and I want to install "Blesta", which requires "Pecl - Mailparse", So:

  • I download "PHP Mailparse v2.1.6 (PHP v5.6) (Thread Safe) (vc11) (x64)"
  • I extract the download file to the folder "C: \ wamp64 \ bin \ php \ php5.6.25 \ ext"
  • I add "extension = php_mailparse.dll" to the file "C: \ wamp64 \ bin \ php \ php5.6.25 \ phpForApache.ini", but at the end "Dynamic extensions"
  • Restart WAMPServer
  • Install "Blesta"

Note for # 3 Example:

;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll extension=php_mailparse.dll 
0
source

Source: https://habr.com/ru/post/893425/