Download the PHP package infrawrench/sdk without Composer

On this page you can find all versions of the php package infrawrench/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 sdk

infrawrench/sdk

Generated PHP client for the Infrawrench API (API version 1.39.0).

Do not edit this package by hand — it is regenerated from openapi.json and is not checked into the repository. Run pnpm --filter @infrawrench/web generate:sdk to rebuild it; the generator lives in app/packages/web/scripts/sdk.

Requires PHP 8.1+. No Composer dependencies: ext-curl is used when it is loaded, and a stream-wrapper fallback when it is not.

Versioning

There is no version field in composer.json, because Composer takes a package's version from the git tag it was published under. The API version each build was generated from is the one in the heading above, and it is repeated at the top of every emitted file — tag releases to match it.

Install

Usage

Calls are namespaced to mirror the URL structure, so POST /api/org/{orgId}/accounts/{id}/sync is $client->accounts->sync(id: $id) and POST …/secret-versions/add is $client->resources->secretVersions->add(…).

Set orgId once on the client and every org-scoped call can omit it; pass orgId: on an individual call to override it. Omitting both raises MissingParameterException before anything is sent.

Named arguments, not an options array

Every call takes named arguments. An array $params would have been shorter to generate, but it erases every argument's type, hides typos until runtime, and gives an editor nothing to complete. Required arguments are declared first because PHP requires it — with named arguments that ordering never shows up at a call site.

Each method also takes a trailing RequestOptions for per-call headers and timeouts:

Models

Response bodies come back as classes under Infrawrench\Sdk\Model, with readonly properties, fromArray(), toArray() and JsonSerializable.

Schemas that are a fixed set of strings — plugin ids, permissions, resource statuses — are classes of constants rather than PHP enums, so that a value added by a newer API version still deserializes instead of raising. PHPDoc still pins the exact set via PluginId::*, so static analysis loses nothing.

Errors

Non-2xx responses throw ApiException, carrying status, the decoded body, and errorCode — the API's machine-readable code field — when the response has one. Branch on errorCode, never on the message.

Network failures and malformed payloads throw TransportException, which is usually worth retrying where an ApiException is not.

Testing

Infrawrench\Sdk\Http\HttpSender is the only seam between this client and the network. Pass an implementation as sender: and every call runs through it with path interpolation, query serialization, multipart encoding and error mapping still applied:

Scope

This package covers the published API surface only: 526 operations across 734 schemas. Operations marked x-internal in the spec — the admin surface, webhook receivers, desktop sync, push registration, and the browser auth redirects — are not generated.

License

MIT — see LICENSE. Copyright (c) 2026 Infrawrench LLC.

Note that this client is more permissively licensed than the service it talks to: the Infrawrench source is BUSL-1.1, but the generated clients are MIT so you can link one into your own software without inheriting those terms.

Issues: https://github.com/Infrawrench/Infrawrench/issues


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 infrawrench/sdk contains the following files

Loading the files please wait ...