PHPackages                             deutschepost/sdk-api-autocomplete-authentication - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. deutschepost/sdk-api-autocomplete-authentication

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

deutschepost/sdk-api-autocomplete-authentication
================================================

Deutsche Post Direkt Addressfactory Autocomplete Authentication SDK

1.4.0(1y ago)1255.2k↓41.2%2MITPHPPHP ^8.1CI passing

Since Apr 15Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/netresearch/deutschepost-sdk-autocomplete-authentication)[ Packagist](https://packagist.org/packages/deutschepost/sdk-api-autocomplete-authentication)[ RSS](/packages/deutschepost-sdk-api-autocomplete-authentication/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (17)Versions (10)Used By (2)

Deutsche Post Direkt DATAFACTORY Autocomplete 2.0 API Authentication SDK
========================================================================

[](#deutsche-post-direkt-datafactory-autocomplete-20-api-authentication-sdk)

The Autocomplete API makes address input easy for you and your customers with the automatic completion of postal data.

This SDK can be used to generate API tokens for DATAFACTORY Autocomplete web service access. It does not connect to autocompletion endpoints. Instead, the generated token can be used together with a separate frontend library or SDK, for example [@netresearch/postdirekt-autocomplete-sdk](https://www.npmjs.com/package/@netresearch/postdirekt-autocomplete-sdk) or [@netresearch/postdirekt-autocomplete-library](https://www.npmjs.com/package/@netresearch/postdirekt-autocomplete-library).

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

[](#requirements)

### System Requirements

[](#system-requirements)

- 8.1+ with JSON extension

### Package Requirements

[](#package-requirements)

- `php-http/discovery`: Discovery service for HTTP client and message factory implementations
- `php-http/httplug`: Pluggable HTTP client abstraction
- `php-http/logger-plugin`: HTTP client logger plugin for HTTPlug
- `psr/http-client`: PSR-18 HTTP client interfaces
- `psr/http-factory`: PSR-7 HTTP message factory interfaces
- `psr/http-message`: PSR-7 HTTP message interfaces
- `psr/log`: PSR-3 logger interfaces

### Virtual Package Requirements

[](#virtual-package-requirements)

- `psr/http-client-implementation`: Any package that provides a PSR-18 compatible HTTP client
- `psr/http-factory-implementation`: Any package that provides PSR-7 compatible HTTP message factories
- `psr/http-message-implementation`: Any package that provides PSR-7 HTTP messages

### Development Package Requirements

[](#development-package-requirements)

- `nyholm/psr7`: PSR-7 HTTP message factory &amp; message implementation
- `phpunit/phpunit`: Testing framework
- `php-http/mock-client`: HTTPlug mock client implementation
- `phpstan/phpstan`: Static analysis tool
- `rector/rector`: Refactoring tool
- `fig/log-test`: Test utilities for `psr/log`
- `squizlabs/php_codesniffer`: Static analysis tool

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

[](#installation)

```
composer require deutschepost/sdk-api-autocomplete-authentication
```

Uninstallation
--------------

[](#uninstallation)

```
composer remove deutschepost/sdk-api-autocomplete-authentication
```

Testing
-------

[](#testing)

```
composer run test
```

Static code analysis
--------------------

[](#static-code-analysis)

```
composer run phpstan
```

```
composer run lint
```

Features
--------

[](#features)

The Deutsche Post Direkt DATAFACTORY Autocomplete API Authentication SDK supports the following features:

- Create authentication token

### Authentication

[](#authentication)

#### Public API

[](#public-api)

The library's components suitable for consumption are

- service:
    - service factory
    - authentication service
- data transfer objects:
    - authentication token

#### Usage

[](#usage)

```
