PHPackages                             wirthhorn/daypaio - 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. [API Development](/categories/api)
4. /
5. wirthhorn/daypaio

ActiveLibrary[API Development](/categories/api)

wirthhorn/daypaio
=================

A simple PHP Daypaio API client

17PHP

Since Aug 9Pushed 7y ago2 watchersCompare

[ Source](https://github.com/wirthhorn/daypaio)[ Packagist](https://packagist.org/packages/wirthhorn/daypaio)[ RSS](/packages/wirthhorn-daypaio/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

daypaio
=======

[](#daypaio)

A simple PHP client for the Daypaio API.

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

[](#requirements)

PHP 7

CURL

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
use Daypaio;

$daypaio = new Daypaio([
	'access_token' => 'Enter access token',
	'environment' => 'stage' // valid: stage, production
]);
```

### List interestchannels

[](#list-interestchannels)

```
$daypaio->interestchannel->get();
```

### List shops

[](#list-shops)

```
$daypaio->shops->get();
```

### Create a new consumer

[](#create-a-new-consumer)

```
$daypaio->consumer->post([
	"email" => "foo@bar.com",
  	"t" => "lead",
  	"first_name" => "foo",
  	"interestchannels" => [],
  	"preferredShop" => "",
  	"ext_id" => ""
]);
```

### Search a consumer

[](#search-a-consumer)

```
$daypaio->query->get(
	["email" => "stuber@wirth-horn.de"], // search parameters
	["id", "email"] // fields to return
);
```

### Delete an existing consumer

[](#delete-an-existing-consumer)

```
$daypaio->delete->post("consumer", "5b2a63c2d848af4cc12ecf44");
```

Tests
-----

[](#tests)

1. [Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.
2. Create `tests/DaypaioTestCredentials.php` from `tests/DaypaioTestCredentials.php.dist` and edit it to add your access token.
3. The tests can be executed by running this command from the root directory:

```
$ ./vendor/bin/phpunit
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/802b4ac18adcd953517560be41ca0fd5ec16e7f3be553fb9534c52c58b24ced0?d=identicon)[wirthhorn](/maintainers/wirthhorn)

---

Top Contributors

[![wirthhorn](https://avatars.githubusercontent.com/u/41329045?v=4)](https://github.com/wirthhorn "wirthhorn (4 commits)")[![stuberwh](https://avatars.githubusercontent.com/u/93256829?v=4)](https://github.com/stuberwh "stuberwh (3 commits)")[![stuberm](https://avatars.githubusercontent.com/u/6614585?v=4)](https://github.com/stuberm "stuberm (1 commits)")

### Embed Badge

![Health badge](/badges/wirthhorn-daypaio/health.svg)

```
[![Health](https://phpackages.com/badges/wirthhorn-daypaio/health.svg)](https://phpackages.com/packages/wirthhorn-daypaio)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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