PHPackages                             foxbyte/smart-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. foxbyte/smart-link

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

foxbyte/smart-link
==================

A PHP package for generating smart links.

1.0.1(2y ago)024GPL-3.0-or-laterPHPPHP ^8.0

Since Nov 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/komangkrisnanda/smart-link)[ Packagist](https://packagist.org/packages/foxbyte/smart-link)[ RSS](/packages/foxbyte-smart-link/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

SmartLink Package
=================

[](#smartlink-package)

The SmartLink package is a PHP library that facilitates the generation of smart links for mobile and desktop applications. It allows you to create dynamic links that can be used to direct users to specific content or actions within your application.

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

[](#installation)

You can install the SmartLink package via Composer. Run the following command in your terminal:

```
composer require komangkrisnanda/smart-link
```

Usage
-----

[](#usage)

You can use the SmartLink package in your PHP code as follows:

```
use SmartLink\SmartLink;

// Set the package name and desktop URL (optional if set globally)
SmartLink::setPackageName('com.yourcompany.yourapp');
SmartLink::setDesktopURL('https://example.com/desktop-landing-page');

// Generate a smart link for mobile or desktop
$payload = ['referral_code' => 'ABC123'];
$smartLink = SmartLink::generateSmartLink($payload);

// Use the generated smart link in your application
echo $smartLink;
```

Configuration
-------------

[](#configuration)

You can configure the package globally in your Laravel application by setting the package name and desktop URL in the `config/smartlink.php` file. You can publish the configuration file using the following command:

```
php artisan vendor:publish --tag=config --provider="SmartLink\SmartLinkServiceProvider"
```

Testing
-------

[](#testing)

You can run the tests for the SmartLink package using PHPUnit. Make sure to set the package name and desktop URL in the `setUp` method of the test file before running the tests.

Contributing
------------

[](#contributing)

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please create an issue or submit a pull request on the [GitHub repository](https://github.com/komangkrisnanda/smart-link).

License
-------

[](#license)

The SmartLink package is open-source software licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for more information.

Feel free to contribute to the project or report any issues on the [GitHub repository](https://github.com/komangkrisnanda/smart-link).

```

Feel free to include additional sections or customize the content further based on the specific features and use cases of your SmartLink package. This README file will serve as a comprehensive guide for users who want to install, configure, and use your package in their PHP applications.

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

918d ago

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.0

1.0.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a95b2ffd0a2a8f5390c54daec87b4ccad33e2881b0e5909c2913d82b78c2f16?d=identicon)[komangkrisnanda](/maintainers/komangkrisnanda)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/foxbyte-smart-link/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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