Weave Code
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

laravel/forge-sdk

Laravel Forge SDK for PHP. Manage Forge API v2 resources with an expressive interface: organizations, servers, sites, recipes, and more. Supports paginated results via CursorPaginator. Requires an organization slug for all endpoints.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Automated Infrastructure Provisioning: Enable self-service server/site creation for engineering teams, reducing manual Forge UI interactions by 70%+.
  • CI/CD Pipeline Integration: Trigger Forge deployments, database migrations, and server actions directly from GitHub Actions, GitLab CI, or Jenkins.
  • Multi-Environment Management: Standardize server configurations (PHP versions, databases, Laravel services) across dev/staging/prod via SDK-driven templates.
  • Cost Optimization: Programmatically archive unused servers or scale down resources during off-peak hours (e.g., deleteServer() + createServer() with smaller size).
  • Laravel Ecosystem Unification: Centralize management of Laravel-specific services (Horizon, Octane, Reverb) alongside infrastructure, reducing tooling fragmentation.
  • Compliance & Auditing: Log all Forge API calls (e.g., createSite(), updateDatabasePassword()) for security reviews via middleware.
  • Feature Flags for Infrastructure: Use SDK to dynamically enable/disable services (e.g., createReverb() for new feature rollouts).
  • Disaster Recovery: Automate backup/restore workflows by cloning servers/sites (createServer() with snapshot-based provisioning).
  • Vendor Lock-in Mitigation: Abstract Forge-specific logic behind a service layer to facilitate future migrations (e.g., to AWS/Azure).

When to Consider This Package

  • Avoid if:
    • Your team lacks PHP/Laravel expertise (prefer Forge’s web UI or Terraform).
    • You need multi-cloud support (Forge is DigitalOcean/Vultr-centric; consider Pulumi or Crossplane).
    • Compliance requires immutable infrastructure (SDK mutates state; pair with GitOps for auditing).
    • You’re managing <5 servers/sites (manual UI interactions may suffice).
  • Look elsewhere if:
    • Requiring Kubernetes/nomad support (use K8s APIs or Nomad SDKs).
    • Need fine-grained IAM/SSO integration (Forge SDK lacks OAuth scopes; use Forge’s native API directly).
    • Budget constraints prevent Forge subscription (evaluate self-hosted alternatives like Rancher).
  • Consider when:
    • Managing 20+ servers/sites with repetitive configurations.
    • Building internal tools for DevOps teams (e.g., "Provision Laravel Stack" button).
    • Integrating Forge with custom dashboards or monitoring (e.g., Grafana panels for server metrics).

How to Pitch It (Stakeholders)

For Executives: "The Laravel Forge SDK lets us automate 90% of our server and application deployments—reducing manual errors, cutting provisioning time from hours to minutes, and enabling self-service for engineers. For example, a new feature branch can auto-spin up a staging server with databases, PHP 8.5, and Horizon queues in one API call. This directly impacts MTTR (mean time to recovery) and developer velocity while maintaining security via audit logs of all infrastructure changes."

For Engineering: *"This is a game-changer for ops-heavy workflows. Instead of logging into Forge’s UI to create a server, you’ll write a script like:

$forge->createServer($orgSlug, [
    'provider' => ServerProviders::DIGITAL_OCEAN,
    'name' => 'feature-x-staging',
    'size' => '02', // 2GB RAM
    'php_version' => InstallableServices::PHP_85,
]);

We’ll also use it to:

  • CI/CD: Trigger deployments from GitHub Actions (e.g., forge->createDeployment() on merge to main).
  • Cost Control: Auto-archive dev servers after 30 days (forge->archiveServer()).
  • Consistency: Enforce PHP versions, Nginx configs, and Laravel services (Horizon/Reverb) via code reviews. No more ‘works on my machine’—infrastructure is now version-controlled and reproducible."*

For Security/Compliance: "All Forge actions will be logged via middleware, and we’ll implement approval gates for sensitive operations (e.g., deleteServer()). The SDK also lets us enforce least-privilege access by scoping API tokens to specific organizations/servers. For audits, we can replay any infrastructure change by inspecting the SDK’s method calls."

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata