PHPackages                             fraktjakt/library - 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. fraktjakt/library

ActiveLibrary[API Development](/categories/api)

fraktjakt/library
=================

PHP integration library for Fraktjakt API.

21.3k1PHP

Since Nov 7Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Fraktjakt/php-library)[ Packagist](https://packagist.org/packages/fraktjakt/library)[ RSS](/packages/fraktjakt-library/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Fraktjakt PHP Library
=====================

[](#fraktjakt-php-library)

This is a PHP library for machine-to-machine communication with Fraktjakt.

Use With Composer
-----------------

[](#use-with-composer)

(We will just assume you have composer installed for your project)

1. Open a command-line interface and navigate to your project folder.
2. Run the following command in your command-line interface:

    composer require fraktjakt/library:dev-master

Composer will now autoload Client.php when you create the class object:

```
    $fraktjakt = new \Fraktjakt\Client();

```

Use Without Composer
--------------------

[](#use-without-composer)

Manually include Client.php in your script before initiating the client.

```
    require_once 'path/to/Client.php';

    $fraktjakt = new \Fraktjakt\Client();

```

Example Code (More examples in the examples/ folder)
----------------------------------------------------

[](#example-code-more-examples-in-the-examples-folder)

```
  require_once 'path/to/Client.php';

  try {

    $fraktjakt = new \Fraktjakt\Client();

    $fraktjakt->setConsignorId(12345)
              ->setConsignorKey('0123456789abcdef0123456789abcdef')
              ->setTestMode(true);

    $request = array(
      // ...
    );

    $result = $fraktjakt->Query($request);

  } catch(Exception $e) {
    die('An error occured: '. $e->getMessage() . PHP_EOL . PHP_EOL
      . $fraktjakt->getLastLog());
  }

```

Testing
-------

[](#testing)

1. Make sure you have PHP installed on your machine.
2. Open a command-line interface and navigate to the examples/ folder.
3. Run the following command in your command-line interface:

    php ExampleFile.php

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance43

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/359192?v=4)[T. Almroth](/maintainers/timint)[@timint](https://github.com/timint)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fraktjakt-library/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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