PHPackages                             sdavicco/qr-code-generator - 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. sdavicco/qr-code-generator

ActiveLibrary

sdavicco/qr-code-generator
==========================

A simple PHP library to generate QR codes without external dependencies

1.0.0(1y ago)03MITPHPPHP &gt;=8.1

Since Apr 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gilmour22/qr-code-generator)[ Packagist](https://packagist.org/packages/sdavicco/qr-code-generator)[ RSS](/packages/sdavicco-qr-code-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

QR Code Generator
=================

[](#qr-code-generator)

A simple PHP library to generate QR codes without external dependencies. Supports PNG and SVG output formats with full Reed-Solomon error correction.

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

[](#installation)

Install via Composer:

```
composer sdavicco/qr-code-generator
```

Usage
-----

[](#usage)

```
use SDAVICCO\QRCode\QRCodeGenerator;

$data = "https://example.com";
$generator = new QRCodeGenerator($data, 300, QRCodeGenerator::EC_LEVEL_M, QRCodeGenerator::FORMAT_PNG);
$image = $generator->generate();

// Output PNG
header('Content-Type: image/png');
echo $image;

// For SVG, use:
$generator = new QRCodeGenerator($data, 300, QRCodeGenerator::EC_LEVEL_M, QRCodeGenerator::FORMAT_SVG);
$image = $generator->generate();
header('Content-Type: image/svg+xml');
echo $image;
```

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

[](#requirements)

- PHP &gt;= 8.1

License
-------

[](#license)

MIT License

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

384d ago

### Community

Maintainers

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

---

Top Contributors

[![gilmour22](https://avatars.githubusercontent.com/u/21151476?v=4)](https://github.com/gilmour22 "gilmour22 (3 commits)")

### Embed Badge

![Health badge](/badges/sdavicco-qr-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/sdavicco-qr-code-generator/health.svg)](https://phpackages.com/packages/sdavicco-qr-code-generator)
```

PHPackages © 2026

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