Native Share

Paul (PARTek)

AuthorPaul (PARTek)Plugin TypeCommunity PluginPrice$29Versionv1.1.0LicenseProprietary
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-share plugin (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 immediately
  • NativeShare::share($title, $text) — opens the native OS share sheet (Android ACTION_SEND / iOS UIActivityViewController)
  • No permissions required on either platform
  • Testing helpers — assertCopied() and assertShared() for NativePHP's fake bridge
  • JavaScript API — copy() and share() 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