PHPackages                             atalanda/signature-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. atalanda/signature-php

ActiveLibrary

atalanda/signature-php
======================

1.0.3-beta(12y ago)01741PHP

Since Jan 31Pushed 12y ago1 watchersCompare

[ Source](https://github.com/atalanda/signature-php)[ Packagist](https://packagist.org/packages/atalanda/signature-php)[ RSS](/packages/atalanda-signature-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (5)Used By (0)

AtalandaSignature-php
=====================

[](#atalandasignature-php)

AtalandaSignature-php provides a simple PHP class that lets you sign requests to the [atalogics API](http://atalogics.com) and verify our callbacks.

Installation
============

[](#installation)

The best way to install the library is by using [Composer](http://getcomposer.org). Add the following to `composer.json` in the root of your project:

```
{
  "require": {
    "atalanda/signature-php": "dev-master"
  }
}
```

Then, on the command line:

```
composer install
```

Use the generated `vendor/autoload.php` file to autoload the library classes.

Usage
=====

[](#usage)

Signing API calls
-----------------

[](#signing-api-calls)

Use this to add a valid signature to the parameter hash that you send to our api.

```
$parameters = array(
  "atalogics" => array()
);
$token = new Atalogics\Signature\Token("[Your API key]", "[Your API secret]");
$request = new Atalogics\Signature\Request("POST", "https://atalogics.com/api/order", $parameters);
$signedParameters = $request->sign($token);

var_dump($signedParameters);
/* => array(5) {
  'atalogics' => array()
  'auth_timestamp' =>
  int(1391167211)
  'auth_key' =>
  string(4) "[Your API key]"
  'auth_signature' =>
  string(64) "552beac4b99949a556b120b7e5f7e22def46f663992a08f0f132ad4afee68b9f"
}*/
```

**Example**

> POST Request to  with the following JSON:

```
{
  "atalogics": {
    "api_key": "5f70fd232454e5c142566dbacc3dec5",
    "offer_id": "33/2014-01-22/1/2014-01-22",
    "expected_fee": 5.59,
    "external_id": "AZDF-234",
    "url_state_update": "https://ihr-server.de/atalogics/callbacks",
    "catch": {
        "name": "Top Fashion Shop",
        "street": "Schneiderstraße 20",
        "postal_code": "5020",
        "city": "Salzburg",
        "phone_number": "123456",
        "email": "info@fashionshop.de"
    },
    "drop": {
        "name": "Marta Musterkundin",
        "street": "Kaufstr. 76",
        "postal_code": "5020",
        "city": "Salzburg",
        "phone_number": "435236",
        "email": "marta@musterkundin.de",
        "extra_services": ["R18"]
    }
  }
}
```

```
$token = new Atalogics\Signature\Token("[Your API key]", "[Your API secret]");
$request = new Atalogics\Signature\Request("POST", "https://atalogics.com/api/orderOffer", $parameters); //  parameters contains a hash representing the json above
$signedParameters = $request->sign($token);
// Now send a post request to our api and set the body to the json encoded version of $signed_parameters
```

If you do a GET Request, you also have to sign all URL parameters. Simply include them in the parameters hash. Send the produced auth parameters along with the other URL parameters, for example:

> [https://atalogics.com/api/status?tracking\_id=42ef32a&amp;api\_key=abcde\*\*&amp;auth\_signature=ab332d2f&amp;auth\_timestamp=123244&amp;auth\_key=abcde](https://atalogics.com/api/status?tracking_id=42ef32a&api_key=abcde**&auth_signature=ab332d2f&auth_timestamp=123244&auth_key=abcde)\*\*

Verifying the signature of our callbacks
----------------------------------------

[](#verifying-the-signature-of-our-callbacks)

Use this to verify the signature of our callbacks.

```
$data = json_decode($body, true); // convert json from post body into php array
$token = new Atalogics\Signature\Token("[Your API key]", "[Your API secret]");
$request = new Atalogics\Signature\Request("POST", "https://your-server.com/callback", $data);
$signatureCheckResult = $request->authenticate($token);

if($signatureCheckResult["authenticated"] === true) {
  // signature is valid
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

4478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee60d0073e6c8178cbf95e3d5eac4d1f23df16b1388db84df9bbc05eee1fd301?d=identicon)[Goltergaul](/maintainers/Goltergaul)

---

Top Contributors

[![Goltergaul](https://avatars.githubusercontent.com/u/34413?v=4)](https://github.com/Goltergaul "Goltergaul (11 commits)")

### Embed Badge

![Health badge](/badges/atalanda-signature-php/health.svg)

```
[![Health](https://phpackages.com/badges/atalanda-signature-php/health.svg)](https://phpackages.com/packages/atalanda-signature-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
