PHPackages                             einfacharchiv/extractor - 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. [Payment Processing](/categories/payments)
4. /
5. einfacharchiv/extractor

ActiveLibrary[Payment Processing](/categories/payments)

einfacharchiv/extractor
=======================

Extract billing data from text

v2.2.0(2mo ago)11.2kMITPHPPHP ^7.0 || ^8.0

Since Aug 16Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/einfachArchiv/extractor)[ Packagist](https://packagist.org/packages/einfacharchiv/extractor)[ Docs](https://github.com/einfachArchiv/extractor)[ RSS](/packages/einfacharchiv-extractor/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

Extract billing data from text
==============================

[](#extract-billing-data-from-text)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package provides an easy way to extract billing data from text. We use it in our German SaaS product [einfachArchiv](https://www.einfacharchiv.com).

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

[](#requirements)

PHP 7.0 and later.

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

[](#installation)

You can install this package via [Composer](http://getcomposer.org/). Run the following command:

```
composer require einfacharchiv/extractor
```

Usage
-----

[](#usage)

Extracting billing data is easy.

```
$text = findAmounts();
$extractor->findTotalAmounts();
$extractor->findNetAmounts();
$extractor->findTaxAmounts();
$extractor->findBics();
$extractor->findCompanyNames();
$extractor->findCompanyRegisterIds();
$extractor->findCustomerIds();
$extractor->findDates();
$extractor->findInvoiceDates();
$extractor->findDueDates();
$extractor->findEmails();
$extractor->findIbans();
$extractor->findInvoiceIds();
$extractor->findPaymentReferences();
$extractor->findTaxNumbers();
$extractor->findTypes();
$extractor->findVatNumbers();
$extractor->findWebsites();
```

If no matches were found, the methods return an empty array.

The method `->findAmounts()` returns an array like this one:

```
[
    [
        'amount' => 119,
        'currency' => 'EUR',
    ],
    ...
];
```

All amounts are returned as `floats`.

The method `->findCompanyRegisterIds()` returns an array like this one:

```
[
    [
        'area' => 'HRB',
        'number' => '123456',
        'office' => 'Stuttgart',
    ],
    ...
];
```

The invoice date is, if present, a valid date and can be used like this:

```
$dates = $extractor->findDates();

\Carbon\Carbon::parse($dates[0])->toDateString();
```

The method `->findTaxNumbers()` returns an array like this one:

```
[
    [
        'number' => '12345/67890',
        'state' => 'BW',
    ],
    ...
];
```

The method `->findTypes()` returns the following types:

```
[
    'invoice',
    'credit-note',
    'reminder',
    'salary-statement',
    'bank-statement',
    'contract',
    'balance-sheet',
    'tax-assessment-note',
];
```

Contributing
------------

[](#contributing)

Contributions are **welcome**.

We accept contributions via Pull Requests on [Github](https://github.com/einfachArchiv/extractor).

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improvement? Feel free to [create an issue on GitHub](https://github.com/einfachArchiv/extractor/issues), we'll try to address it as soon as possible.

If you've found a security issue, please email  instead of using the issue tracker.

**Happy coding**!

Credits
-------

[](#credits)

- [Philip Günther](https://github.com/Pag-Man)
- [All Contributors](https://github.com/einfachArchiv/extractor/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance84

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

Established project with proven stability

 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 ~257 days

Recently: every ~658 days

Total

12

Last Release

83d ago

Major Versions

v1.2.3 → v2.0.02024-06-22

PHP version history (3 changes)v1.0PHP ^7.0

v1.1.2PHP ~7.0

v2.0.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7369d061aa626fd1c448315ca5e53d01daf448c6e5f37be95a46946cda406e8e?d=identicon)[Pag-Man](/maintainers/Pag-Man)

---

Top Contributors

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

---

Tags

data-extractionphptextphpbillingdataextractiontexteinfachArchiv

### Embed Badge

![Health badge](/badges/einfacharchiv-extractor/health.svg)

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

###  Alternatives

[messagecloud/gateway-php

A PHP library to help you integrate the MessageCloud Gateway.

137.2k](/packages/messagecloud-gateway-php)

PHPackages © 2026

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