tourze/gitee-api-bundle
A Symfony bundle that integrates the Gitee API, wiring up configuration and services so PHP applications can quickly authenticate and call Gitee endpoints for repositories, issues, users, and more without building a client from scratch.
Treat 0.0.1 as a source-first, pre-1.0 package — the release note is empty, so the code and composer.json are your only documentation.
composer require tourze/gitee-api-bundle then inspect what actually landed:
composer.json for PHP constraint, symfony/http-client, and autoload namespaces.src/ for the core client class/interface (typically a …Api or …Client wrapping Gitee REST endpoints).DependencyInjection/ and Resources/config/ for the Symfony service wiring.GET /user or fetch a repo), then one write (create an issue). Instantiate the client manually rather than relying on framework autoconfiguration — see the gotcha below.// Laravel: wire it yourself; Symfony bundle autodiscovery does not apply.
$token = config('services.gitee.token');
$client = new \Tourze\GiteeApiBundle\...\Client($token, /* transport/base uri if injectable */);
App\Providers\AppServiceProvider from a config/gitee.php file, reading GITEE_TOKEN from env(). This gives you one configured instance and a mockable interface.Http::fake()-style testing at the boundary; otherwise mock the client interface in tests.extra.laravel providers, no package discovery. You will manually construct services and skip the DependencyInjection extension. Budget time for this."tourze/gitee-api-bundle": "0.0.1") until a stable tag; expect class/namespace churn.src/. There is no documented changelog, breaking-change list, or deprecation path yet.access_token query parameter or an Authorization: token … header depending on endpoint/version. Confirm which the package sends before debugging 401s.How can I help you explore Laravel packages today?