webfox/laravel-xero-oauth2
A Laravel package for integrating Xero OAuth2 authentication. It streamlines the authorization flow, token storage and refresh, and authenticated Xero API requests, making it easier to connect Laravel applications to Xero.
Adopt when:
Look elsewhere when:
For executives: We can ship a Xero integration in days instead of building OAuth plumbing from scratch, at zero licence cost and with no lock-in. It converts a recurring "when are we getting Xero?" roadmap item into a scheduled piece of work, and it lets us sell into the accountant/bookkeeper segment that lives inside Xero. The exposure is proportionate to the size of the dependency — small, MIT-licensed, and swappable — providing we wrap it behind our own interface rather than calling it from everywhere.
For engineering: It handles the OAuth 2.0 authorisation-code flow, token persistence, and refresh-token rotation, and hands back an authenticated client for Xero API calls. It deliberately stops at the connector boundary — scheduling, retries, rate limiting across orgs, and data mapping remain ours. It is a small, low-traffic repository, so we should pin the version, review the source before merge, and isolate it behind a single internal service so replacing it later is a one-file change rather than a refactor. Read it before adopting it; the token refresh logic is the part worth understanding even after we install it.
How can I help you explore Laravel packages today?