Search by

firstlightui / nativephp

wojt-janowski

Native controls for NativePHP, shaped for each platform.

Package info

github.com/firstlightui/nativephp

Homepage

Type:nativephp-ui-plugin

pkg:composer/firstlightui/nativephp

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-10-19 21:44 UTC

README

Native controls for NativePHP, shaped for each platform. Firstlight exposes a shared EDGE API backed by genuine SwiftUI and Jetpack Compose controls.

Documentation · Source · Email

Installation

composer require firstlightui/nativephp
php artisan native:plugin:register
php artisan native:install --force

Pre-alpha NativePHP requirement

Use FirstlightUI\NativeComponent for screens on NativePHP Mobile ^4.6 and Mobile UI ^0.8, with official, unpatched runtime binaries. It stamps each complete nonstreaming response with a process-wide increasing revision so an otherwise identical response can reach the native renderers. Blade render paths are automatic; hand-built Element roots must return $this->response($element). Streaming is disabled and cannot be opted into.

The upstream identical-frame bug #365 remains, but Firstlight no longer waits for it. Firstlight remains pre-alpha, pending physical-device, soak/performance, and wider application qualification; this is not a production-readiness claim. See the response contract and limitations.

Example

<firstlight:segmented
    :options="['mine' => 'Mine', 'all' => 'All']"
    native:model="queue"
    label="Queue"
/>

Read the documentation index or the governing Firstlight constitution.

Licence

MIT