PHPackages                             mehr-it/zbar-php - 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. mehr-it/zbar-php

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

mehr-it/zbar-php
================

zbar-php is a php package that provides an interface to the zbar bar-code reading library.

04241PHP

Since Oct 4Pushed 2y agoCompare

[ Source](https://github.com/mehr-it/zbar-php)[ Packagist](https://packagist.org/packages/mehr-it/zbar-php)[ RSS](/packages/mehr-it-zbar-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

zbar-php
========

[](#zbar-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b7d5c3943dc26152a5d7f95bebde688246de1a4e381b9441c3db863a805b782a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74617266696e2d6c6162732f7a6261722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tarfin-labs/zbar-php)[![GitHub Workflow Status](https://camo.githubusercontent.com/c77dcdd447ae2b2c35d5d2f5977d927786f336eed3e1a5538418632a9fc46359/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f74617266696e2d6c6162732f7a6261722d7068702f74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/c77dcdd447ae2b2c35d5d2f5977d927786f336eed3e1a5538418632a9fc46359/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f74617266696e2d6c6162732f7a6261722d7068702f74657374733f6c6162656c3d7465737473)[![Quality Score](https://camo.githubusercontent.com/0c100a8cc8c3b6b5b90d078c4505984fb39db677586789bfa62d57628512cc80/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74617266696e2d6c6162732f7a6261722d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tarfin-labs/zbar-php)[![Total Downloads](https://camo.githubusercontent.com/7ac4f3ae6e291616299880f85687331d796badb78db5c34e606c00da562cee2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74617266696e2d6c6162732f7a6261722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tarfin-labs/zbar-php)

Introduction
------------

[](#introduction)

zbar-php is a php package that provides an interface to the zbar bar-code reading library.

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

[](#requirements)

You should have [zbar](http://zbar.sourceforge.net/) and [imagemagick](https://imagemagick.org/) installed.

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

[](#installation)

You can install the package via composer:

```
composer require tarfin-labs/zbar-php
```

Usage
-----

[](#usage)

Scanning bar-code or qr-code with zbar is simple.

```
$zbar = new \TarfinLabs\ZbarPhp\Zbar($imagePath);
$code = $zbar->scan();
```

Supported file formats: `pdf`, `jpeg`, `jpg`, `svg` and `gif`.

Here is how to get only the type of bar code.

```
$zbar = new \TarfinLabs\ZbarPhp\Zbar($imagePath);
$type = $zbar->type();

echo $type; // "EAN-13"
```

And this is how you get both.

```
$zbar = new \TarfinLabs\ZbarPhp\Zbar($imagePath);
$barCode = $zbar->decode();

echo $barCode->code(); // "1234567890128"
echo $barCode->type(); // "EAN-13"
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update the tests as appropriate.

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Faruk Can](https://github.com/frkcn)
- [Yunus Emre Deligöz](https://github.com/deligoez)
- [Hakan Özdemir](https://github.com/hozdemir)
- [Turan Karatuğ](https://github.com/tkaratug)
- [All Contributors](../../contributors)

### License

[](#license)

zbar-php is open-sourced software licensed under the MIT license.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 58.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44973729?v=4)[mehr.IT GmbH](/maintainers/mehr-it)[@mehr-it](https://github.com/mehr-it)

---

Top Contributors

[![frkcn](https://avatars.githubusercontent.com/u/374634?v=4)](https://github.com/frkcn "frkcn (27 commits)")[![khalyomede](https://avatars.githubusercontent.com/u/15908747?v=4)](https://github.com/khalyomede "khalyomede (10 commits)")[![StanBarrows](https://avatars.githubusercontent.com/u/10268813?v=4)](https://github.com/StanBarrows "StanBarrows (3 commits)")[![chmgr](https://avatars.githubusercontent.com/u/94837732?v=4)](https://github.com/chmgr "chmgr (2 commits)")[![tkaratug](https://avatars.githubusercontent.com/u/4394344?v=4)](https://github.com/tkaratug "tkaratug (2 commits)")[![its-mieger](https://avatars.githubusercontent.com/u/67654469?v=4)](https://github.com/its-mieger "its-mieger (1 commits)")[![TheLastPastor](https://avatars.githubusercontent.com/u/58549012?v=4)](https://github.com/TheLastPastor "TheLastPastor (1 commits)")

### Embed Badge

![Health badge](/badges/mehr-it-zbar-php/health.svg)

```
[![Health](https://phpackages.com/badges/mehr-it-zbar-php/health.svg)](https://phpackages.com/packages/mehr-it-zbar-php)
```

PHPackages © 2026

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