PHPackages                             larsemil/swishcoder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. larsemil/swishcoder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

larsemil/swishcoder
===================

Swish QR Code generator

v1.0(3y ago)08MITPHP

Since Dec 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/larsemil/swishcoder)[ Packagist](https://packagist.org/packages/larsemil/swishcoder)[ RSS](/packages/larsemil-swishcoder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Swishcoder
==========

[](#swishcoder)

### Small library to generate qr codes

[](#small-library-to-generate-qr-codes)

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

[](#installation)

Install the package using composer.

`composer require larsemil/swishcoder`

Using it
--------

[](#using-it)

```
use larsemil\SwishCoder\SwishCoder;

$q = new SwishCoder();
        $q->payee('+46762216234')
        ->message([
            'value' => 'Order 3'
        ]) //message is optional
        ->amount(['value'=> 100]); //amount is optional

        $data = $q->get(); //gets the qrcode as image/png

```

API
---

[](#api)

MethodParameterDescriptionpayee()string with phonenumberThe number to send money toamount()array with parametersSee [Api reference](https://developer.swish.nu/api/qr-codes/v2)message()array with parametersSee [Api reference](https://developer.swish.nu/api/qr-codes/v2)size()integerThe height and width of the returned image, measured in pixels. Must be between 1 and 2000. Defaults to 1000.border()integerA number representing the size of the white border around the QR code. Measured approximately in the width of a single module (dot). Must be between 0 and 10. Defaults to 4.get()nullGet the actual data from swish

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1259d ago

### Community

Maintainers

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

---

Top Contributors

[![larsemil](https://avatars.githubusercontent.com/u/690092?v=4)](https://github.com/larsemil "larsemil (1 commits)")

### Embed Badge

![Health badge](/badges/larsemil-swishcoder/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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