Skip to content

[Feature Request] ARM64/Graviton support for extra PHP extensions #622

@majkel-hyggio

Description

@majkel-hyggio

Summary

Currently, bref/extra-php-extensions only provides x86_64 Lambda layers. With AWS Graviton (ARM64) processors offering better price/performance ratio for Lambda functions, it would be valuable to have ARM64 support for extra extensions.

Use Case

We're migrating our PHP Lambda applications to ARM64 architecture to benefit from:

  • ~20% better price/performance compared to x86_64
  • Lower cold start times
  • Reduced costs

However, we're blocked on applications that require extensions like GD, Imagick, or others from this package. These applications must remain on x86_64 because the extra extensions don't have ARM64 layers.

Affected Extensions (our use case)

  • gd - Required for image manipulation (crop, resize, encode) and PDF generation via mPDF
  • excimer - Performance profiling

Other users likely need ARM64 support for additional extensions as well.

Current Workaround

We're forced to keep applications requiring these extensions on x86_64, missing out on Graviton benefits.

Proposal

Add ARM64 builds alongside x86_64 for extra PHP extensions, similar to how the base Bref runtimes already support both architectures via bref/arm-php-* images.

Environment

  • Bref version: 2.x
  • PHP version: 8.4
  • AWS Lambda architecture: arm64 (desired)

Related

  • Bref base runtimes already support ARM64: bref/arm-php-84-fpm, etc.
  • README currently states: "ARM64 is not supported yet with Bref v2"

Would love to see this feature or contribute if there's guidance on the approach. Is there a technical blocker or is this mainly a matter of build infrastructure updates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions