toancong / deeplink
Deeplink package
0.0.1
2018-12-24 03:02 UTC
Requires
- php: >=7.1
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-03-21 22:01:45 UTC
README
composer require toancong/deeplink
Example
#.env file
DEEPLINKING_PROVIDER=branch.io
DEEPLINKING_SECRET=key_test_peGildZNO7f9pfIji7bV5nhetE12345
$sourceLink = '/user?'.http_build_query($params);
$data = [
'branch_key' => env('DEEPLINKING_SECRET'),
'sdk' => 'api',
'channel' => 'Marketing',
'feature' => 'Register User',
'data' => [
'$deeplink_path' => $sourceLink,
'$fallback_url' => env('WEB_URL').$sourceLink,
'custom_object' => [
'page' => 'MarketingRegisterUser',
'params' => $params,
]
],
];
$link = \Bean\DeepLink\GetLink::get(env('DEEPLINKING_PROVIDER'), $sourceLink, compact('data'));