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

Laravel Forge Api Laravel Package

tzurbaev/laravel-forge-api

A Laravel package that wraps the Laravel Forge API in a clean, fluent interface, letting you manage servers, sites, deployments, workers, and other Forge resources directly from your PHP applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for infrastructure automation. This package is only ever a thin client over the Laravel Forge API — it does not provision anything itself. Its real value is shortening the "integrate with Forge" line item in a build estimate from days to hours, so it informs whether a self-serve infrastructure feature is worth building at all.
  • Feature: self-service server/environment provisioning. Letting internal teams or tenants spin up Forge-managed servers, sites, and databases from your own product UI without opening the Forge dashboard.
  • Feature: onboarding and environment promotion. Automating "new customer → new site → new database → deploy" flows, or promoting staging to production, as part of a customer or project lifecycle.
  • Feature: operational visibility. Pulling server, site, and deployment data into an internal dashboard, alerting on failed deploys, or reconciling Forge state against your own records (drift detection).
  • Feature: CI/CD and pipeline hooks. Triggering deploys, rotating deploy keys, or querying deployment status from scheduled jobs and pipelines.
  • Roadmap signal. Choosing to standardize on Forge as the provisioning layer (vs. Ploi, RunCloud, Vapor, or raw Terraform/Ansible) is the upstream decision; this package only makes sense downstream of that call.
  • Use cases it does not support well: multi-provider infrastructure abstraction, Terraform-grade declarative state, cost management, or anything requiring long-term vendor-supported API stability.

When to Consider This Package

Adopt-worthy only when all of the following hold:

  • Laravel Forge is already, or is imminently, your provisioning layer — the decision is made, not being evaluated.
  • The consumer is a Laravel/PHP codebase, so the framework integration (config, facades, service provider) is genuinely worth something.
  • Scope is small and stable: a handful of read/write calls, not exhaustive coverage of every Forge endpoint.
  • You are willing to fork or vendor it into your repo and own it, and your team has the PHP capacity to do so.
  • You need something working this sprint and are comfortable treating it as a starting point rather than a dependency.

Look elsewhere when:

  • You need a maintained dependency. This repo is archived with no release since January 2021. Expect no security patches, no PHP 8.2+/Laravel 10+ guarantees, and no coverage of Forge API endpoints added after 2021 (notably organization-scoped resources). Shipping an archived, unmaintained package into a production path is a supply-chain and bus-factor liability.
  • An official SDK exists. Laravel maintains its own PHP SDK for the Forge API, which makes a 44-star third-party wrapper hard to justify on a new build. Validate this against your target Forge API version first, but assume the official client is the default answer.
  • You need breadth. Forge's API is well documented and small; for a handful of endpoints, a thin wrapper on Laravel's own HTTP client (or Saloon, if you want a testable connector pattern) is often cheaper to own than adopting an abandoned one.
  • You are not on Laravel, or you need multi-provider abstraction, declarative IaC, or vendor support/SLAs.
  • Your team cannot absorb maintenance. If nobody owns the fork, the "cheap" MIT dependency becomes an unpatchable liability at the worst possible moment.

How to Pitch It (Stakeholders)

For executives. This is a free, MIT-licensed helper library that lets our Laravel application talk to Laravel Forge — the service we use to create and manage servers. It does not save money on infrastructure and it is not a platform; it saves engineering days on the integration layer if we decide to automate provisioning, deployments, or environment creation inside our own product. The material caveat is risk, not cost: the project is archived and hasn't shipped since January 2021, and Laravel now publishes its own SDK for the same API. My recommendation is to treat this as a reference implementation, not a standing dependency — budget a few days to fork or replace it rather than adopting it as-is, and make the Forge-standardization decision explicitly before greenlighting any feature that depends on it.

For engineering. Thin, conventional Laravel wrapper around the Forge API: config file, service provider, facades, request objects per resource. Pleasant to read and fast to wire up if you're already in a Laravel codebase — which is exactly why it's a decent design reference. Three problems to plan around: (1) no commits since 2021, so PHP and Laravel version support is unverified and Forge endpoints added since then — organizations in particular — are almost certainly missing; (2) no tests you can trust against the current API, so budget for contract tests against Forge's OpenAPI docs or a sandbox; (3) it is functionally redundant with Laravel's official Forge SDK. If we proceed, fork it in-repo, pin the Forge API version, and wrap it behind our own interface so the underlying client is swappable — that way the archived dependency never becomes load-bearing.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource