# PHP Extensions Package

This package simplifies the installation of the following PHP extensions in the Create Magento App project using `magento-scripts` **V2**.

* `memcached`
* `pdo_sqlsrv` (Microsoft SQL Server)
* `sqlsrv` (Microsoft SQL Server)&#x20;
* `ionCube`
* `Imagick` (since version 1.0.6)

{% hint style="info" %}
With newer versions of the package, this list might be updated!
{% endhint %}

### Installation

1. Install package.

   ```bash
   npm i @scandipwa/magento-scripts-php-extensions@latest

   # or with yarn

   yarn add @scandipwa/magento-scripts-php-extensions@latest
   ```
2. Enable extensions in `cma.js`

   <pre class="language-javascript"><code class="lang-javascript"><strong>// cma.js
   </strong>const {
       ioncube,
       memcached,
       pdo_sqlsrv,
       sqlsrv,
       imagick
   } = require('@scandipwa/magento-scripts-php-extensions');

   /** @type {import('@scandipwa/magento-scripts').CMAConfiguration} */
   module.exports = {
       // ... other configurations
       configuration: {
           php: {
               extensions: { // &#x3C;- set extensions here
                   ioncube,
                   memcached,
                   pdo_sqlsrv,
                   sqlsrv,
                   imagick
               }
           }
       }
   };
   </code></pre>
3. Run `magento-scripts`

   ```bash
   npm start

   # or with yarn

   yarn start
   ```

### Demo

Demo setup available [here](https://github.com/scandipwa/create-magento-app/tree/master/sample-packages/magento-2.4.3-p1-ioncube)
