PHPackages                             gansel-rechtsanwaelte/lf-api - 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. gansel-rechtsanwaelte/lf-api

Abandoned → [q-delivery/lf-api](/?search=q-delivery%2Flf-api)Library[API Development](/categories/api)

gansel-rechtsanwaelte/lf-api
============================

API for LF

2.6.2(4y ago)216.9kMITPHPPHP &gt;=7.3CI failing

Since Mar 9Pushed 4y ago3 watchersCompare

[ Source](https://github.com/q-delivery/lf-api)[ Packagist](https://packagist.org/packages/gansel-rechtsanwaelte/lf-api)[ RSS](/packages/gansel-rechtsanwaelte-lf-api/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (1)Dependencies (13)Versions (37)Used By (0)

lf-api
======

[](#lf-api)

BranchPHPCode Coverage`master`[![PHP](https://github.com/gansel-rechtsanwaelte/lf-api/workflows/PHP/badge.svg?branch=master)](https://github.com/gansel-rechtsanwaelte/lf/actions)[![Code Coverage](https://camo.githubusercontent.com/b753d72e7ca084363c4952fb6bdb55c2081bf1cb986870f8524f0657caa2d257/68747470733a2f2f636f6465636f762e696f2f67682f67616e73656c2d726563687473616e7761656c74652f6c662d6170692f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/gansel-rechtsanwaelte/lf)`develop`[![PHP](https://github.com/gansel-rechtsanwaelte/lf-api/workflows/PHP/badge.svg?branch=develop)](https://github.com/gansel-rechtsanwaelte/lf/actions)[![Code Coverage](https://camo.githubusercontent.com/87d44e75a1d16598462644afa55d34c7e0ae29005fe2433b3cbb56e85f9f9ae7/68747470733a2f2f636f6465636f762e696f2f67682f67616e73656c2d726563687473616e7761656c74652f6c662d6170692f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/gansel-rechtsanwaelte/lf)Usage
-----

[](#usage)

### Setup

[](#setup)

```
use Gansel\LF\Api\FallApi;
use Symfony\Component\HttpClient\HttpClient;

$baseUri = 'https://....';
$username = '...';
$password = '...';

$client = HttpClient::create([
    'auth_basic' => [$username, $password],
    'max_duration' => 0,
]);

$fallApi = new FallApi($baseUri, $client);
```

### Create Fall

[](#create-fall)

```
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);
$fallApi->create($payload);
```

### Get Fall

[](#get-fall)

```
use Gansel\LF\Api\Domain\Value\Fall\FallUuid;
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);

$fallApi->get(
    FallUuid::fromString('123-456-789'), // the Fall UUID
);
```

### Update Fall

[](#update-fall)

**Only works before calling a Transition!**

```
use Gansel\LF\Api\Domain\Value\Fall\FallUuid;
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);

$fallApi->update(
    FallUuid::fromString('123-456-789'), // the Fall UUID
    [
        'field' => 'value',
        // ...
    ]
);
```

### Set Leadsale values

[](#set-leadsale-values)

```
use Gansel\LF\Api\Domain\Value\Fall\FallUuid;
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);

$now = new DateTime();

$fallApi->updateLeadsaleValues(
    FallUuid::fromString('123-456-789'), // the Fall UUID
    true, // or false, the decision by the User
    $now, // a \DateTimeInterface, when the decision was made by the user
    'Please contact him on monday 6pm', // a string, when is the best time to contact the user, or null
    '030 / 123456789', // a string, with a local phone number, or null
    '0175 / 123456789', // a string, with a mobile phone number, or null
);
```

### Upload File to Fall

[](#upload-file-to-fall)

```
use Gansel\LF\Api\Domain\Value\Fall\FallUuid;
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);

$fallApi->uploadFile(
    FallUuid::fromString('123-456-789'), // the Fall UUID
    '/var/test/testfile.txt',            // use the absolute filepath
    'Fahrzeugschein',                    // a prefix which can be added to the filename
    false                                // wether this file should be marked as new in LF or not
);
```

### Apply Transition

[](#apply-transition)

```
use Gansel\LF\Api\Domain\Value\Fall\FallUuid;
use Gansel\LF\Api\FallApi;

$fallApi = new FallApi(/* ... */);

$fallApi->applyTransition(
    FallUuid::fromString('123-456-789'), // the Fall UUID
    'einreichen'                         // the transition which should be applied
);
```

---

**NOTE**

`create()` and `get()` already return a `FallUuid` which can be used to upload a file or apply a transition!

---

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80.8% 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 ~18 days

Recently: every ~4 days

Total

34

Last Release

1666d ago

Major Versions

1.9.1 → 2.0.02020-04-22

PHP version history (2 changes)1.0.0PHP ^7.3

2.3.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cabc9efd157e2b47aa5aa9830180f5ebd07813cc3e93ff1a9993b2c3d264909?d=identicon)[localheinz](/maintainers/localheinz)

![](https://www.gravatar.com/avatar/4b0aaaa249bfef22b586e459b3fd8687e58644fb6223ffe8e4e709ac05be704d?d=identicon)[OskarStark](/maintainers/OskarStark)

---

Top Contributors

[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (42 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gansel-rechtsanwaelte-lf-api/health.svg)

```
[![Health](https://phpackages.com/badges/gansel-rechtsanwaelte-lf-api/health.svg)](https://phpackages.com/packages/gansel-rechtsanwaelte-lf-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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