{"id":19850085,"url":"https://github.com/farzai/promptpay-qr-php","last_synced_at":"2025-10-27T05:06:54.900Z","repository":{"id":169380182,"uuid":"644923090","full_name":"farzai/promptpay-qr-php","owner":"farzai","description":"PromptPay QR Code Generator","archived":false,"fork":false,"pushed_at":"2025-06-16T14:37:13.000Z","size":827,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-18T20:03:16.561Z","etag":null,"topics":["payment","promptpay","promptpay-qr","qrcode"],"latest_commit_sha":null,"homepage":"","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/farzai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"parsilver"}},"created_at":"2023-05-24T14:31:24.000Z","updated_at":"2025-05-12T13:40:26.000Z","dependencies_parsed_at":"2024-04-15T15:09:49.311Z","dependency_job_id":"670b0756-6b77-450b-ad68-761c71626a63","html_url":"https://github.com/farzai/promptpay-qr-php","commit_stats":null,"previous_names":["farzai/promptpay-qr-php"],"tags_count":3,"template":false,"template_full_name":"farzai/package-skeleton-php","purl":"pkg:github/farzai/promptpay-qr-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzai%2Fpromptpay-qr-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzai%2Fpromptpay-qr-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzai%2Fpromptpay-qr-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzai%2Fpromptpay-qr-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farzai","download_url":"https://codeload.github.com/farzai/promptpay-qr-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzai%2Fpromptpay-qr-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265327762,"owners_count":23747761,"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":["payment","promptpay","promptpay-qr","qrcode"],"created_at":"2024-11-12T13:24:17.174Z","updated_at":"2025-10-27T05:06:49.866Z","avatar_url":"https://github.com/farzai.png","language":"PHP","funding_links":["https://github.com/sponsors/parsilver"],"categories":["Payments (PromptPay)"],"sub_categories":[],"readme":"# PromptPay QR Code Generator - PHP\n\n\n![Example](assets/example.png)\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/farzai/promptpay.svg?style=flat-square)](https://packagist.org/packages/farzai/promptpay)\n[![Tests](https://img.shields.io/github/actions/workflow/status/farzai/promptpay-qr-php/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/farzai/promptpay-qr-php/actions/workflows/run-tests.yml)\n[![codecov](https://codecov.io/gh/farzai/promptpay-qr-php/branch/main/graph/badge.svg)](https://codecov.io/gh/farzai/promptpay-qr-php)\n[![Total Downloads](https://img.shields.io/packagist/dt/farzai/promptpay.svg?style=flat-square)](https://packagist.org/packages/farzai/promptpay)\n\n\nThis library that allows you to create PromptPay QR codes. \nYou can generate a QR code for receiving payments through PromptPay, which is a popular payment method in Thailand.\n\n\n## Requirements\n\n- PHP 8.0 or higher\n\n## Installation (For CLI)\n\nYou can install the package globally via composer:\n\n```bash\ncomposer global require farzai/promptpay\n```\nMake sure to place Composer's system-wide vendor bin directory in your $PATH so the promptpay executable can be located by your system. \nThis directory exists in different locations based on your operating system;\nhowever, some common locations include:\n\n\nFor macOS\n```\n$HOME/.composer/vendor/bin\n```\n\nFor GNU / Linux Distributions\n```\nGNU / Linux Distributions: $HOME/.config/composer/vendor/bin\n```\n\nFor Windows\n```\n%USERPROFILE%\\AppData\\Roaming\\Composer\\vendor\\bin\n```\n\n## Usage\n\n```bash\n$ promptpay \u003cphone-number\u003e \u003camount\u003e\n```\n\nFor example, to generate a QR code for receiving 100 THB from the phone number 0988888888:\n```bash\n$ promptpay 0988888888 100\n```\n\n\n---\n\n\n## Installation (For PHP Application)\n\n\nYou can install the package via composer:\n\n```bash\ncomposer require farzai/promptpay\n```\n\n## Usage\n\nFor example, to generate a QR code for receiving 100 THB from the phone number 0988888888:\n\n```php\nuse Farzai\\PromptPay\\PromptPay;\n\n$qrCode = PromptPay::create('0988888888', 100);\n\n$imageUri = $qrCode-\u003etoDataUri('png');\n\necho '\u003cimg src=\"' . $imageUri . '\" /\u003e';\n```\n\nOr you can save the QR code to a file:\n\n```php\nuse Farzai\\PromptPay\\PromptPay;\n\n$qrCode = PromptPay::create('0988888888', 100):\n\n$imagePath = $qrCode-\u003etoFile('qr-code.png');\n\necho 'QR code saved to ' . $imagePath;\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/farzai/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [parsilver](https://github.com/parsilver)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzai%2Fpromptpay-qr-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarzai%2Fpromptpay-qr-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzai%2Fpromptpay-qr-php/lists"}