uttam-official/laravel-deeplink
Composer 安装命令:
composer require uttam-official/laravel-deeplink
包简介
Laravel package for deep link routing, fallback handling, and link generation.
README 文档
README
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
composer require uttam-official/laravel-deeplink
Publish config/views
php artisan vendor:publish --tag=deeplink-config
php artisan vendor:publish --tag=deeplink-views
Basic usage
- Generate a deep link:
$inviteUrl = deeplink_url('invite', ['referral_code' => 'ABC123']);
- Direct invite URL:
https://your-domain.com/invite/ABC123
Helpers
deeplink_url('invite', ['referral_code' => 'ABC123']);
deeplink_web_url('product', ['id' => 99]);
deeplink_invite_url('ABC123');
Routes
/deeplink/{type}/deeplink?type=invite&referral_code=ABC123/invite/{code}/.well-known/apple-app-site-association/.well-known/assetlinks.json
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
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
iOS (Universal Links):
- Enable Associated Domains in Xcode.
- Add
applinks:your-domain.com. - Ensure
/.well-known/apple-app-site-associationis reachable via HTTPS.
Android (App Links):
- Add an
intent-filterinAndroidManifest.xmlfor your domain. - Host
/.well-known/assetlinks.jsonon your domain via HTTPS. - Use your release keystore SHA256 fingerprint in
DEEP_LINK_ANDROID_SHA256.
Android intent filter example
<intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" android:host="your-domain.com" /> </intent-filter>
iOS Associated Domains
applinks:your-domain.com
Fallback strategy
Configure fallback_strategy in config/deeplink.php:
app_store_web(default)app_webweb_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/apple-app-site-association/.well-known/assetlinks.json
.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
From the package root:
composer install
vendor/bin/phpunit
Notes
- App Links / Universal Links require HTTPS and a real domain (not localhost).
- Deferred deep linking requires native support (Android Install Referrer, iOS workaround).
uttam-official/laravel-deeplink 适用场景与选型建议
uttam-official/laravel-deeplink 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「referral」 「deep-link」 「deeplink」 「app-links」 「universal-links」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 uttam-official/laravel-deeplink 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 uttam-official/laravel-deeplink 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 uttam-official/laravel-deeplink 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This client allows you to implement referral programs using the Genius Referrals RESTful API.
BayRewards PHP SDK for Laravel Framework - A comprehensive rewards platform integration for e-commerce stores.
Spam Blocker is a package that allows you to block referral spammers
Laravel package for a referral system
Enterprise invite-by-code, referral, rewards, waitlist & anti-abuse system for Laravel — multi-tenant, concurrency-safe, idempotent, GDPR-ready.
Alfabank REST API integration
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-12