{"id":15470965,"url":"https://github.com/chekun/pzxing","last_synced_at":"2025-03-28T12:44:12.716Z","repository":{"id":28003692,"uuid":"31498049","full_name":"chekun/pzxing","owner":"chekun","description":"a PHP Extension to decode barcode image.","archived":false,"fork":false,"pushed_at":"2015-03-02T03:14:47.000Z","size":187,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T01:13:40.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/chekun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-01T13:58:49.000Z","updated_at":"2015-04-27T12:05:41.000Z","dependencies_parsed_at":"2022-08-03T05:30:25.071Z","dependency_job_id":null,"html_url":"https://github.com/chekun/pzxing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fpzxing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fpzxing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fpzxing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fpzxing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chekun","download_url":"https://codeload.github.com/chekun/pzxing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034279,"owners_count":20712851,"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":[],"created_at":"2024-10-02T02:08:09.607Z","updated_at":"2025-03-28T12:44:12.694Z","avatar_url":"https://github.com/chekun.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pzxing\n========================\n\na PHP extension to decode barcode image.\n\nThis project depends on:\n\n- PHP-CPP  \n    * [Github](https://github.com/CopernicaMarketingSoftware/PHP-CPP)\n    * [Official Site](http://www.php-cpp.com/)\n- ZXing C++ Port\n    * [Github](https://github.com/glassechidna/zxing-cpp)\n\n## How to Install\n\n- Clone the repo\n\n```\ngit clone https://github.com/chekun/pzxing\n```\n\n- Pull the Dependencies\n\n```\ngit submodule init\n```\n\n- Install PHP-CPP\n\n    Follow the instructions [here](http://www.php-cpp.com/documentation/install) to install. [Tag V1.3] is tested.\n\n- Install ZXing C++\n\n    Follow the instructions [here](https://github.com/glassechidna/zxing-cpp/blob/master/README.md) to install\n\n\u003e In order to build php extension for the next step, you must add ```-fPIC``` flag for libzxing before you compile ZXing C++.\n\n- Install Pzxing\n\n```\ncd src\nmake\nmake install\n```\n\n\u003e the default Makefile is targeted for CentOS, which php is installed via yum, you need to edit for you OS before you execute make command.\n\n## How to Use\n\nuse is simple.\n\n```php\n\u003c?php\n\n/**\n * This is a very simple sample code\n * to show you how to use Pzxing\n */\n\nif (! extension_loaded('pzxing')) {\n    echo 'Pzxing is not installed or loaded!';\n    exit(-1);\n}\n\nfunction decode($filename)\n{\n   echo 'Decoding '.$filename.PHP_EOL;\n   try {\n       echo pzxing_decode($filename).PHP_EOL;\n   } catch (Exception $e) {\n       echo $e-\u003egetMessage().PHP_EOL;\n   }\n}\n\ndecode('qrcode.png');\n```\n\nSimply run the following command:\n\n```\nphp sample.php\n```\n\nOnce pzxing is installed correctly, you should be able to see text below in your terminal console.\n\n```\nWelcome to use Pzxing, a simple a PHP extension to decode barcode image.\n```\n\nAnd that's it!\n\n\n### The MIT License (MIT)\n\nCopyright (c) 2014 chekun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekun%2Fpzxing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchekun%2Fpzxing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekun%2Fpzxing/lists"}