Download the PHP package robo-meister/accord-flow-api without Composer

On this page you can find all versions of the php package robo-meister/accord-flow-api. 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 accord-flow-api

AccordFlow PHP SDK

The AccordFlow PHP SDK is a small cURL-based client for connecting PHP 8.1+ applications to the AccordFlow Signature API. It supports JSON requests, multipart file uploads, bearer-token authentication, and the tenant header used by local open API mode.

Installation

For application deployments, resolve the published release through Composer:

Verify that your Composer registry resolves the release before updating an application lockfile. A Git tag and registry availability are separate checks. Local path repositories are for SDK development, not release substitution. The package requires the PHP curl and json extensions.

Quick start

Canonical envelope lifecycle

This example requires the AccordFlow runtime fix ACCORD-FLOW-DISPATCH-VS-SIGNER-CONSENT-BOUNDARY-001, not merely an SDK release. Preparing or dispatching an Envelope does not assert signer consent or intent. The actual signer supplies those facts through the signing interaction.

Prepare the approved immutable document, recipient and signing session. This stage neither activates the Envelope nor sends an invitation.

The application now creates and reviews its Communication draft. Before the following step it must revalidate the exact approved revision, signer contact, session identity, session expiry and professional send authorization. Never silently replace an expired session URL in an already approved message.

A failed delivery-proof request must retry only the proof, not send the email again. Likewise, an activated Envelope is not proof that Communication delivered anything. SENT is not signed-document/evidence reconciliation completion.

Dispatch policy, not signer evidence

The corrected send API accepts optional dispatchPolicy containing only policyReferences and retention. Omitted retention uses the existing signature.retention.envelope configuration and is still validated/persisted by AccordFlow. Explicit directives still have to satisfy the configured bounds. These defaults are application configuration, not a jurisdiction-specific legal compliance guarantee.

Legacy compliance remains a deprecated wire adapter: only its Envelope policy and retention fields are used at send. Its consent and intent fields do not produce signer evidence. Do not send both dispatchPolicy and compliance. Draft creation ignores legacy signer data; pass policy overrides on the later send request. sendImmediately=true uses the same corrected dispatch boundary. Clients that relied on send creating signer evidence must migrate to the real signing interaction; there is no compatibility switch that fabricates consent.

Application-owned invitation delivery

EXTERNAL ownership suppresses native dispatch, reminder and void notifications; AccordFlow still owns recipient authentication, signing, lifecycle and evidence. The provider-owned signingUrl requires runtime public-signing configuration. Do not reconstruct the frontend route or log the URL/capability token.

SDK v0.0.3 includes addEnvelopeRecipients(), createEnvelopeEmbeddedSession(), getEnvelopeEmbeddedSessions(), recordEnvelopeDeliveryProof() and sendEnvelope(). This documentation correction does not change those PHP methods or move the existing v0.0.3 tag.

The canonical application API is /api/envelopes/*. Idempotency headers are not by themselves proof of server-side replay handling; a mutating transport timeout remains an unknown outcome until reconciled. Low-level crypto helpers are not substitutes for the Legal Office Envelope/session flow.

Completed Envelope retrieval

After the runtime contract ACCORD-FLOW-SIGNED-DOCUMENT-RETRIEVAL-CONTRACT-001 is deployed, applications can retrieve the final executed-document descriptors separately from evidence exports:

downloadEnvelopeExecutedDocument() returns AccordFlowBinaryResponse; its body contains the exact HTTP response bytes and is not trimmed, JSON-decoded, base64-normalized, transcoded, or re-encoded by the SDK. Response headers remain available for content type, length, filename and provider hash metadata.

A completed Envelope may legitimately have no executed-document artifact when the signing mode produced only detached signature material. In that case the runtime fails closed; the SDK does not fall back to the original Envelope document, downloadEnvelopeRecords(), or evidence bytes.

Evidence bundles

Evidence bundles have a separate discovery/reuse contract:

createEnvelopeEvidenceBundle() carries Idempotency-Key; runtime replay semantics decide whether an existing bundle is reused. The SDK neither caches a bundle nor invents its identity. The optional payload remains a runtime request payload.

The retrieval concepts are intentionally distinct:

In particular, /records is not an executed signed document and downloadEnvelopeRecords() must not be used as a fallback for one. After SIGNATURE.COMPLETED, Robo Connector should list executed documents, select the descriptor for the expected source document, download its exact bytes, verify the descriptor hash and byte length, list or create the evidence bundle, and then download its exact bytes. The SDK deliberately does not choose which artifact is acceptable; source identity and integrity validation belong to Robo Connector reconciliation.

These retrieval methods are introduced in immutable SDK release v0.0.4. The existing v0.0.3 tag must not be moved.

Sign JSON payloads

The signing endpoint requires an existing envelope and actual signer consent. Sender approval of an invitation is not that consent. Never invent signer IP, authentication, consent timestamps or intent to satisfy request validation. Some providers return redirectUrl for a browser handoff; preserve their returned verificationReference for subsequent verification.

Sign and verify files

These are legacy low-level interfaces, not the Legal Office invitation path. Their identity/consent handling requires separate verification before use in a signer-facing workflow; this dispatch-boundary change does not certify them.

Generic requests

Use generic helpers only for operations without an available typed wrapper:

Error handling

Non-2xx responses and transport failures throw AccordFlowException. The exception includes the HTTP status code and decoded JSON response when available. Do not log provider payloads or exception bodies containing signing capabilities.

For example, a runtime response with HTTP 409 and code EXECUTED_DOCUMENT_BYTES_NOT_PRODUCED_BY_PROVIDER remains an AccordFlowException with status 409 and the complete decoded response from getResponseBody(). It is not converted to a 404 or an empty response, and the SDK never falls back to source-document, evidence-bundle, or records bytes.


All versions of accord-flow-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
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 robo-meister/accord-flow-api contains the following files

Loading the files please wait ...