Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

tarfin-labs/zbar-php

Repository files navigation

Latest Version on PackagistGitHub Workflow StatusQuality ScoreTotal Downloads

Introduction

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

Requirements

You should havezbar andimagemagick installed.

Installation

You can install the package via composer:

composer require tarfin-labs/zbar-php

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 andgif.

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

composertest

Changelog

Please seeCHANGELOG for more information what has changed recently.

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

If you discover any security-related issues, please emaildevelopment@tarfin.com instead of using the issue tracker.

Credits

License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp