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

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

enzaime/dynamic-link
====================

Enzaime Firebase Dynamic Link

v1.0(5y ago)251.1k—0%MITPHP

Since Dec 28Pushed 3y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### Introduction

[](#introduction)

This package is used to generate [firebase dynamic](https://firebase.google.com/docs/dynamic-links) link for laravel application.

### Integration

[](#integration)

Add the following repository to project's `composer.json`.

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/enzaime/dynamic-link.git"
    },
    ....
],

```

Now, run `composer require enzaime/dynamic-link` command from your project terminal.

### Environment Variable

[](#environment-variable)

Set the following credentials to `.env` file.

```
FIREBASE_URL=    //DefaultValue = https://firebasedynamiclinks.googleapis.com/v1/shortLinks
FIREBASE_DOMAIN=
FIREBASE_API_KEY=
FIREBASE_ANDROID_PACKAGE_NAME=
FIREBASE_IOS_BUNDLE_ID=

```

To find Firebase API key follow the below steps

- STEP 1: Go to [Firebase Console](https://console.firebase.google.com/)
- STEP 2: Select your Project
- STEP 3: Click on Settings icon and select Project Settings
- STEP 4: Select CLOUD MESSAGING tab and `Server Key` is the API Key.

To set your application's Firebase Domain follow the below steps:

- STEP 1: Go to [Firebase Console](https://console.firebase.google.com/)
- STEP 2: Select your Project
- STEP 3: Look at left side menu bar
    - Engage-&gt;Dynamic Link
- STEP 4: Use default link like `your-project.page.link` or set the custom domain.

### Disable Link generation

[](#disable-link-generation)

Set the following environment variable to disable link generation:

```
DISABLE_DYNAMIC_LINK_GENERATION=true

```

### Example

[](#example)

Using Facade

```
EnzDynamicLink::generate($linkThatYouWantToShare);

```

Using `DynamicLink` Class

```
$dLink = new \Enzaime\DynamicLink\DynamicLink();
$dLink->generate($linkThatYouWantToShare);

```

### Assertion

[](#assertion)

The following assertion methods can be used for the test cases.

```
EnzDynamicLink::fake();
$link = 'https://enzaime.com';

EnzDynamicLink::generate($link);

EnzDynamicLink::assertGenerateMethodCalled();

EnzDynamicLink::assertGenerated($link);

EnzDynamicLink::assertNotGenerated("$link?test=not-generated");

```

### Running Test

[](#running-test)

```
composer update
composer test

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

1968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/214142386a63f059d93a41fc64913b97c3d8dca1fca5a8b91d79fc3eca47997f?d=identicon)[mrabbani](/maintainers/mrabbani)

---

Top Contributors

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

---

Tags

deep-linkingfirebase-dynamic-linkslaravellaravel-dynamic-link

### Embed Badge

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

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

PHPackages © 2026

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