Search by

blutrixx / nativephp-share-file

joelnjosh

NativePHP Mobile plugin: Android's share list for a file or a link (Share.File, Share.Url), the calls NativePHP's Share facade makes that v4's core no longer answers.

Package info

github.com/joelnjoshkibona/nativephp-share-file

Language:Kotlin

Type:nativephp-plugin

pkg:composer/blutrixx/nativephp-share-file

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-24 02:06 UTC

This package is auto-updated.

Last update: 2026-11-24 03:24:58 UTC


README

A NativePHP Mobile 4 plugin for Android's share list. NativePHP's Share facade still makes the bridge calls Share.File and Share.Url, but v4's core no longer answers them; this plugin does.

Composer package: blutrixx/nativephp-share-file ยท Repo: joelnjoshkibona/nativephp-share-file

Installation

composer require blutrixx/nativephp-share-file

Then list Blutrixx\ShareFile\ShareFileServiceProvider in your app's NativeServiceProvider::plugins().

Use

From PHP, NativePHP's own facade (Native\Mobile\Facades\Share), or from the web view with the bridge (POST /_native/api/call):

Function Params Answer
Share.File filePath, title, message { shared: true } or { error: "failed" }
Share.Url url, title, text { shared: true } or { error: "failed" }

The file is copied into the app's cache folder (the one the app's FileProvider serves) and shared from there as a read-only link, so the other app never gets the app's own files. The MIME type comes from the file's extension.