Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Forge Sdk Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs buy for Forge infrastructure management: 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.
  • Feature scoping for automation and self-service dashboards: The SDK's resource coverage (servers, sites, deployments, SSL, daemons, scheduled jobs, database users) is effectively a checklist of what our internal tooling can expose without touching the Forge UI. Use it to size "what's achievable this quarter" versus "what requires raw HTTP or waiting on Forge's API."
  • Roadmap risk assessment: This is a community-standard Laravel package under the official 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.
  • Reliability signal from v4.1.1: The 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.
  • Test-suite hygiene: Removal of Mockery and the suite fix are internal quality signals, not user-facing, but they indicate the package is being actively kept healthy — a supporting data point for long-lived dependency decisions.

When to Consider This Package

Adopt when:

  • We manage infrastructure through Laravel Forge and need automation beyond the dashboard — provisioning pipelines, environment promotion, scheduled-job management, or per-tenant site creation.
  • We're building internal admin tooling and want typed, tested access to Forge resources instead of raw Guzzle calls and hand-maintained response parsing.
  • We need paginated iteration over large Forge collections; v4.1.1's lazy() correction makes streaming large result sets trustworthy, so pin at or above this version.
  • We want a dependency maintained by the Laravel organization with a visible changelog and responsive patch releases.

Look elsewhere when:

  • Infrastructure is not on Forge (or we're evaluating Forge versus a competing provider) — the SDK is a hard commitment to that platform and offers no portability.
  • Our needs are strictly CI/CD deploys from a repo; Forge's native integrations or a generic deployment tool may be simpler than maintaining SDK-driven orchestration.
  • We require guarantees around stable public API surface — 4.x is still shipping patches, so contract-level stability should be verified against our usage before deep coupling.
  • We need capabilities Forge's API does not expose; the SDK cannot exceed its upstream surface, and we'd end up supplementing with direct API calls anyway.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core