{"id":29020247,"url":"https://github.com/webdna/craft-barcode","last_synced_at":"2025-06-26T01:04:58.289Z","repository":{"id":37515924,"uuid":"169069954","full_name":"webdna/craft-barcode","owner":"webdna","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-29T15:30:23.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T02:53:15.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T11:41:53.000Z","updated_at":"2023-03-16T20:23:09.000Z","dependencies_parsed_at":"2022-07-12T16:21:02.954Z","dependency_job_id":null,"html_url":"https://github.com/webdna/craft-barcode","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/webdna/craft-barcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcraft-barcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcraft-barcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcraft-barcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcraft-barcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdna","download_url":"https://codeload.github.com/webdna/craft-barcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcraft-barcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338954,"owners_count":23143891,"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":"2025-06-26T01:04:57.048Z","updated_at":"2025-06-26T01:04:58.215Z","avatar_url":"https://github.com/webdna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode plugin for Craft CMS 4.x\n\nGenerate a barcode\n\n## Requirements\n\nThis plugin requires Craft CMS 4.0.0 or later.\n\n## Installation\n\nTo install the plugin, follow these instructions.\n\n1.  Open your terminal and go to your Craft project:\n\n```\n    cd /path/to/project\n```\n\n2.  Then tell Composer to load the plugin:\n\n```\n    composer require webdna/barcode\n```\n\n3.  In the Control Panel, go to Settings → Plugins and click the “Install” button for Barcode.\n\n## Barcode Overview\n\nThis allows the generation of a barcode via a fieldtype, variable or twig filter.\n\n## Barcode Options\n\nAll instances of barcode accept the following parameters:\n\n1. **Code**: number or alphanumeric depending on the barcode type.\n2. **Format**: svg or png (default: svg)\n3. **Type**: see below for all accepted types (default: EAN13)\n4. **Width** factor: this set with width factor of the bars (default: 2)\n5. **Height**: the in pixels of the bars (default: 30)\n6. **Color**: the hex value of the bars (default: '#000000')\n\n## Using Barcode\n\nTwig variables:\n\n```\n    {{ craft.barcode.generate(123456789) }}\n\n    {{ craft.barcode.generate(123456789, 'png', 'EAN13', 2, 30, '#000000') }}\n```\n\nTwig Filters:\n\n```\n    {{ 123456789|barcode }}\n\n    {{ 123456789|barcode('png', 'EAN13', 2, 30, '#000000') }}\n```\n\n## Supported Barcode Types\n\n| Code     | Name                     |\n| -------- | ------------------------ |\n| C39      | CODE_39                  |\n| C39+     | CODE_39_CHECKSUM         |\n| C39E     | CODE_39E                 |\n| C39E+    | CODE_39E_CHECKSUM        |\n| C93      | CODE_93                  |\n| S25      | STANDARD_2_5             |\n| S25+     | STANDARD_2_5_CHECKSUM    |\n| I25      | INTERLEAVED_2_5          |\n| I25+     | INTERLEAVED_2_5_CHECKSUM |\n| C128     | CODE_128                 |\n| C128A    | CODE_128_A               |\n| C128B    | CODE_128_B               |\n| C128C    | CODE_128_C               |\n| EAN2     | EAN_2                    |\n| EAN5     | EAN_5                    |\n| EAN8     | EAN_8                    |\n| EAN13    | EAN_13                   |\n| UPCA     | UPC_A                    |\n| UPCE     | UPC_E                    |\n| MSI      | MSI                      |\n| MSI+     | MSI_CHECKSUM             |\n| POSTNET  | POSTNET                  |\n| PLANET   | PLANET                   |\n| RMS4CC   | RMS4CC                   |\n| KIX      | KIX                      |\n| IMB      | IMB                      |\n| CODABAR  | CODABAR                  |\n| CODE11   | CODE_11                  |\n| PHARMA   | PHARMA_CODE              |\n| PHARMA2T | PHARMA_CODE_TWO_TRACKS   |\n\n## Barcode Roadmap\n\nSome things to do, and ideas for potential features:\n\n-   Release it\n\nBrought to you by [webdna](https://webdna.co.uk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fcraft-barcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdna%2Fcraft-barcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fcraft-barcode/lists"}