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 today

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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

963d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M280](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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