> For the complete documentation index, see [llms.txt](https://docs.create-magento-app.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.create-magento-app.com/scripts-extensions/php-extensions/php-extensions-package.md).

# 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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.create-magento-app.com/scripts-extensions/php-extensions/php-extensions-package.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
