Download the PHP package phpdevkits/forge-sdk without Composer

On this page you can find all versions of the php package phpdevkits/forge-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package forge-sdk

Forge SDK

Tests Total Downloads Latest Version License


Forge SDK is an ultra-strict, type-safe PHP client for the Laravel Forge API, built on Saloon v3. It is engineered for developers who want to automate their Forge infrastructure with the same rigor they apply to their application code — fully typed, immutable, and fail-fast.

Why This SDK?

The Forge API is JSON:API with cursor pagination, async endpoints, and more than a few places where the documented schema and the live behavior disagree. This SDK absorbs all of that so you don't have to:

Spec-vs-runtime divergences we've hit (and how the SDK handles them) are catalogued in docs/FINDINGS.md.

Getting Started

Requires PHP 8.4+.

Install via Composer:

Grab a personal access token from your Forge API settings, then build a Forge client one of three ways:

The forge.json shape:

Usage

The authenticated user, organizations, and the provider catalog

Organization context

Org-scoped resources read the organization from the constructor / env / config, or you can switch context per call with an immutable clone:

Calling an org-scoped resource with no organization set throws OrganizationNotSetException.

Servers

Sites & deployments

SSH keys & daemons

Pagination

Every collection exposes all(?Options) for a single Page<T> and iterate(?Options) for a lazy Generator across all pages:

Testing your own code

It's Saloon underneath, so you can fake Forge in your own suite without touching the network:

Tracks the Forge API while it is v0.x — minor versions of this SDK may include breaking changes until 1.0.

Development

Contributing

Pull requests are welcome — please open an issue first for anything non-trivial so we can agree on the shape.

License

Forge SDK was created by Francisco Barrento under the MIT license.


All versions of forge-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
saloonphp/saloon Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpdevkits/forge-sdk contains the following files

Loading the files please wait ...