PHPackages                             astrotomic/laravel-github-sponsors - 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. astrotomic/laravel-github-sponsors

ActiveLibrary

astrotomic/laravel-github-sponsors
==================================

1.1.0(8mo ago)81.4k1MITPHPPHP ^8.0CI passing

Since Aug 20Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/Astrotomic/laravel-github-sponsors)[ Packagist](https://packagist.org/packages/astrotomic/laravel-github-sponsors)[ Fund](https://forest.astrotomic.info)[ GitHub Sponsors](https://github.com/Gummibeer)[ RSS](/packages/astrotomic-laravel-github-sponsors/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (7)Versions (10)Used By (0)

Laravel GitHub Sponsors
=======================

[](#laravel-github-sponsors)

[![MIT License](https://camo.githubusercontent.com/787ddb1b09d8e801f63e6a811615e894dd83f5380d5d769971837bc77a760f4e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72732e7376673f6c6162656c3d4c6963656e736526636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://github.com/Astrotomic/laravel-github-sponsors/blob/main/LICENSE.md)[![Latest Version](https://camo.githubusercontent.com/efac2e25e681668624dbee51619dd5717e794230b5151b6908bef4ab016dc4ce/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72732e7376673f6c6162656c3d52656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/astrotomic/laravel-github-sponsors)[![PHP](https://camo.githubusercontent.com/196949691d362b1ae4fa37ce89457957b2e23d1c0436d8d3aebbcc15dfac2a41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f617374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72733f636f6c6f723d253233383839324245267374796c653d666f722d7468652d6261646765)](https://github.com/Astrotomic/laravel-github-sponsors/blob/main/composer.json)

[![Ecologi](https://camo.githubusercontent.com/c8ecc67b6f8fa60c64df466dbe37d51168aaf042346af8fa927aa401cf99af9c/68747470733a2f2f696d672e736869656c64732e696f2f65636f6c6f67692f74726565732f617374726f746f6d69633f636f6c6f723d677265656e266c6162656c3d5472656577617265267374796c653d666f722d7468652d6261646765)](https://forest.astrotomic.info)[![Larabelles](https://camo.githubusercontent.com/a2c8d5126ddd8c5ddc627176d1d2e0568f8399b50038e71fd7f774c3e24dbe4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726162656c6c65732d2546302539462541362538342d6c6967687470696e6b3f7374796c653d666f722d7468652d6261646765)](https://larabelles.com)[![opendor.me](https://camo.githubusercontent.com/6baecdb76ebc3dc3d15a696262cebc48c3a3a9de974d162b9ec0e7b280cc6be8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e646f722e6d652d2546302539462539412538302d6666343239373f7374796c653d666f722d7468652d6261646765)](https://opendor.me)

[![GitHub Workflow Status](https://camo.githubusercontent.com/1bd164877fbdf482f7db4c10d9ad660625f7c26292fdc9506a6647a6ee351c2f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f417374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72732f706573742e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562266c6162656c3d5465737473)](https://github.com/Astrotomic/laravel-github-sponsors/actions?query=workflow%3Apest)[![GitHub Workflow Status](https://camo.githubusercontent.com/e7a91bb5f68dbf269e2244d3534b8f848598062511cb992376c173924ecd010f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f417374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72732f70687063732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562266c6162656c3d5048502b4353)](https://github.com/Astrotomic/laravel-github-sponsors/actions?query=workflow%3Aphpcs)[![Total Downloads](https://camo.githubusercontent.com/231df2ee725e0b21a0b07f8bfcbc3e2ecca37fd2fe064fe6d755ed52ea9cbbec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617374726f746f6d69632f6c61726176656c2d6769746875622d73706f6e736f72732e7376673f6c6162656c3d446f776e6c6f616473267374796c653d666c61742d737175617265)](https://packagist.org/packages/astrotomic/laravel-github-sponsors)

Retrieve the GitHub Sponsors of any user/organization and check if someone is sponsoring you.

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

[](#installation)

```
composer require astrotomic/laravel-github-sponsors
```

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

[](#configuration)

Set `services.github.sponsors_token` config value or override service binding in your own service provider. The used PAT needs at least `read:user` and `read:org` permissions to retrieve all sponsors.

```
$this->app->when(\Astrotomic\GithubSponsors\Graphql::class)
    ->needs('$token')
    ->give('my_custom_secret');
```

Usage
-----

[](#usage)

```
use Astrotomic\GithubSponsors\Facades\GithubSponsors;

// all sponsors for current authenticated user
GithubSponsors::viewer()->sponsors();
// all sponsors for given name without knowing what it is
GithubSponsors::login('larabelles')->sponsors();
// all sponsors for given user
GithubSponsors::user('Gummibeer')->sponsors();
// all sponsors for given organization
GithubSponsors::organization('Astrotomic')->sponsors();

// select specific attributes
GithubSponsors::viewer()->sponsors(['login', 'name', 'avatarUrl']);
// select specific attributes and company only for users
GithubSponsors::viewer()->sponsors(['login', 'name', 'avatarUrl'], ['company']);
// select specific attributes and email only for organizations
GithubSponsors::viewer()->sponsors(['login', 'name', 'avatarUrl'], [], ['email']);

// check if viewer sponsored by Gummibeer
GithubSponsors::viewer()->isSponsoredBy('Gummibeer');
// check if viewer sponsors Gummibeer
GithubSponsors::viewer()->isSponsoring('Gummibeer');
// check if viewer has sponsors
GithubSponsors::viewer()->hasSponsors();
// check how many sponsors the viewer has
GithubSponsors::viewer()->sponsorsCount();
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/Astrotomic/.github/blob/master/CONTRIBUTING.md) for details. You could also be interested in [CODE OF CONDUCT](https://github.com/Astrotomic/.github/blob/master/CODE_OF_CONDUCT.md).

### Security

[](#security)

If you discover any security related issues, please check [SECURITY](https://github.com/Astrotomic/.github/blob/master/SECURITY.md) for steps to report it.

Credits
-------

[](#credits)

- [Tom Witkowski](https://github.com/Gummibeer)
- [Mert Aşan](https://github.com/mertasan)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees at [ecologi.com/astrotomic](https://forest.astrotomic.info)

Read more about Treeware at [treeware.earth](https://treeware.earth)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance61

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 54% 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 ~185 days

Recently: every ~368 days

Total

9

Last Release

243d ago

Major Versions

0.3.0 → 1.0.0-rc.12021-08-31

0.4.0 → v1.0.02023-04-02

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

v1.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb5d60f7dd33ef3680490f11b3cd461b0c7a5dcddfe69d57fb1f6a3406be4570?d=identicon)[Gummibeer](/maintainers/Gummibeer)

---

Top Contributors

[![mertasan](https://avatars.githubusercontent.com/u/13007665?v=4)](https://github.com/mertasan "mertasan (27 commits)")[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (23 commits)")

---

Tags

github-sponsorslaravelphpsponsors

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/astrotomic-laravel-github-sponsors/health.svg)

```
[![Health](https://phpackages.com/badges/astrotomic-laravel-github-sponsors/health.svg)](https://phpackages.com/packages/astrotomic-laravel-github-sponsors)
```

###  Alternatives

[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[iankumu/mpesa

A package that helps integrate the Mpesa APIs to your Laravel Project

5014.7k](/packages/iankumu-mpesa)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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