finds.dev← search

// the find

GrahamCampbell/Laravel-GitHub

★ 646 · PHP · MIT · updated May 2026

A GitHub API bridge for Laravel

A thin Laravel service provider that wires KnpLabs/php-github-api into Laravel's IoC container, adds multi-connection management via Graham Campbell's own Laravel-Manager abstraction, and handles five authentication methods including JWT and GitHub Apps private keys. It's for Laravel developers who want GitHub API access as a first-class service rather than manually instantiating a client. The package itself does nothing the underlying KnpLabs library doesn't do — it's purely glue.

Well-maintained across a long support matrix — the compatibility table alone tracks twelve Laravel versions and the current release hits L10-L13 with PHP 8.1-8.5. The multi-connection design is genuinely useful for apps that talk to GitHub as both an installation and a user OAuth token simultaneously. Private key / GitHub Apps authentication is supported out of the box, which a lot of simpler wrappers skip. Test coverage is thorough for a glue package — each authenticator has its own test class rather than one monolithic integration test.

The package is entirely dependent on KnpLabs/php-github-api, and if that library's API surface changes you're at the mercy of two release cycles instead of one. The HTTP cache integration is limited to a single 'illuminate' driver with no documented strategy for cache invalidation, which matters a lot when you're polling resources that update frequently. There's no built-in rate-limit handling or retry logic — you get whatever KnpLabs exposes, so burst traffic will throw exceptions you have to catch yourself. 646 stars in over a decade of existence suggests this fills a niche but hasn't become the go-to approach, probably because most Laravel apps only ever need one GitHub connection and a two-line instantiation in a service provider.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →