PHPackages                             uttam-official/laravel-deeplink - 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. uttam-official/laravel-deeplink

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

uttam-official/laravel-deeplink
===============================

Laravel package for deep link routing, fallback handling, and link generation.

v1.0.0(2mo ago)01MITPHPPHP ^8.1

Since Mar 12Pushed 2mo agoCompare

[ Source](https://github.com/uttam-official/laravel-deeplink)[ Packagist](https://packagist.org/packages/uttam-official/laravel-deeplink)[ Docs](https://github.com/uttam-official/laravel-deeplink)[ RSS](/packages/uttam-official-laravel-deeplink/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Uttam Official - Laravel DeepLink
=================================

[](#uttam-official---laravel-deeplink)

A lightweight Laravel package for deep link routing, fallback handling, and link generation. It serves the required `.well-known` files, provides a fallback page, and centralizes deep link URL creation.

Install
-------

[](#install)

```
composer require uttam-official/laravel-deeplink

```

Publish config/views
--------------------

[](#publish-configviews)

```
php artisan vendor:publish --tag=deeplink-config
php artisan vendor:publish --tag=deeplink-views

```

Basic usage
-----------

[](#basic-usage)

- Generate a deep link:

```
$inviteUrl = deeplink_url('invite', ['referral_code' => 'ABC123']);

```

- Direct invite URL:

```
https://your-domain.com/invite/ABC123

```

Helpers
-------

[](#helpers)

```
deeplink_url('invite', ['referral_code' => 'ABC123']);
deeplink_web_url('product', ['id' => 99]);
deeplink_invite_url('ABC123');

```

Routes
------

[](#routes)

- `/deeplink/{type}`
- `/deeplink?type=invite&referral_code=ABC123`
- `/invite/{code}`
- `/.well-known/apple-app-site-association`
- `/.well-known/assetlinks.json`

Configure
---------

[](#configure)

Set these in `.env`:

```
DEEP_LINK_IOS_STORE_URL=
DEEP_LINK_ANDROID_STORE_URL=
DEEP_LINK_APP_SCHEME=ubeku
DEEP_LINK_IOS_TEAM_ID=
DEEP_LINK_IOS_BUNDLE_ID=
DEEP_LINK_ANDROID_PACKAGE=
DEEP_LINK_ANDROID_SHA256=

```

Example values:

```
DEEP_LINK_IOS_STORE_URL=https://apps.apple.com/app/id1234567890
DEEP_LINK_ANDROID_STORE_URL=https://play.google.com/store/apps/details?id=com.example.app
DEEP_LINK_APP_SCHEME=example
DEEP_LINK_IOS_TEAM_ID=ABCD1234EF
DEEP_LINK_IOS_BUNDLE_ID=com.example.app
DEEP_LINK_ANDROID_PACKAGE=com.example.app
DEEP_LINK_ANDROID_SHA256=12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF

```

Config options
--------------

[](#config-options)

The config file is `config/deeplink.php` and allows:

- Route prefix and invite path
- Route middleware and toggles
- Query resolver param name
- Fallback strategy and timeout
- Android store open mode
- Type → web path mappings
- Optional web URL resolver callback

Production setup
----------------

[](#production-setup)

iOS (Universal Links):

- Enable Associated Domains in Xcode.
- Add `applinks:your-domain.com`.
- Ensure `/.well-known/apple-app-site-association` is reachable via HTTPS.

Android (App Links):

- Add an `intent-filter` in `AndroidManifest.xml` for your domain.
- Host `/.well-known/assetlinks.json` on your domain via HTTPS.
- Use your release keystore SHA256 fingerprint in `DEEP_LINK_ANDROID_SHA256`.

### Android intent filter example

[](#android-intent-filter-example)

```

```

### iOS Associated Domains

[](#ios-associated-domains)

```
applinks:your-domain.com

```

Fallback strategy
-----------------

[](#fallback-strategy)

Configure `fallback_strategy` in `config/deeplink.php`:

- `app_store_web` (default)
- `app_web`
- `web_only`

Android store open mode:

- `web` (default)
- `market` (market://details?id=...)
- `intent` (intent://details?id=...#Intent;scheme=market;package=com.android.vending;end)

Well-known endpoints
--------------------

[](#well-known-endpoints)

- `/.well-known/apple-app-site-association`
- `/.well-known/assetlinks.json`

.well-known examples
--------------------

[](#well-known-examples)

Example `/.well-known/apple-app-site-association` response:

```
{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "TEAMID.com.example.app",
        "paths": ["*"]
      }
    ]
  }
}
```

Example `/.well-known/assetlinks.json` response:

```
[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.example.app",
      "sha256_cert_fingerprints": [
        "12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90:AB:CD:EF"
      ]
    }
  }
]
```

Testing
-------

[](#testing)

From the package root:

```
composer install
vendor/bin/phpunit

```

Notes
-----

[](#notes)

- App Links / Universal Links require HTTPS and a real domain (not localhost).
- Deferred deep linking requires native support (Android Install Referrer, iOS workaround).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance88

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9674ca7e8e5d3e021380adf122bd18049b9356119d8b632f4da5dc7d40a54c8?d=identicon)[uttam-official](/maintainers/uttam-official)

---

Top Contributors

[![uttam-khuntia](https://avatars.githubusercontent.com/u/106946962?v=4)](https://github.com/uttam-khuntia "uttam-khuntia (1 commits)")

---

Tags

laraveldeep-linkreferraldeeplinkapp-linksuniversal-links

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/uttam-official-laravel-deeplink/health.svg)

```
[![Health](https://phpackages.com/badges/uttam-official-laravel-deeplink/health.svg)](https://phpackages.com/packages/uttam-official-laravel-deeplink)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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