themsaid/forge-sdk
A PHP SDK for the Laravel Forge API that lets you manage servers, sites, deployments, databases, and more programmatically from Laravel or PHP applications with a clean, expressive interface.
laravel/forge-sdk is the official programmatic client for Laravel Forge, so it answers "do we hand-roll Forge API calls or consume a maintained SDK?" For any internal tooling that provisions servers, sites, databases, workers, or deploys on Forge, this package is the default answer and removes a non-trivial maintenance burden from our team.laravel namespace, with an actively maintained release cadence (v4.x line still receiving fixes). That supports treating it as a durable dependency rather than a throwaway integration.CursorPaginator::lazy() fix addresses items being overwritten across pages — a correctness bug that would silently truncate or duplicate results in any large-list consumer (e.g. auditing all sites across all servers, bulk deployment reporting). Any roadmap item depending on iterating long collections should assume v4.1.1+ as the floor.Adopt when:
lazy() correction makes streaming large result sets trustworthy, so pin at or above this version.Look elsewhere when:
For executives: This is the official, Laravel-maintained client for Forge's API — a thin, low-risk dependency that lets our engineers automate server and site management instead of doing it manually in a dashboard. The latest patch (v4.1.1) fixes a pagination bug that could have silently dropped or duplicated records when reading large lists, which matters for any reporting or bulk operations we build on top of it. Recommendation: adopt at v4.1.1 or later for Forge automation work; no architectural commitment beyond the Forge platform we already rely on.
For engineering: Use this SDK rather than hand-rolling HTTP calls — it's the maintained path with a current changelog. Pin ^4.1.1 to get the CursorPaginator::lazy() fix; if you're iterating large collections on 4.1.0 or below, you may be silently losing items across page boundaries, so upgrade. The Mockery removal is internal test-hygiene only and has no user-facing impact. Watch the 4.x changelog for further patches before wrapping the client in our own abstraction layer, and keep our integration tests focused on the subset of resources we actually consume so upstream additions don't force churn.
How can I help you explore Laravel packages today?