PHPackages                             mxl/firebase-dynamic-link - 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. mxl/firebase-dynamic-link

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

mxl/firebase-dynamic-link
=========================

Manually construct a Dynamic Link URL

v1.0.1(5y ago)47.5k↓14.3%[1 issues](https://github.com/mxl/firebase-dynamic-link-php/issues)MITPHPPHP &gt;=7.1CI failing

Since Jul 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mxl/firebase-dynamic-link-php)[ Packagist](https://packagist.org/packages/mxl/firebase-dynamic-link)[ Docs](https://github.com/mxl/firebase-dynamic-link)[ RSS](/packages/mxl-firebase-dynamic-link/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

firebase-dynamic-link
=====================

[](#firebase-dynamic-link)

[![Current version](https://camo.githubusercontent.com/6f5ff5cbbcd2424dd5ebeb8c045c10169c84ab419b1f67cf05088de613554257/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d786c2f66697265626173652d64796e616d69632d6c696e6b2e7376673f6c6f676f3d636f6d706f736572)](https://packagist.org/packages/mxl/firebase-dynamic-link)[![Monthly Downloads](https://camo.githubusercontent.com/b7d565339b4f32580e796c73045866b77d9038067a479bc390f47a58c6eec0c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d786c2f66697265626173652d64796e616d69632d6c696e6b2e737667)](https://packagist.org/packages/mxl/firebase-dynamic-link/stats)[![Total Downloads](https://camo.githubusercontent.com/d02c61a3070467566eba87cf2d2b2c33d3fdaec85acf22800743fd9a3d51518f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d786c2f66697265626173652d64796e616d69632d6c696e6b2e737667)](https://packagist.org/packages/mxl/firebase-dynamic-link/stats)[![Build Status](https://camo.githubusercontent.com/8a32d75882f5d0987a3fcd9b1bb9e8aaace805d97d862b58456dcc7c3c7503b1/68747470733a2f2f7472617669732d63692e6f72672f6d786c2f66697265626173652d64796e616d69632d6c696e6b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mxl/firebase-dynamic-link-php)

Firebase Dynamic Link URL builder for PHP.

Builds Dynamic Links as described [here](https://firebase.google.com/docs/dynamic-links/create-manually).

For creating Dynamic Links via Firebase API use [kreait/firebase-php](https://github.com/kreait/firebase-php).

Installation
------------

[](#installation)

```
$ composer require mxl/firebase-dynamic-link
```

Usage
-----

[](#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
-----------

[](#maintainers)

- [@mxl](https://github.com/mxl)

Other useful PHP libraries from the author
------------------------------------------

[](#other-useful-php-libraries-from-the-author)

- [mxl/laravel-queue-rate-limit](https://github.com/mxl/laravel-queue-rate-limit) - simple Laravel queue rate limiting;
- [mxl/laravel-job](https://github.com/mxl/laravel-job) - dispatch a job from command line and more;
- [mxl/laravel-api-key](https://github.com/mxl/laravel-api-key) - API Key Authorization for Laravel with replay attack prevention

License
-------

[](#license)

See the [LICENSE](https://github.com/mxl/firebase-dynamic-link-php/blob/master/LICENSE) file for details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

2

Last Release

2126d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/390a1532618e5aa4206e92972c78fcc83395fce410e935c8ed6db32d26160578?d=identicon)[mxl](/maintainers/mxl)

---

Top Contributors

[![mxl](https://avatars.githubusercontent.com/u/1078685?v=4)](https://github.com/mxl "mxl (4 commits)")

---

Tags

dynamic-linksfirebasephpurl-builderlinkfirebasemanualdynamicconstructing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mxl-firebase-dynamic-link/health.svg)

```
[![Health](https://phpackages.com/badges/mxl-firebase-dynamic-link/health.svg)](https://phpackages.com/packages/mxl-firebase-dynamic-link)
```

###  Alternatives

[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[misd/linkify

Converts URLs and email addresses in text into HTML links

1122.9M10](/packages/misd-linkify)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[iamcal/lib_autolink

Adds anchors to urls in a text

631.3M3](/packages/iamcal-lib-autolink)[shivella/laravel-bitly

Laravel package for generating bitly url

75789.0k1](/packages/shivella-laravel-bitly)[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

254.1M7](/packages/voku-urlify)

PHPackages © 2026

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