Share Target
Neo Nos
NativePHP^3.0 || ^4.0iOS18.2+Android26+
Enables your NativePHP app to receive incoming shares — links, text, images, videos, and PDFs — directly from the Android share sheet and iOS Shortcuts, with zero native code required.
Features
- Android Share Sheet integration — app appears as a share destination for links, text, images, videos, PDFs
- PHP object reception — shared items arrive as typed PHP objects with automatic content detection
- Persistent storage — undelivered shares are queued until the app opens
- Real-time events — instant notifications when shares arrive during active sessions
- iOS support (Beta) — companion Shortcut enables iOS sharing with the same PHP API
- Silent mode — capture shares without interrupting the user's current view
- Testing support — built-in
ShareTarget::fake()with fluent builders and assertions - Native confirmation — "Saved ✓" card appears in the originating app (Android)
- Diagnostic tool —
php artisan share-target:doctorverifies setup and flags issues - Full JS API — works with Inertia, Vue, React, and vanilla JavaScript
Installation
composer config repositories.nativephp-plugins composer https://plugins.nativephp.com
composer config http-basic.plugins.nativephp.com your@email.com your-license-key
composer require all1web/nativephp-share-target
php artisan native:plugin:register all1web/nativephp-share-target
php artisan native:install android --force
Diagnostics
php artisan share-target:doctor
Notes
- Pairs well with
nativephp/mobile-sharefor outbound sharing - No runtime permissions needed on either platform