{"id":19199584,"url":"https://github.com/reyesoft/crypto-qr","last_synced_at":"2025-05-09T01:23:38.122Z","repository":{"id":50141318,"uuid":"142805580","full_name":"reyesoft/crypto-qr","owner":"reyesoft","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-05T14:08:55.000Z","size":202,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-16T08:38:14.618Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reyesoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-30T00:24:14.000Z","updated_at":"2025-01-16T00:23:51.000Z","dependencies_parsed_at":"2024-05-15T11:34:05.657Z","dependency_job_id":"6a4d44b4-70c8-427c-823b-7c86a83da9a7","html_url":"https://github.com/reyesoft/crypto-qr","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.5625,"last_synced_commit":"573799e325b402159ab2467a8f2ac9ebb852d99b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyesoft%2Fcrypto-qr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyesoft%2Fcrypto-qr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyesoft%2Fcrypto-qr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyesoft%2Fcrypto-qr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reyesoft","download_url":"https://codeload.github.com/reyesoft/crypto-qr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253172233,"owners_count":21865482,"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-11-09T12:27:55.407Z","updated_at":"2025-05-09T01:23:38.091Z","avatar_url":"https://github.com/reyesoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto-QR\n\n*By [Reyesoft](http://reyesoft.com/)*\n\nThis library helps you generate QR codes for Crypto Address. Makes use of [endroid/qr-code](https://github.com/endroid/qr-code). Further extended with Twig extensions, generation routes, a factory and a\n\n## Installation\n\nUse [Composer](https://getcomposer.org/) to install the library.\n\n``` bash\n$ composer require reyesoft/crypto-qr\n```\n\n## Basic usage\n\n```php\nuse Reyesoft\\CryptoQr\\BitcoinQr;\n\n$qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs');\n\nheader('Content-Type: '.$qr-\u003egetQrCode()-\u003egetContentType());\necho $qr-\u003egetQrCode()-\u003ewriteString();\n```\n\n## Advanced usage\n\n```php\nuse Reyesoft\\CryptoQr\\BitcoinQr;\n\n// Create a basic QR code\n$qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs');\n$qr-\u003egetQrCode()-\u003esetSize(300);\n$qr-\u003esetAmount(0.01);\n$qr-\u003esetLabel('Caritas');\n$qr-\u003esetMessage('Donation for project Maria');\n\n// Directly output the QR code\nheader('Content-Type: '.$qr-\u003egetQrCode()-\u003egetContentType());\necho $qr-\u003egetQrCode()-\u003ewriteString();\n\n// Save it to a file\n$qr-\u003egetQrCode()-\u003ewriteFile(__DIR__.'/qrcode.png');\n```\n\n`getQrCode()` return a instance of `Endroid\\QrCode\\QrCode`, then you have more options for your QR on\n[endroid/qr-code](https://github.com/endroid/qr-code/blob/master/README.md#advanced-usage).\n\n\n![bitcoin qr](https://user-images.githubusercontent.com/938894/44047859-1c4b94b0-9f06-11e8-85d7-ea7d3728691c.png \"Bitcoin QR generated with BitcoinQr library\")\n\n\n## Testing\n\n```bash\ncomposer test\nsh autofix.sh\n```\n\n### PHP 7.3\n\n```bash\ndocker run -it --rm --name php73 -e PHP_EXTENSIONS=\"gd\" -v \"$PWD\":/usr/src/app thecodingmachine/php:7.3-v4-cli bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyesoft%2Fcrypto-qr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freyesoft%2Fcrypto-qr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyesoft%2Fcrypto-qr/lists"}