lasserafn/php-fik

Generate danish FIK numbers easily.

2.0 2022-11-26 08:15 UTC

This package is auto-updated.

Last update: 2024-10-26 12:08:26 UTC


README

Generate danish FIK (Fælles Indbetalings Kort) numbers from invoice / reminder number.

Build Status Coverage StyleCI Status Total Downloads Latest Stable Version License

Installation

You can install the package via composer:

composer require LasseRafn/php-fik

Usage

use LasseRafn\FIK\FIK;

echo FIK::generate(1003); // 000000000100305
echo FIK::generate(1004, $isReminder = true); // 000000000100438

// Helpers
echo fik_invoice(1003); // 000000000100305
echo fik_reminder(1004); // 000000000100438