Getting Ready for v2027 (I)

Part 1: Upgrade PHP to 8.4.28+ and Increase memory_limit to 1G

PHPMaker 2027 is on the way! While there is no confirmed release date yet, we're sharing a short series of posts to help you prepare your servers and projects ahead of time so your upgrade goes smoothly when it arrives.

With PHPMaker 2027 upgrading Symfony from 7.4 to 8.2, the server requirements have bumped up. You can prepare your local dev environment and production servers right now before upgrading.

1. Upgrade PHP to 8.4.28+ (or 8.5.13+)

PHPMaker 2027 requires PHP >= 8.4.1 (PHP 8.5 is also fully supported).

Important Security Note: Because of critical security fixes (including CVE-2026-109618, CVE-2026-109619, and the 2026-11-19 security release), make sure you install PHP 8.4.28 or newer (or 8.5.13+ if you're on PHP 8.5) rather than an older 8.4.x build.

2. Increase memory_limit to 1G in php.ini

Symfony 8.2 needs more headroom for dependency injection container compilation, cache warmup, and console tasks. Open your php.ini and update:

memory_limit = 1G

3. Quick php.ini & Node.js Sanity Check

While you're in php.ini, verify these required extensions are enabled:

extension=curl
extension=fileinfo
extension=gd
extension=intl
extension=mbstring
extension=openssl
extension=pdo_mysql   ; or pdo_pgsql, pdo_sqlite, sqlsrv, etc.
extension=sodium
extension=xml

Quick Check

Run these in your terminal to confirm you're ready:

php -v
php -i | grep memory_limit
node -v

(Next up: Part 2: Checking your database version for Doctrine DBAL 4.x compatibility)

Part 2: Check Your Database Version (DBAL 4.x Deprecations)

It is also a good time to check your database server version.

PHPMaker 2027 uses Doctrine DBAL 4.x. While older database versions may still connect today, several of them are now deprecated in DBAL 4.x and should be upgraded when possible.

Supported Database Versions

  • MySQL: >= 8.0 (8.4+ recommended; MySQL 8.0 to 8.3 are deprecated in DBAL 4.6)

  • MariaDB: >= 10.5.2 (10.11+ recommended; MariaDB 10.5 is deprecated in DBAL 4.3, and 10.6 to 10.10 are deprecated in DBAL 4.6)

  • PostgreSQL: >= 12.0

  • Microsoft SQL Server (MSSQL): >= 2017

  • Oracle: >= 18c (12.2.0.2)

  • SQLite: All versions

Good to know (Upcoming DBAL 5.0 minimums): Doctrine's official docs also note that DBAL 5.0 will raise the baseline minimums to MySQL 8.4, MariaDB 10.11, PostgreSQL 15, and Oracle 19c (while keeping SQL Server 2017 and SQLite 3.37.2+ unchanged). Upgrading to these versions now will keep you future-proof.

What You Should Do Now

  • MySQL users: If you are still on MySQL 8.0 to 8.3, plan an upgrade to MySQL 8.4 LTS or newer.

  • MariaDB users: If you are still on MariaDB 10.5 to 10.10, plan an upgrade to MariaDB 10.11 LTS or newer.

  • MSSQL users: Make sure to upgrade the Microsoft PHP drivers for SQL Server to >= 5.13 (PHP 8.4 support starts in v5.13; v5.12 only supports up to PHP 8.3) along with the Microsoft OLE DB / ODBC Driver for SQL Server.

  • Verify your drivers: Make sure the matching PHP PDO extension (such as pdo_mysql, pdo_pgsql, or pdo_sqlsrv) is enabled in php.ini for your PHP 8.4+ environment.

(Next up: Part 3: Updating Node.js and Composer)

Part 3: Update Node.js (>= v24.0) and Composer (>= v2.11)

Make sure your Node.js and Composer installations on your development machine are up to date.

PHPMaker 2027 uses Node.js both for its code generation engine and for building modern frontend assets and uses Composer with PHP 8.4+ for Symfony 8.2, Doctrine DBAL/ORM and other packages.

1. Update Node.js to >= v24.0

PHPMaker 2027 requires Node.js >= v24.0 (v24 Maintenance LTS or v26 Active LTS, which includes npm). Older versions such as Node.js 20 or 22 are no longer sufficient for the v2027 template and asset build pipeline.

  • Official installer: Download and install the latest LTS release from nodejs.org.
  • Using nvm-windows (run terminal as Administrator unless Windows Developer Mode is enabled):
    nvm install lts   # installs v26 Active LTS (or `nvm install 24` for v24 Maintenance LTS)
    nvm use lts       # or `nvm use 24`
    
  • Using fnm (PowerShell):
    fnm install --lts       # installs v26 Active LTS (or `fnm install 24` for v24 Maintenance LTS)
    fnm use lts-latest      # or `fnm use 24`
    fnm default lts-latest  # optional: set as default for new sessions
    

2. Update Composer to >= v2.11

PHPMaker 2027 requires Composer v2.11 or newer running on PHP >= 8.4.1 (PHP 8.4.28+ or 8.5.13+ recommended from Part 1).

  1. Update Composer from the command line:
    composer self-update
    
    (If you are still on Composer 1.x, run composer self-update --2 or reinstall using Composer-Setup.exe from getcomposer.org/download.)
  2. Verify Composer uses your PHP 8.4+ binary: Since Composer runs via php.exe, if you recently installed PHP 8.4+ (for example in WAMP or XAMPP), run php -v (or where php in Command Prompt) to make sure your Windows PATH (or Composer-Setup.exe) points to the new php.exe, not an older PHP 8.2/8.3 folder.
  3. Check required extensions: Composer 2.11+ requires ext-filter, ext-hash, and ext-json (plus curl, openssl, zip, and zlib for downloading and extracting packages). These are built into standard PHP 8.4+ Windows builds, while Linux users on minimal PHP packages should make sure they are installed.

Quick Check

Open a new terminal and run:

node -v
npm -v
composer -V

Confirm that node -v shows v24.0.0 or higher, composer -V shows 2.11 or higher, and no PHP version or extension warnings appear.

(Next up: Part 4: Enabling HTTPS and HTTP/2 on Apache)

Part 4: Enable HTTPS and HTTP/2 on Apache

On HTTP/1.1, browsers can only open a limited number of connections per host, so extra requests have to wait in a queue. With HTTP/2, the browser multiplexes all asset and data requests (JavaScript, CSS, fonts, images, and API calls) in parallel over a single connection, making page loads noticeably faster.

This already speeds up your existing v2026 (or older) projects today, and it will be even more helpful in v2027.

Prerequisite: HTTPS is Required

Modern browsers only support HTTP/2 over HTTPS (h2). If you test locally on WAMP/XAMPP over plain http://, HTTP/2 will not activate.

Step 1: Enable HTTPS on Local Apache (WAMP)

  1. Generate a self-signed certificate for localhost (or use mkcert to avoid browser warnings):
    cd D:\wamp64\bin\apache\apache2.4.x\bin
    mkdir ..\conf\key
    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -config ..\conf\openssl.cnf -keyout ..\conf\key\server.key -out ..\conf\key\server.crt -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
    
  2. In WAMP tray menu -> Apache -> Apache modules, enable:
    • ssl_module (mod_ssl)
    • socache_shmcb_module (mod_socache_shmcb)
  3. In httpd.conf, uncomment:
    Include conf/extra/httpd-ssl.conf
    
  4. Configure <VirtualHost _default_:443> in conf/extra/httpd-ssl.conf to point SSLCertificateFile and SSLCertificateKeyFile to your server.crt and server.key.

Step 2: Enable HTTP/2

  1. In WAMP tray menu -> Apache -> Apache modules, enable http2_module (or uncomment LoadModule http2_module modules/mod_http2.so in httpd.conf).
  2. Add the Protocols directive at the bottom of httpd.conf (and inside any custom <VirtualHost *:443> blocks):
    <IfModule http2_module>
        Protocols h2 h2c http/1.1
    </IfModule>
    
  3. Restart Apache / All Services.

Step 3: Windows Event MPM Stack Size Tip (PHP 8.3+)

If your Apache uses mpm_event or mpm_worker on Windows and you ever see Maximum call stack size reached, add this to php.ini:

zend.max_allowed_stack_size = -1
zend.reserved_stack_size = -1

Quick Check

Open your site via https://localhost/..., open DevTools (F12) -> Network tab, right-click the table header to show the Protocol column, and verify requests show h2.

(Next up: Part 5: Enabling Brotli (br) compression to shrink your JS/CSS transfers by 15% to 25%)

Part 5: Enable Brotli (br) Compression on Apache

Now that HTTP/2 is enabled, the next big web server performance win is Brotli compression (Content-Encoding: br).

Brotli achieves 15% to 25% better compression than Gzip for text, CSS, JavaScript, JSON, and SVG assets. Just like HTTP/2, enabling Brotli shrinks transfer sizes and speeds up your existing v2026 (or older) projects today, and it will be even more helpful in v2027.

Step 1: Enable Required Apache Modules

For Brotli compression, Apache requires mod_brotli and mod_filter. Enabling mod_deflate is optional, but recommended as a Gzip fallback for older clients and proxies.

Modules Breakdown

  • mod_brotli (brotli_module — Required): Delivers Brotli compression (Content-Encoding: br). Note: Requires Apache 2.4.26 or later (standard in modern WAMP/XAMPP).
  • mod_filter (filter_module — Required): Crucial prerequisite! Enables smart output filtering by MIME type (AddOutputFilterByType) so Apache only compresses text, scripts, stylesheets, and JSON, without wasting CPU on binary files.
  • mod_setenvif (setenvif_module — Required): Allows excluding already compressed formats (images, videos, fonts, archives) via SetEnvIfNoCase.
  • mod_deflate (deflate_module — Optional, Recommended): Provides standard Gzip fallback (Content-Encoding: gzip) when a browser or proxy does not send br in Accept-Encoding. If omitted, clients without Brotli support will receive uncompressed content.

How to Enable the Modules

Choose either the WampServer GUI or direct httpd.conf configuration:

Option A: Via WampServer GUI

  1. Left-click the WampServer icon in your Windows taskbar notification area.
  2. Navigate to Apache -> Apache modules.
  3. Ensure the following modules are checked (Apache will reload automatically):
    • brotli_module (Required)
    • filter_module (Required)
    • setenvif_module (Required)
    • deflate_module (Optional, recommended fallback)

Option B: Via httpd.conf (Direct Config for Standalone Apache / XAMPP / WAMP)

  1. Open httpd.conf in your editor (e.g. D:\wamp64\bin\apache\apache2.4.x\conf\httpd.conf or D:\xampp\apache\conf\httpd.conf).
  2. Search for LoadModule and ensure the following lines are uncommented (remove the leading # if present):
    LoadModule brotli_module modules/mod_brotli.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule setenvif_module modules/mod_setenvif.so
    
  3. Save the file and restart Apache.

Verify Loaded Modules

You can verify that Apache has loaded all compression-related modules by opening a Command Prompt (e.g. in D:\wamp64\bin\apache\apache2.4.x\bin) and running:

httpd -M | findstr /i "brotli deflate filter"

(On Linux: apache2ctl -M | grep -E "brotli|deflate|filter")

Expected output:

 brotli_module (shared)
 deflate_module (shared)
 filter_module (shared)

Step 2: Configure Compression Rules

PHPMaker 2026 does not include Brotli rules in its generated .htaccess by default. You have two options:

Option 1: Global Apache Config (Recommended)
Place the rules below directly inside your httpd.conf or <VirtualHost> block. That way, all your local projects benefit automatically without modifying individual .htaccess files.

Option 2: Project .htaccess
Or add this block to the bottom of your v2026 project's .htaccess file:

# Brotli Compression
<IfModule mod_filter.c>
    <IfModule mod_brotli.c>
        AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css \
            text/javascript application/javascript application/x-javascript \
            application/json application/xml application/rss+xml \
            application/vnd.ms-fontobject application/wasm \
            image/svg+xml font/ttf font/otf font/eot

        # Don't double-compress already compressed formats
        <IfModule mod_setenvif.c>
            SetEnvIfNoCase Request_URI \.(?:gz|zip|br|zst|woff2|png|jpe?g|gif|webp)$ no-brotli
        </IfModule>
    </IfModule>
</IfModule>

# Gzip fallback for clients/proxies that don't support Brotli
<IfModule mod_filter.c>
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css \
            text/javascript application/javascript application/x-javascript \
            application/json application/xml application/rss+xml \
            application/vnd.ms-fontobject application/wasm \
            image/svg+xml font/ttf font/otf font/eot

        <IfModule mod_setenvif.c>
            SetEnvIfNoCase Request_URI \.(?:gz|zip|br|zst|woff2|png|jpe?g|gif|webp)$ no-gzip dont-vary
        </IfModule>
    </IfModule>
</IfModule>

Restart Apache after making any configuration changes.

v2027 will include above Brotli and Deflate configuration rules in the generated .htaccess out-of-the-box!

Then make sure your VirtualHost or <Directory> block has AllowOverride All enabled so .htaccess can take effect, e.g.

<Directory "D:/wamp64/www/your-project">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Step 3: Verify in Browser DevTools

  1. Open DevTools (F12) -> Network tab.
  2. Check Disable cache and hard-refresh (Ctrl + F5).
  3. Click any .js or .css file and check the Response Headers:
    Content-Encoding: br
    
  4. If you add the Size column in DevTools, you will notice the transferred size over the network is significantly smaller than the actual resource size.

Pre-Compressed Assets (v2027)

In v2027 production builds, you will be able to enable Tools -> Advanced Settings -> Pre-compress assets (brotli, zstandard, or gzip). Symfony will generate pre-compressed .br / .zst / .gz files at compile time so Apache serves them directly from disk with zero runtime CPU overhead.

For pre-compressed serving in Apache, also make sure rewrite_module, headers_module, and mime_module are enabled.

(Next up: Getting Ready for v2027 (II))