Skip to content
push-inPublic

About

The persistent PHP application platform: Rust + Tokio runtime, Laravel, async I/O, WebSockets, native mobile and desktop.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

1 watching

Forks

Latest commit

 

History

420 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PAM Runtime at the core, powering PAM Desktop and PAM Native, Laravel, and Windows, macOS, Linux, Android and iOS

pam

The native runtime for PHP.

Servers, desktop and mobile from one PHP codebase.
No Electron. No Node. No browser in the middle.

Latest release PAM Desktop on Packagist PHP 8.5 CI License

Quick start · Docs · Benchmarks · Ecosystem · Community

See it launch

The same app launching side by side: PAM Desktop is ready in 138 ms, Electron in 1,563 ms
Cold start of the same app on the same machine, in real time.

Why PAM

Same POS app, same machine PAM Desktop Electron
App launch 138 ms 1,563 ms 11× faster
Screen change 41 ms 322 ms 8× faster
Idle memory 75 MB 322 MB 4× less
Idle CPU 0.2% 1.9% 10× less
Package 120 MB 468 MB 4× smaller

Pixel-identical to Chromium

We rewrote a 37-screen Electron point-of-sale app in PAM Desktop and diffed every screen against the original. Mean difference: below 0.5 out of 255 per pixel, on Linux and macOS.

Server

PAM Runtime serves Laravel and plain PHP from preforked workers with a shared OPcache. Against FrankenPHP and OpenSwoole it won 11 of 12 throughput scenarios.

p99 latency: 14 ms on PAM, 26 to 37 ms before prefork. Memory with 8 workers: 167 MB on PAM, 535 MB with a per-process OPcache.

Reproduce it with the benchmark protocol.

How it works

Architecture: your PHP app runs on PAM Runtime, which powers the HTTP server, PAM Desktop and PAM Native, which render on Linux, macOS, Windows, Android and iOS

Internals: Architecture · Async runtime · Native API · Runtime overview

Quick start

# 1. install PAM (one time)
curl -fsSL https://github.com/push-in/pam/releases/latest/download/install.sh | sh

pam lands in ~/.local/bin (add it to PATH if needed). There is no php on PATH: use pam script.php and pam composer .... Desktop apps on Debian/Ubuntu need GTK 4: sudo apt install libgtk-4-1 gstreamer1.0-plugins-good.

Desktop app · Linux, macOS, Windows
pam init my-app --template desktop
cd my-app && pam desktop dev
Mobile app · Android, iOS
pam init my-app --template native-ui --platform all
cd my-app && pam mobile dev
Laravel
pam init my-app --template laravel
cd my-app && pam dev
HTTP API
pam init my-api --template http
cd my-api && pam dev
<Column class="card">
  <Text class="title">Hello, {{ $name }}</Text>
  <Button on:press="greet">Click</Button>
</Column>

Next: Getting started · CLI reference · Production

How it compares

PAM Electron Tauri NativePHP FrankenPHP
Write it in PHP ✓ — — ✓ ✓
No embedded browser ✓ — — — —
Desktop ✓ ✓ ✓ ✓ —
Mobile ✓ — ✓ ✓ —
HTTP server ✓ — — — ✓

Based on each project's public docs, November 2026.

Ecosystem

47 public PAM Native plugins, listed in the ecosystem catalog:

Area Plugins (pushinbr/pam-native-*)
UI and graphics ui · drawer · toast · webview · canvas · charts · svg · 3d · gpu · lottie · image · maps · i18n
Camera and media camera · scanner · media · video · audio · background-transfer · share-extension
Device and OS bluetooth · nfc · location · sensors · contacts · notifications · health · intents · widgets · live-activities · calls
Data and realtime php · nitro · sync · sync-laravel · realtime · webrtc
Identity and commerce auth · payments · subscriptions
Operations and quality observability · analytics · firebase · feature-flags · devtools · testing · plugin-kit · web (Samsung/LG TVs)

Hosts and frameworks: pam-desktop · pam-native · pam-laravel · pam-http · pam-socket · pam-octane. Full contract in docs/ecosystem.md.

Community

Docs Discussions Contributing
Guides, API and recipes Ask, share, show what you built How to set up, test and send a change

Also: Issues · Support · Security · Governance · Roadmap · Changelog

Star history of push-in/pam

If PAM saves you time, leave a star. It helps more people find it.

Apache License 2.0 · licensing guide · Made in Brazil by Pushin

About

The persistent PHP application platform: Rust + Tokio runtime, Laravel, async I/O, WebSockets, native mobile and desktop.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages