Download the PHP package filecheck/filecheck-php without Composer

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

filecheck/filecheck-php

Filecheck server SDK for PHP 8.1+ — jobs, uploads, webhooks, and the server-side job verification your fulfillment path must run before trusting a browser-submitted job id. Mirrors filecheck-node method-for-method.

HTTP via any PSR-18 client (auto-discovered with php-http/discovery, or injected), with a bundled cURL fallback so the package works with zero extra dependencies.

Install

Quickstart — verify a job in 5 lines

Laravel

verify() is the encoded docs checklist: the job must be terminal (status ∈ done|skipped|error), proceedable (the browser Element's canProceed equivalent — ready/partial after applying the job's onFail policy), and — with workflow_id — must have run the expected workflow. Options: policy (override the resolved onFail), strict (fail closed on status: 'error' jobs).

Uploading + processing files

The wait option

The raw API inconsistently flips sync/async with sync: true (create/preflight/previews/fix — async default) and async: true (validate/optimize — sync default). The SDK normalizes all six behind 'wait' / 'wait_timeout' (seconds, default 120) with defaults matching each endpoint. When the server's ~27 s wait budget expires (HTTP 202), the SDK keeps polling GET /jobs/{id} client-side. Every submit returns a JobResult { job, pending }.

Blocking waits tie up the PHP worker — mind FPM time limits; prefer webhooks for long jobs.

API surface

Method Endpoint
$fc->jobs->create($params) POST /jobs
$fc->jobs->preflight/previews/fix/validate/optimize($params) POST /jobs/… sugar endpoints
$fc->jobs->retrieve($id) GET /jobs/{id}Data\Job
$fc->jobs->retrieveRuns($id) GET /jobs/{id}?expand=runsData\JobRuns
$fc->jobs->list(['limit', 'next_key']) / ->iterate() GET /jobs (+ auto-pagination)
$fc->jobs->delete($id) DELETE /jobs/{id}
$fc->jobs->waitUntilTerminal($id, $opts) polling helper
$fc->jobs->verify($id, $opts) fulfillment gate → Data\VerifyResult
$fc->uploads->create($pathOrBytesOrStream, $opts) POST /uploads + S3 leg → Data\Upload
$fc->orders->create($orderId, $params) POST /orders/{id}
$fc->workflows/connectors/rules/profiles/optimizePresets->all()/->get($id) read-only library
Webhooks::constructEvent($rawBody, $sig, $secret, $opts) webhook parsing/verification

Client options: new FilecheckClient('sk_…', ['base_url', 'timeout' /* seconds */, 'max_retries', 'http_client' /* PSR-18 */, 'transport']). Secret keys are sk_…; passing a publishable pk_… key throws immediately. Keys are never echoed in full — masked to sk_…abc4.

Responses are readonly value objects (Data\Job, Data\Task, Data\Step, Data\JobRuns, Data\VerifyResult, …) that keep the raw payload in ->raw for forward compatibility.

Webhooks

Signing status: Filecheck's per-job job.completed webhooks are delivered unsigned today; the signature scheme is not finalized. constructEvent is structured so verification becomes the default without breaking changes once it ships. Until then, ['verify' => false] is the explicit, temporary escape hatch.

In Laravel, exempt the route from CSRF and use $request->getContent() for the raw body. Verification uses hash_equals() (constant-time compare).

Errors & retries

Typed exceptions in Filecheck\Exception: AuthenticationException (401/403 — including API Gateway's bare {"message":"Forbidden"} shape), InvalidRequestException (400), NotFoundException (404), RateLimitException (429), ApiException (5xx / non-JSON bodies), ConnectionException (network/timeout), WebhookSignatureException. The API has no machine-readable error codes — branch on exception class, not message text.

Retries: idempotent GETs only (default 2×, full-jitter backoff, Retry-After honored) on 429/502/503/504 and connection failures. POSTs are never auto-retried — the API has no idempotency keys, and a duplicated POST /jobs creates and bills a second job.

Development

Test fixtures in fixtures/ are a synced copy of the shared fixtures in the filecheck-integrations monorepo, so this SDK and filecheck assert against identical payloads.

License

MIT


All versions of filecheck-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.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 filecheck/filecheck-php contains the following files

Loading the files please wait ...