PHPackages                             rajen/nativephp-url-launcher - 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. rajen/nativephp-url-launcher

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

rajen/nativephp-url-launcher
============================

Native external URL and deep link launcher for NativePHP applications.

v1.0.2(4mo ago)232MITPHPPHP ^8.2CI passing

Since Feb 22Pushed 4mo agoCompare

[ Source](https://github.com/rajentrivedi/url-launcher)[ Packagist](https://packagist.org/packages/rajen/nativephp-url-launcher)[ Docs](https://github.com/rajen/nativephp-url-launcher)[ RSS](/packages/rajen-nativephp-url-launcher/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

NativePHP Mobile URL Launcher
=============================

[](#nativephp-mobile-url-launcher)

A NativePHP Mobile plugin for communicating with device functionalities like the browser, phone dialer, SMS, map apps, and deep linking schemes.

Similar to Flutter's `url_launcher`, but tailored for NativePHP mobile.

Browser functionalities are already provided by NativePHP, so this plugin is only for other functionalities, for browser functionalities use [NativePHP Mobile Borwser](https://github.com/NativePHP/mobile-browser)

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11+
- NativePHP Mobile ^3.0

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

[](#installation)

```
composer require rajen/nativephp-url-launcher
```

Publish the configuration file:

```
php artisan vendor:publish --tag="nativephp-url-launcher-config"
```

Basic Usage
-----------

[](#basic-usage)

The plugin exposes a Laravel Facade, making it extremely easy to use:

```
use Rajen\UrlLauncher\Facades\UrlLauncher;

// Send an email
UrlLauncher::openEmail('hello@nativephp.com', 'Support Request', 'Hello from my app!');

// Dial a phone number
UrlLauncher::openPhone('+1234567890');

// Send an SMS
UrlLauncher::openSms('+1234567890', 'Please reply to this message.');

// Open WhatsApp
UrlLauncher::openWhatsApp('+1234567890', 'Hello!');

// Open Maps
UrlLauncher::openMap('London, UK');

// Open custom app deep link
UrlLauncher::openCustomScheme('myapp://product/123');

// Check if a URL can be launched
if (UrlLauncher::canLaunch('twitter://user?screen_name=NativePHP')) {
    UrlLauncher::launch('twitter://user?screen_name=NativePHP');
}
```

Deep Linking Configuration
--------------------------

[](#deep-linking-configuration)

If your app needs to trigger external deep links (e.g. `twitter://`, `whatsapp://`) or needs to handle returns back into your app via Custom Schemes (`myapp://`), you must configure the native project manifests.

### Android Setup (`AndroidManifest.xml`)

[](#android-setup-androidmanifestxml)

Add the following `` to your manifest if you are targeting Android 11+ to `canLaunch` other apps:

```

```

### iOS Setup (`Info.plist`)

[](#ios-setup-infoplist)

For iOS, you need to whitelist URL schemes your app wants to open using `LSApplicationQueriesSchemes`.

Add this to your `Info.plist`:

```
LSApplicationQueriesSchemes

    whatsapp
    twitter
    mailto
    tel
    sms

```

Listening for Returns / Deep Links
----------------------------------

[](#listening-for-returns--deep-links)

You can listen to URL Launcher events using standard Laravel Event listeners:

- `Rajen\UrlLauncher\Events\UrlLaunched`
- `Rajen\UrlLauncher\Events\UrlLaunchFailed`
- `Rajen\UrlLauncher\Events\DeepLinkReceived`
- `Rajen\UrlLauncher\Events\UrlLaunchCompleted`
- `Illuminate\Support\Facades\Event`

Example:

```
use Rajen\UrlLauncher\Events\UrlLaunched;
use Rajen\UrlLauncher\Events\UrlLaunchFailed;
use Rajen\UrlLauncher\Events\DeepLinkReceived;
use Rajen\UrlLauncher\Events\UrlLaunchCompleted;
use Illuminate\Support\Facades\Event;

Event::listen(function (DeepLinkReceived $event) {
    // do something
});
```

License
-------

[](#license)

MIT

Support
-------

[](#support)

For questions, feature requests, or issues, please contact .

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance77

Regular maintenance activity

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~3 days

Total

3

Last Release

125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9519df9e8edfdd9469fe1a8bbab465bec2f9fe71bf9f6088f9ee906fc6c07715?d=identicon)[rajentrivedi](/maintainers/rajentrivedi)

---

Top Contributors

[![rajenindianic](https://avatars.githubusercontent.com/u/94968368?v=4)](https://github.com/rajenindianic "rajenindianic (15 commits)")[![rajentrivedi](https://avatars.githubusercontent.com/u/69707769?v=4)](https://github.com/rajentrivedi "rajentrivedi (5 commits)")

---

Tags

urlmobileandroidiosnativephpdeep-link

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/rajen-nativephp-url-launcher/health.svg)

```
[![Health](https://phpackages.com/badges/rajen-nativephp-url-launcher/health.svg)](https://phpackages.com/packages/rajen-nativephp-url-launcher)
```

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[eo/passbook

iOS Passbook for PHP

2681.6M3](/packages/eo-passbook)[marcin-orlowski/laravel-api-response-builder

Helps building nice, normalized and easy to consume Laravel REST API.

848491.1k3](/packages/marcin-orlowski-laravel-api-response-builder)[chiiya/laravel-passes

Laravel library for creating iOS and Android Wallet Passes

37114.8k](/packages/chiiya-laravel-passes)[eo/passbook-bundle

iOS Passbook for Symfony

1285.9k](/packages/eo-passbook-bundle)[leonardoteixeira/pushover

A simple PHP library for the Pushover service

1827.9k3](/packages/leonardoteixeira-pushover)

PHPackages © 2026

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