{"id":18578310,"url":"https://github.com/astrotomic/laravel-github-sponsors","last_synced_at":"2025-04-10T10:31:04.667Z","repository":{"id":42187739,"uuid":"394668011","full_name":"Astrotomic/laravel-github-sponsors","owner":"Astrotomic","description":"Retrieve the GitHub Sponsors of a given user/organization.","archived":false,"fork":false,"pushed_at":"2023-04-17T10:40:36.000Z","size":184,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T03:31:57.497Z","etag":null,"topics":["github-sponsors","laravel","php","sponsors"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Astrotomic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-10T13:38:47.000Z","updated_at":"2023-04-02T11:20:54.000Z","dependencies_parsed_at":"2022-08-12T08:50:57.781Z","dependency_job_id":"fff07dcb-985d-48c1-9b51-32886b74945c","html_url":"https://github.com/Astrotomic/laravel-github-sponsors","commit_stats":{"total_commits":43,"total_committers":3,"mean_commits":"14.333333333333334","dds":"0.39534883720930236","last_synced_commit":"9df9fad030c5a122743c6b1c95601a4d3bc66b91"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Flaravel-github-sponsors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Flaravel-github-sponsors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Flaravel-github-sponsors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Flaravel-github-sponsors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Astrotomic","download_url":"https://codeload.github.com/Astrotomic/laravel-github-sponsors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-sponsors","laravel","php","sponsors"],"created_at":"2024-11-06T23:34:34.235Z","updated_at":"2025-04-10T10:31:04.164Z","avatar_url":"https://github.com/Astrotomic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel GitHub Sponsors\n\n[![MIT License](https://img.shields.io/github/license/Astrotomic/laravel-github-sponsors.svg?label=License\u0026color=blue\u0026style=for-the-badge)](https://github.com/Astrotomic/laravel-github-sponsors/blob/main/LICENSE.md)\n[![Latest Version](http://img.shields.io/packagist/v/astrotomic/laravel-github-sponsors.svg?label=Release\u0026style=for-the-badge)](https://packagist.org/packages/astrotomic/laravel-github-sponsors)\n[![PHP](https://img.shields.io/packagist/php-v/astrotomic/laravel-github-sponsors?color=%238892BE\u0026style=for-the-badge)](https://github.com/Astrotomic/laravel-github-sponsors/blob/main/composer.json)\n\n[![Ecologi](https://img.shields.io/ecologi/trees/astrotomic?color=green\u0026label=Treeware\u0026style=for-the-badge)](https://forest.astrotomic.info)\n[![Larabelles](https://img.shields.io/badge/Larabelles-%F0%9F%A6%84-lightpink?style=for-the-badge)](https://larabelles.com)\n[![opendor.me](https://img.shields.io/badge/opendor.me-%F0%9F%9A%80-ff4297?style=for-the-badge)](https://opendor.me)\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Astrotomic/laravel-github-sponsors/pest.yml?branch=main\u0026style=flat-square\u0026logoColor=white\u0026logo=github\u0026label=Tests)](https://github.com/Astrotomic/laravel-github-sponsors/actions?query=workflow%3Apest)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Astrotomic/laravel-github-sponsors/phpcs.yml?branch=main\u0026style=flat-square\u0026logoColor=white\u0026logo=github\u0026label=PHP+CS)](https://github.com/Astrotomic/laravel-github-sponsors/actions?query=workflow%3Aphpcs)\n[![Total Downloads](https://img.shields.io/packagist/dt/astrotomic/laravel-github-sponsors.svg?label=Downloads\u0026style=flat-square)](https://packagist.org/packages/astrotomic/laravel-github-sponsors)\n\nRetrieve the GitHub Sponsors of any user/organization and check if someone is sponsoring you.\n\n## Installation\n\n```bash\ncomposer require astrotomic/laravel-github-sponsors\n```\n\n## Configuration\n\nSet `services.github.sponsors_token` config value or override service binding in your own service provider.\nThe used PAT needs at least `read:user` and `read:org` permissions to retrieve all sponsors.\n\n```php\n$this-\u003eapp-\u003ewhen(\\Astrotomic\\GithubSponsors\\Graphql::class)\n    -\u003eneeds('$token')\n    -\u003egive('my_custom_secret');\n```\n\n## Usage\n\n```php\nuse Astrotomic\\GithubSponsors\\Facades\\GithubSponsors;\n\n// all sponsors for current authenticated user\nGithubSponsors::viewer()-\u003esponsors();\n// all sponsors for given name without knowing what it is\nGithubSponsors::login('larabelles')-\u003esponsors();\n// all sponsors for given user\nGithubSponsors::user('Gummibeer')-\u003esponsors();\n// all sponsors for given organization\nGithubSponsors::organization('Astrotomic')-\u003esponsors();\n\n// select specific attributes\nGithubSponsors::viewer()-\u003esponsors(['login', 'name', 'avatarUrl']);\n// select specific attributes and company only for users\nGithubSponsors::viewer()-\u003esponsors(['login', 'name', 'avatarUrl'], ['company']);\n// select specific attributes and email only for organizations\nGithubSponsors::viewer()-\u003esponsors(['login', 'name', 'avatarUrl'], [], ['email']);\n\n// check if viewer sponsored by Gummibeer\nGithubSponsors::viewer()-\u003eisSponsoredBy('Gummibeer');\n// check if viewer sponsors Gummibeer\nGithubSponsors::viewer()-\u003eisSponsoring('Gummibeer');\n// check if viewer has sponsors\nGithubSponsors::viewer()-\u003ehasSponsors();\n// check how many sponsors the viewer has\nGithubSponsors::viewer()-\u003esponsorsCount();\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease 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).\n\n### Security\n\nIf you discover any security related issues, please check [SECURITY](https://github.com/Astrotomic/.github/blob/master/SECURITY.md) for steps to report it.\n\n## Credits\n\n- [Tom Witkowski](https://github.com/Gummibeer)\n- [Mert Aşan](https://github.com/mertasan)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Treeware\n\nYou'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.\n\nIt’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.\n\nYou can buy trees at [ecologi.com/astrotomic](https://forest.astrotomic.info)\n\nRead more about Treeware at [treeware.earth](https://treeware.earth)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrotomic%2Flaravel-github-sponsors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrotomic%2Flaravel-github-sponsors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrotomic%2Flaravel-github-sponsors/lists"}