PHPackages                             designerkarten/dwk-api-v1-printjobs-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. designerkarten/dwk-api-v1-printjobs-client-php

ActiveLibrary

designerkarten/dwk-api-v1-printjobs-client-php
==============================================

PHP client for the DWK Printjobs API

v1.0.0(7mo ago)06MITPHPPHP &gt;=8.1

Since Sep 23Pushed 7mo agoCompare

[ Source](https://github.com/designerkarten/dwk-api-v1-printjobs-client-php)[ Packagist](https://packagist.org/packages/designerkarten/dwk-api-v1-printjobs-client-php)[ RSS](/packages/designerkarten-dwk-api-v1-printjobs-client-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

DWK Api Printjobs Client PHP
============================

[](#dwk-api-printjobs-client-php)

This PHP client makes it easy for you as a print partner to access our API. It allows you to a) submit status updates, b) view the status history of a job being produced at your end, and c) retrieve all object data relevant for handling our print jobs – thereby creating a clear, efficient interface for collaboration.

Here’s how easy it is to confirm the acceptance of a print order:

```
$response = $client->confirm(
    8932,           // Our Job ID
    348763328,      // Your Job ID
    119.00          // Your Price
);

```

---

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Setup (.env)](#setup-env)
- [Quickstart](#quickstart)
- [Client Methods](#client-methods)
- [Examples](#examples)
- [Response Envelope](#response-envelope)
- [Error Handling](#error-handling)
- [Security Notes](#security-notes)
- [License](#license)

---

Requirements
------------

[](#requirements)

- **PHP &gt;= 8.1**
- **Composer**
- **Guzzle** (installed as a dependency)
- Access to the **DWK API** (Base URL &amp; Bearer Token)

---

Installation
------------

[](#installation)

As a library:

```
composer require designerkarten/dwk-api-v1-printjobs-client-php
```

Autoloading via **PSR-4**:

- Namespace root: `Designerkarten\DWK\Api\PrintjobsClient`
- Main class: `Designerkarten\DWK\Api\PrintjobsClient\PrintjobsClient`

---

Setup .env
----------

[](#setup-env)

If you want to use environment variables, create a `.env` file (based on `.env.example`):

```
API_URI=
API_TOKEN=

# Just for testing
PRINTJOB_TEST_ID=
PRINTJOB_TEST_YOUR_JOB_ID=
```

**Meaning:**

- `API_URI` – Base URL of the API
- `API_TOKEN` – Bearer token for authentication
- `PRINTJOB_TEST_ID` – Example print job ID for tests/examples
- `PRINTJOB_TEST_YOUR_JOB_ID` – Example `job_id` for status 100

---

Quickstart
----------

[](#quickstart)

```
