pushinbr/pam-native-image

High-performance cached native image loading for PAM Native.

Maintainers

Package info

github.com/push-in/pam-native-image

Type:pam-native-plugin

pkg:composer/pushinbr/pam-native-image

Transparency log

Statistics

Installs: 31

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.4 2026-08-24 16:21 UTC

This package is auto-updated.

Last update: 2026-08-25 20:04:05 UTC


README

PAM Native Image

Fast images, predictable memory, native scrolling.

Load, resize, cache, cancel, and recycle remote or sandboxed images through mature native pipelines—without bundling a feed framework.

Latest version CI PHP Android iOS

Documentation · Quick start · What you can build · PAM ecosystem · Issues

Why PAM Native Image

Load, resize, cache, cancel, and recycle remote or sandboxed images through mature native pipelines—without bundling a feed framework. The public API is strictly typed for PHP 8.5; expensive or frame-sensitive work stays in Rust or the platform SDK instead of crossing the application boundary every frame.

Best for A focused capability you can add to any PAM Native application
Native path Coil 3 · SDWebImage
Application model Composer package + generated native integration
Design rule Independent module; no feed, vertical, or application template bundled

What you can build

  • Poster walls and media catalogs
  • Product grids, avatars, and social timelines
  • Offline-aware, memory-bounded image surfaces

Quick start

Already have a PAM Native project? Add only this capability:

pam composer require pushinbr/pam-native-image
pam doctor --fix

New to PAM? Follow the five-minute PAM Native setup once, then return here. Your application stays a normal Composer project with a committed lockfile.

See it in action

return NativeImage::make('https://cdn.example.com/poster.webp')
    ->contentMode(ImageContentMode::Cover)
    ->cachePolicy(ImageCachePolicy::MemoryAndDisk)
    ->crossfade(120);

The decoder, resizing, cancellation, memory/disk caching, and recycled-view safety stay native through Coil 3.3 on Android and SDWebImage 5.21 on iOS. It is a horizontal primitive and never installs a feed or application template.

Sources must be HTTPS or sandbox-relative. Always provide semantic image descriptions in the surrounding PAM UI surface, test low-memory eviction and offline behavior, and run pam production certify before release.