mxl / firebase-dynamic-link
Manually construct a Dynamic Link URL
Installs: 4 649
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-10-23 20:49:42 UTC
README
Firebase Dynamic Link URL builder for PHP.
Builds Dynamic Links as described here.
For creating Dynamic Links via Firebase API use kreait/firebase-php.
Installation
$ composer require mxl/firebase-dynamic-link
Usage
use MichaelLedin\FirebaseDynamicLink\Android; use MichaelLedin\FirebaseDynamicLink\DynamicLink; use MichaelLedin\FirebaseDynamicLink\GooglePlayAnalytics; use MichaelLedin\FirebaseDynamicLink\IOS; use MichaelLedin\FirebaseDynamicLink\ITunesConnectAnalytics; use MichaelLedin\FirebaseDynamicLink\SocialMetaTag; $dynamicLink = DynamicLink::for('your_subdomain.page.link', 'https://your_domain.com/path/to/page') ->withAndroid( Android::new() ->withPackageName('com.your_domain.app') ->withMinimumVersionCode(123) ->withFallbackLink('https://your_domain.com/fallback/android') ) ->withIOS( IOS::new() ->withBundleID('com.your_domain.app') ->withMinimumVersionNumber('1.2.3') ->withFallbackLink('https://your_domain.com/fallback/ios') ->withAppStoreID('app.store.id') ->withUrlScheme('customUrlScheme') ->withIPadBundleID('com.your_domain.iPadApp') ->withIPadFallbackLink('https://your_domain.com/fallback/ipad') ) ->withGooglePlayAnalytics( GooglePlayAnalytics::new() ->withGclid('gclid') ->withUtmCampaign('utm_campaign') ->withUtmContent('utm_content') ->withUtmMedium('utm_medium') ->withUtmSource('utm_source') ->withUtmTerm('utm_term') ) ->withITunesConnectAnalytics( ITunesConnectAnalytics::new() ->withAffiliateToken('affiliate_token') ->withCampaignToken('campaign_token') ->withMediaType('8') ->withProviderToken('provider_token') ) ->withOtherFallbackLink('https://your_domain.com/fallback/other') ->withSocialMetaTag( SocialMetaTag::new() ->withTitle('title') ->withImage('https://your_domain.com/img.jpeg') ->withDescription('description') ) ->withoutAppPreviewPage() ->build();
Maintainers
Other useful PHP libraries from the author
- mxl/laravel-queue-rate-limit - simple Laravel queue rate limiting;
- mxl/laravel-job - dispatch a job from command line and more;
- mxl/laravel-api-key - API Key Authorization for Laravel with replay attack prevention
License
See the LICENSE file for details.