PHPackages                             get-things-done/affiliate - 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. get-things-done/affiliate

ActiveLibrary

get-things-done/affiliate
=========================

0.2.0(5y ago)05MITPHPPHP ^7.4|^8.0

Since Oct 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/get-things-done/affiliate)[ Packagist](https://packagist.org/packages/get-things-done/affiliate)[ Docs](https://github.com/get-things-done/affiliate)[ GitHub Sponsors](https://github.com/get-things-done)[ RSS](/packages/get-things-done-affiliate/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/47ac1994a520a2b4209099d1523e813ae6305b8c73052c3694013ac72d7f01da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765742d7468696e67732d646f6e652f616666696c696174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/get-things-done/affiliate)[![GitHub Tests Action Status](https://camo.githubusercontent.com/774cb93acd2f914c6e242c5682a76be43f1058ae989dbdfb87749e36baa42be7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6765742d7468696e67732d646f6e652f616666696c696174652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/get-things-done/affiliate/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/557da073b63a80a04094a3d15ca416a8ce2f9c2a08375fcbd9fff9a3f5197c61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6765742d7468696e67732d646f6e652f616666696c696174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/get-things-done/affiliate)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require get-things-done/affiliate
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="GetThingsDone\Affiliate\AffiliateServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="GetThingsDone\Affiliate\AffiliateServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
//Get invite url
$inviteUrl = \GetThingsDone\Affiliate\Affiliate::getInviteUrl($user->id);

//Get user's referral
$referral = \GetThingsDone\Affiliate\Affiliate::getReferral($user->id);

//Get user's network
$network = \GetThingsDone\Affiliate\Affiliate::getNetwork($user->id,$maxLevel = 2);
$networkAllLevel = $network->get();
$networkLevel1 = $network->getByLevel(1);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Cao Minh Duc](https://github.com/CaoMinhDuc)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~52 days

Total

2

Last Release

1972d ago

PHP version history (2 changes)0.1.0PHP ^7.4

0.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be1d3d1ffe18b3b967fbbbb892345da3f3d882e55471bba53780fcfc2ad890bd?d=identicon)[cao-minh-duc](/maintainers/cao-minh-duc)

---

Top Contributors

[![cao-minh-duc](https://avatars.githubusercontent.com/u/17726941?v=4)](https://github.com/cao-minh-duc "cao-minh-duc (14 commits)")

---

Tags

affiliateget-things-done

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/get-things-done-affiliate/health.svg)

```
[![Health](https://phpackages.com/badges/get-things-done-affiliate/health.svg)](https://phpackages.com/packages/get-things-done-affiliate)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[jijunair/laravel-referral

Laravel package for a referral system

9223.8k](/packages/jijunair-laravel-referral)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[hypeit/tradetracker-api-client

TradeTracker API client

1020.9k](/packages/hypeit-tradetracker-api-client)

PHPackages © 2026

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