Native Share
Paul (PARTek)
NativePHP^3.0 || ^4.0iOS15.0+Android21+
Clipboard copy and plain-text OS share sheet for NativePHP Mobile — no permissions required on either platform.
Complements the free
nativephp/mobile-shareplugin (which handles URLs and files). This plugin is focused on plain-text sharing and clipboard writing.
Features
NativeShare::copy($text)— writes plain text to the system clipboard immediatelyNativeShare::share($title, $text)— opens the native OS share sheet (AndroidACTION_SEND/ iOSUIActivityViewController)- No permissions required on either platform
- Testing helpers —
assertCopied()andassertShared()for NativePHP's fake bridge - JavaScript API —
copy()andshare()functions with Vite alias - Works with Livewire, Blade, and Inertia (Vue/React)
- Android 13+ shows system "Copied" confirmation automatically on clipboard write
Installation
composer config repositories.nativephp-plugins composer https://plugins.nativephp.com
composer config http-basic.plugins.nativephp.com your@email.com your-license-key
php artisan vendor:publish --tag=nativephp-plugins-provider
composer require partek/native-share
php artisan native:plugin:register partek/native-share