PHPackages                             three\_oh\_eight/laravel-payflo - 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. three\_oh\_eight/laravel-payflo

ActiveLibrary[Payment Processing](/categories/payments)

three\_oh\_eight/laravel-payflo
===============================

Laravel SDK for the Payflo invoicing and EU VAT API

v0.1.0(3w ago)03MITPHPPHP ^8.4CI passing

Since May 15Pushed 3w agoCompare

[ Source](https://github.com/Three-Oh-Eight/laravel-payflo)[ Packagist](https://packagist.org/packages/three_oh_eight/laravel-payflo)[ Docs](https://github.com/Three-Oh-Eight/laravel-payflo)[ RSS](/packages/three-oh-eight-laravel-payflo/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Laravel Payflo SDK
==================

[](#laravel-payflo-sdk)

Laravel SDK for the [Payflo](https://payflo.eu) invoicing and EU VAT API.

[![Latest Version](https://camo.githubusercontent.com/89d336c8044c8d23f426c34c33ac4386ad932cf78108dc957d85f9ba5a40d9f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74687265655f6f685f65696768742f6c61726176656c2d706179666c6f2e737667)](https://packagist.org/packages/three_oh_eight/laravel-payflo)[![Tests](https://github.com/Three-Oh-Eight/laravel-payflo/actions/workflows/tests.yml/badge.svg)](https://github.com/Three-Oh-Eight/laravel-payflo/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/dc0e7360bfc74ac8200acef567cfcffea69df760fc3a645d6ab43b89b4ad54d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74687265655f6f685f65696768742f6c61726176656c2d706179666c6f2e737667)](LICENSE)

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

[](#requirements)

- PHP 8.4 or 8.5
- Laravel 12 or 13

Install
-------

[](#install)

```
composer require three_oh_eight/laravel-payflo
```

Configure
---------

[](#configure)

Publish the config file:

```
php artisan vendor:publish --tag=payflo-config
```

Set the environment variables:

```
PAYFLO_ENABLED=true
PAYFLO_API_KEY=your-api-key
PAYFLO_API_URL=https://payflo.eu/api/v1
PAYFLO_CURRENCY_ID=1
PAYFLO_COUNTRY_ID=150
```

Usage
-----

[](#usage)

The `Payflo` facade exposes five resources.

### Customers

[](#customers)

```
use Payflo;

$customerId = Payflo::customers()->getOrCreate(
    externalId: 'crm-1234',
    name: 'Acme B.V.',
    billingEmail: 'billing@acme.example',
);
```

### Invoices

[](#invoices)

```
$invoice = Payflo::invoices()
    ->for($customerId)
    ->createAndFinalize(
        description: 'Annual subscription',
        amountCents: 12000,
    );

// Or build line items by hand:
$draft = Payflo::invoices()->for($customerId)->create(
    lines: [
        ['description' => 'Setup fee', 'quantity' => 1, 'unit_price' => 99.00],
        ['description' => 'Monthly fee', 'quantity' => 3, 'unit_price' => 29.00],
    ],
    notes: 'Q1 services',
);

Payflo::invoices()->finalize($draft['uuid']);
Payflo::invoices()->markAsPaid($draft['uuid']);

$pdf = Payflo::invoices()->downloadPdf($draft['uuid']);
```

### Tax calculation

[](#tax-calculation)

```
$tax = Payflo::tax()->calculate(
    amount: 100.00,
    buyerCountryCode: 'DE',
    customerType: 'business',
    vatNumber: 'DE123456789',
);
```

### VAT validation (VIES, cached for 24h)

[](#vat-validation-vies-cached-for-24h)

```
$result = Payflo::vat()->validate('NL123456789B01');

if ($result['is_valid']) {
    // $result['company_name'], $result['company_address']
}
```

### Credit notes

[](#credit-notes)

```
$creditNote = Payflo::creditNotes()->create(
    invoiceUuid: $invoice['uuid'],
    fullRefund: true,
    reason: 'Customer cancellation',
);
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

See [SECURITY.md](SECURITY.md) for the responsible disclosure process.

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance95

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

25d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e442a1d15a5b64438f3b471acfded80951afb1bed23641cfd80c5254099eab9d?d=identicon)[webpatser](/maintainers/webpatser)

---

Top Contributors

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

---

Tags

laravelsdkinvoicingvattaxpayflo

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/three-oh-eight-laravel-payflo/health.svg)

```
[![Health](https://phpackages.com/badges/three-oh-eight-laravel-payflo/health.svg)](https://phpackages.com/packages/three-oh-eight-laravel-payflo)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)

PHPackages © 2026

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