PHPackages                             nativephp/mobile-share - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nativephp/mobile-share

ActiveNativephp-plugin[Utility &amp; Helpers](/categories/utility)

nativephp/mobile-share
======================

Native share sheet plugin for NativePHP Mobile

1.0.1(1mo ago)2869↑93.8%2MITKotlinPHP ^8.2

Since Jan 19Pushed 1mo agoCompare

[ Source](https://github.com/NativePHP/mobile-share)[ Packagist](https://packagist.org/packages/nativephp/mobile-share)[ RSS](/packages/nativephp-mobile-share/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Share Plugin for NativePHP Mobile
=================================

[](#share-plugin-for-nativephp-mobile)

Native share sheet for sharing URLs and files in NativePHP Mobile applications.

Overview
--------

[](#overview)

The Share API provides cross-platform native share sheet functionality for sharing URLs, text, and files.

Installation
------------

[](#installation)

```
composer require nativephp/mobile-share
```

Usage
-----

[](#usage)

### Share a URL

[](#share-a-url)

#### PHP (Livewire/Blade)

[](#php-livewireblade)

```
use Native\Mobile\Facades\Share;

// Share a URL with title and text
Share::url('Check this out!', 'Found this great article', 'https://example.com');
```

#### JavaScript (Vue/React/Inertia)

[](#javascript-vuereactinertia)

```
import { Share } from '#nativephp';

// Share a URL
await Share.url('Check this out!', 'Found this great article', 'https://example.com');
```

### Share a File

[](#share-a-file)

#### PHP

[](#php)

```
use Native\Mobile\Facades\Share;

// Share a file
Share::file('My Recording', 'Listen to this!', '/path/to/audio.m4a');

// Share just text (no file)
Share::file('Hello', 'This is my message', '');
```

#### JavaScript

[](#javascript)

```
import { Share } from '#nativephp';

// Share a file
await Share.file('My Recording', 'Listen to this!', '/path/to/audio.m4a');

// Share just text
await Share.file('Hello', 'This is my message');
```

Methods
-------

[](#methods)

### `url(string $title, string $text, string $url)`

[](#urlstring-title-string-text-string-url)

Opens the native share sheet with a URL.

ParameterTypeDescription`title`stringShare dialog title / subject`text`stringText message to include with the URL`url`stringThe URL to share### `file(string $title, string $text, string $filePath)`

[](#filestring-title-string-text-string-filepath)

Opens the native share sheet with a file or text.

ParameterTypeDescription`title`stringShare dialog title / subject`text`stringText message to share`filePath`stringAbsolute path to file (optional)Supported File Types
--------------------

[](#supported-file-types)

The share sheet automatically detects MIME types for common file formats:

**Audio:** m4a, aac, mp3, wav, ogg, flac **Video:** mp4, m4v, mov, avi, mkv, webm **Images:** jpg, jpeg, png, gif, webp **Documents:** pdf, txt

Platform Behavior
-----------------

[](#platform-behavior)

### Android

[](#android)

- Uses `Intent.ACTION_SEND` with `Intent.createChooser`
- Files are shared via `FileProvider` for security
- Temporary copies are made for files in app storage
- Old share temp files are automatically cleaned up

### iOS

[](#ios)

- Uses `UIActivityViewController`
- Supports iPad popover presentation
- Files are shared directly via file URLs

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance88

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Total

2

Last Release

59d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ab43d3432a80f0f41fe7015280f6024ff13fe8c2306cf114a1fbc91a4cd6f35?d=identicon)[simonhamp](/maintainers/simonhamp)

![](https://www.gravatar.com/avatar/16cc4d562d3f6f302901f1c65eb3ce819c0fb24ab2616241c605126102812ca4?d=identicon)[shanerbaner82](/maintainers/shanerbaner82)

---

Top Contributors

[![shanerbaner82](https://avatars.githubusercontent.com/u/5580860?v=4)](https://github.com/shanerbaner82 "shanerbaner82 (7 commits)")[![simonhamp](https://avatars.githubusercontent.com/u/31628?v=4)](https://github.com/simonhamp "simonhamp (3 commits)")

---

Tags

nativephpnativephp-mobilenativephp-plugin

### Embed Badge

![Health badge](/badges/nativephp-mobile-share/health.svg)

```
[![Health](https://phpackages.com/badges/nativephp-mobile-share/health.svg)](https://phpackages.com/packages/nativephp-mobile-share)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
