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

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
Live Props for Real-Time Updates in Inertia.js v3.11 image

Live Props for Real-Time Updates in Inertia.js v3.11

Read article
Cooldown Dependency Policy now in Composer 2.11 image

Cooldown Dependency Policy now in Composer 2.11

Read article
Email Sending and Testing for Laravel in One Account image

Email Sending and Testing for Laravel in One Account

Read article
Decide with Jev: Tie Every AI Check to the Exact Draft image

Decide with Jev: Tie Every AI Check to the Exact Draft

Read article
PIE 1.5 Changes PHP Extension Installs in CI image

PIE 1.5 Changes PHP Extension Installs in CI

Read article
Delete Expired Sessions in Laravel With a Scheduled Command image

Delete Expired Sessions in Laravel With a Scheduled Command

Read article