For the complete documentation index, see llms.txt. This page is also available as Markdown.

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)

  • ionCube

  • Imagick (since version 1.0.6)

With newer versions of the package, this list might be updated!

Installation

  1. Install package.

    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

    // cma.js
    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: { // <- set extensions here
                    ioncube,
                    memcached,
                    pdo_sqlsrv,
                    sqlsrv,
                    imagick
                }
            }
        }
    };
  3. Run magento-scripts

    npm start
    
    # or with yarn
    
    yarn start

Demo

Demo setup available here

Last updated