PHPackages                             newman/draugiem-php-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. newman/draugiem-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

newman/draugiem-php-sdk
=======================

Draugiem.lv API library for PHP based on Guzzle.

1.0.0(3y ago)027↓100%MITPHPPHP ^7.4|^8.0

Since Jan 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/edgarsn/draugiem-php-sdk)[ Packagist](https://packagist.org/packages/newman/draugiem-php-sdk)[ RSS](/packages/newman-draugiem-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Draugiem.lv API library for PHP
===============================

[](#draugiemlv-api-library-for-php)

**This is not the official library!**

This is a minor rewrite of original api library using Guzzle client and strict typing.

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

[](#requirements)

- PHP 7.4+

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

[](#installation)

Require the package via Composer:

```
composer require newman/draugiem-php-sdk
```

📖 Documentation &amp; Usage
===========================

[](#book-documentation--usage)

### Make an API call

[](#make-an-api-call)

Response is an implementation of `Psr\Http\Message\ResponseInterface`.

```
$draugiemApi = new \Newman\DraugiemPhpSdk\DraugiemApi(1234, 'app key');
//$draugiemApi = new \Newman\DraugiemPhpSdk\DraugiemApi(1234, 'app key', 'user key');

$response = $draugiemApi->apiCall('authorize', ['code' => 5728195]);

var_dump($response->getStatusCode());
var_dump($response->getBody()->getContents());
```

### Set default Guzzle client options

[](#set-default-guzzle-client-options)

```
$draugiemApi = new \Newman\DraugiemPhpSdk\DraugiemApi(1234, 'app key');
$draugiemApi->setDefaultGuzzleClientOptions([
    'timeout' => 10,
    'headers' => [
        'User-Agent' => 'testing/1.0',
    ],
]);

// make an api call
```

🤝 Contributing
==============

[](#handshake-contributing)

We'll appreciate your collaboration to this package.

When making pull requests, make sure:

- All tests are passing: `composer test`
- Test coverage is not reduced: `composer test-coverage`
- There are no PHPStan errors: `composer phpstan`
- Coding standard is followed: `composer lint` or `composer fix-style` to automatically fix it.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

1200d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f4f2e71ffb2a4a4b9d187ea266897e49c4747b28ca5102fc841c1fda2a2642?d=identicon)[edgarsn](/maintainers/edgarsn)

---

Top Contributors

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

---

Tags

apiclientGuzzlelibrarydraugiemdraugiem.lv

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/newman-draugiem-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/newman-draugiem-php-sdk/health.svg)](https://phpackages.com/packages/newman-draugiem-php-sdk)
```

###  Alternatives

[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

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