Download the PHP package rajen/nativephp-url-launcher without Composer
On this page you can find all versions of the php package rajen/nativephp-url-launcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nativephp-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
Requirements
- PHP 8.2+
- Laravel 11+
- NativePHP Mobile ^3.0
Installation
Publish the configuration file:
Basic Usage
The plugin exposes a Laravel Facade, making it extremely easy to use:
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)
Add the following <queries> to your manifest if you are targeting Android 11+ to canLaunch other apps:
iOS Setup (Info.plist)
For iOS, you need to whitelist URL schemes your app wants to open using LSApplicationQueriesSchemes.
Add this to your Info.plist:
Listening for Returns / Deep Links
You can listen to URL Launcher events using standard Laravel Event listeners:
Rajen\UrlLauncher\Events\UrlLaunchedRajen\UrlLauncher\Events\UrlLaunchFailedRajen\UrlLauncher\Events\DeepLinkReceivedRajen\UrlLauncher\Events\UrlLaunchCompletedIlluminate\Support\Facades\Event
Example:
License
MIT
Support
For questions, feature requests, or issues, please contact [email protected].