News

NativePHP v3.1: The Biggest Performance Leap Yet

Published
NativePHP v3.1: The Biggest Performance Leap Yet image

NativePHP v3.1 just dropped. And it’s not a minor bump.

This is the single biggest performance update we’ve ever shipped. 10x faster response times. Background job processing. Android 8+ support. Full ICU on iOS. And a whole lot more.

Persistent Runtime

Every request used to go through a full Laravel boot cycle — 200-300ms each time.

That’s gone.

V3.1 boots Laravel once and reuses the kernel across all subsequent requests. Response times drop to 5-30ms. Your app finally feels native.

Livewire state, router state, facade instances — all handled automatically. Falls back to classic mode gracefully if needed.

Background Queue Workers

V3.1 ships with ZTS (Thread-Safe) PHP and a dedicated background queue worker on its own thread.

QUEUE_CONNECTION=database

That’s it. Dispatch jobs like normal. The worker starts automatically. Long-running tasks never block your UI. Jobs survive app restarts. Both iOS and Android supported.

Android 8+ Support

Minimum SDK drops from Android 13 (API 33) to Android 8 (API 26). Massively more devices can now run your app. SDK versions are fully configurable:

'Android' => [
'compile_sdk' => env('NATIVEPHP_ANDROID_COMPILE_SDK', 36),
'min_sdk' => env('NATIVEPHP_ANDROID_MIN_SDK', 33),
'target_sdk' => env('NATIVEPHP_ANDROID_TARGET_SDK', 36),
],

ICU/Intl on iOS

iOS builds now include full ICU support. The PHP intl extension works on both platforms.

Filament works on iOS and Android out of the box. No workarounds. No compromises. Optional via --with-icu / --without-icu flags.

More Goodies

PHP 8.3-8.5 — auto-detected from composer.json, binaries cached locally

  • Plugin multi-register — discover and register all plugins in one pass
  • Platform shorthand — ios/i and android/a everywhere
  • Removed unused deps — react/http and react/socket gone

Upgrading

Drop-in upgrade. No breaking changes.

composer require nativephp/mobile:~3.1.0
php artisan native:install –force

—

Read the full announcement and Update today. ⚡

NativePHP photo

Build native apps for desktop and mobile using the tools you love!

Filed in

Sponsored

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
PHP News: A New Site for PHP Releases, RFCs, and Packages image

PHP News: A New Site for PHP Releases, RFCs, and Packages

Read article
Pause Polling in Background Tabs in Inertia.js v3.9 image

Pause Polling in Background Tabs in Inertia.js v3.9

Read article
Look What You Helped Me Build image

Look What You Helped Me Build

Read article
BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP image

BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP

Read article
Running Laravel's Scheduler on Multiple Servers image

Running Laravel's Scheduler on Multiple Servers

Read article
Laravel Fake Assertions Now Accept Property Arrays image

Laravel Fake Assertions Now Accept Property Arrays

Read article