jordanpartridge/github-client
jordanpartridge/github-client is a lightweight Laravel wrapper for the GitHub API. Fetch repositories, issues, pull requests, releases, and user profiles through a clean, fluent interface, with token authentication and simple, Laravel-friendly configuration.
composer require the package (v3.1.0 requires Laravel 13, Saloon ^4.3, and php-jwt ^7), then publish its config if available. Set either a GITHUB_TOKEN for personal access token (PAT) auth, or GitHub App credentials (GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, GITHUB_APP_INSTALLATION_ID) for app-based auth.docs/ARCHITECTURE.md – the new doc explains how connectors, authentication strategies, and requests fit together. Also skim the CHANGELOG.md for the v3.1.0 auth-status fix and error guidance changes.Cache::remember) and let the strategy refresh on expiry; don't fetch a new token on every request.MockClient / Saloon::fake() to stub GitHub responses. Assert that the connector used the correct auth strategy and that error handling surfaces useful messages.Link headers and checkpoint responses; wrap calls in retry/backoff logic for secondary rate limits, especially on background jobs..env often lose newlines. Store the key with literal \n and convert in config, or mount a file. Invalid key formatting is a common cause of JWT signing failures.JWT::encode/decode signatures in php-jwt v7).How can I help you explore Laravel packages today?