{"id":25440242,"url":"https://github.com/tarfin-labs/zbar-php","last_synced_at":"2025-08-23T17:42:22.408Z","repository":{"id":43869708,"uuid":"245988659","full_name":"tarfin-labs/zbar-php","owner":"tarfin-labs","description":"zbar-php is a php package that provides an interface to the zbar bar-code reading library.","archived":false,"fork":false,"pushed_at":"2024-07-31T07:58:18.000Z","size":61,"stargazers_count":23,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T10:32:42.698Z","etag":null,"topics":["barcode","php","qrcode","zbar"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarfin-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-09T09:06:07.000Z","updated_at":"2024-07-30T06:29:00.000Z","dependencies_parsed_at":"2024-07-30T09:43:43.581Z","dependency_job_id":"a298046a-7605-484d-b5a4-274991b48e19","html_url":"https://github.com/tarfin-labs/zbar-php","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tarfin-labs/zbar-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarfin-labs%2Fzbar-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarfin-labs%2Fzbar-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarfin-labs%2Fzbar-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarfin-labs%2Fzbar-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarfin-labs","download_url":"https://codeload.github.com/tarfin-labs/zbar-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarfin-labs%2Fzbar-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262924966,"owners_count":23385460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","php","qrcode","zbar"],"created_at":"2025-02-17T11:30:00.793Z","updated_at":"2025-07-01T08:07:50.488Z","avatar_url":"https://github.com/tarfin-labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zbar-php\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tarfin-labs/zbar-php.svg?style=flat-square)](https://packagist.org/packages/tarfin-labs/zbar-php)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tarfin-labs/zbar-php/tests?label=tests)\n[![Quality Score](https://img.shields.io/scrutinizer/g/tarfin-labs/zbar-php.svg?style=flat-square)](https://scrutinizer-ci.com/g/tarfin-labs/zbar-php)\n[![Total Downloads](https://img.shields.io/packagist/dt/tarfin-labs/zbar-php.svg?style=flat-square)](https://packagist.org/packages/tarfin-labs/zbar-php)\n\n## Introduction\nzbar-php is a php package that provides an interface to the zbar bar-code reading library.\n\n## Requirements\n\nYou should have [zbar](http://zbar.sourceforge.net/) and [imagemagick](https://imagemagick.org/) installed.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tarfin-labs/zbar-php\n```\n\n## Usage\n\nScanning bar-code or qr-code with zbar is simple.\n\n``` php\n$zbar = new \\TarfinLabs\\ZbarPhp\\Zbar($imagePath);\n$code = $zbar-\u003escan();\n```\n\nSupported file formats: `pdf`, `jpeg`, `jpg`, `svg` and `gif`.\n\nHere is how to get only the type of bar code.\n\n```php\n$zbar = new \\TarfinLabs\\ZbarPhp\\Zbar($imagePath);\n$type = $zbar-\u003etype();\n\necho $type; // \"EAN-13\"\n```\n\nAnd this is how you get both.\n\n```php\n$zbar = new \\TarfinLabs\\ZbarPhp\\Zbar($imagePath);\n$barCode = $zbar-\u003edecode();\n\necho $barCode-\u003ecode(); // \"1234567890128\"\necho $barCode-\u003etype(); // \"EAN-13\"\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update the tests as appropriate.\n\n### Security\n\nIf you discover any security-related issues, please email development@tarfin.com instead of using the issue tracker.\n\n## Credits\n\n- [Faruk Can](https://github.com/frkcn)\n- [Yunus Emre Deligöz](https://github.com/deligoez)\n- [Hakan Özdemir](https://github.com/hozdemir)\n- [Turan Karatuğ](https://github.com/tkaratug)\n- [All Contributors](../../contributors)\n\n### License\nzbar-php is open-sourced software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarfin-labs%2Fzbar-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarfin-labs%2Fzbar-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarfin-labs%2Fzbar-php/lists"}