graham-campbell/bitbucket
A Laravel/PHP package by Graham Campbell that provides a clean, configurable Bitbucket Cloud API v2 client, with service provider and facade integration for working with repositories, pull requests, users, webhooks, and related resources.
bitbucket/client SDK — service provider, facade, publishable config, container binding, auto-discovery. It removes the plumbing (auth wiring, HTTP client configuration, dependency injection, config caching) that typically consumes 20–40% of a first integration and nearly all of its ongoing maintenance. That is a buy, not a build, and the price is a Composer line.Consider it when:
Look elsewhere when:
bitbucket/client 5.1 before committing.bitbucket/client 4.x elsewhere in the monorepo. v11.1.0 raises the floor to 5.1 on a minor wrapper release — run composer why-not bitbucket/client ^5.1 before assuming the lockfile will move, and stage the bump in a branch.Adoption checklist before committing: confirm the support matrix (does v11.1.0 drop any Laravel or PHP versions, or only add?); review the bitbucket/client 4.x → 5.x changelog for breaking changes in client construction, exception hierarchy, pagination iterators, and resource namespaces; check the licence against our distribution model; and look at release cadence over the last 12 months, not just this release.
To executives (one paragraph): This is a small, actively maintained open-source library that connects our Laravel application to Bitbucket using Bitbucket's own official SDK. It converts what would otherwise be a bespoke integration project into configuration plus our business logic — meaningfully less engineering time up front and, more importantly, far less ongoing maintenance as Bitbucket's API evolves. The current release explicitly supports the next PHP and Laravel versions, so it will not become an upgrade blocker. Licence cost is zero; the investment is a one-to-two-day evaluation spike and a review of one transitive dependency bump. The main caveat to note is that it is community-maintained with a small maintainer base, which we mitigate by keeping our own wrapper thin and staying fork-ready.
To engineering leadership: Approve a time-boxed spike (1–2 days) to wire the package into a branch, confirm the new bitbucket/client 5.1 floor resolves cleanly against our lockfile, and exercise the two or three endpoints the roadmap actually needs — including the OAuth refresh path, pagination, and error handling. Success criteria: clean install on our target PHP/Laravel versions, no constraint conflicts, and a working read path against a non-production workspace. The only thing to scrutinise in these release notes is the SDK major-version floor raise; the PHP 8.5 and Laravel 13 additions are purely additive. Follow it with a canary: ship one low-risk read-only consumer to production before migrating any write path, and instrument auth-error rate and 429s rather than relying on exception volume alone.
Framing to avoid: do not sell this as a strategic platform choice. It is a tactical dependency that removes undifferentiated plumbing, and it sits downstream of the VCS standardisation decision — which is the one that deserves the committee.
How can I help you explore Laravel packages today?