{"id":16673082,"url":"https://github.com/ph-7/qrcode-generator-php-class","last_synced_at":"2025-04-07T05:14:29.164Z","repository":{"id":5769610,"uuid":"6982890","full_name":"pH-7/QRCode-Generator-PHP-Class","owner":"pH-7","description":":rocket: QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API","archived":false,"fork":false,"pushed_at":"2021-07-20T23:24:25.000Z","size":48,"stargazers_count":102,"open_issues_count":2,"forks_count":54,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T04:06:18.020Z","etag":null,"topics":["generator","php","php-qr","php-qrcode","qr-code","qrcode","qrcode-generator","qrcode-php","vcard"],"latest_commit_sha":null,"homepage":"http://github.com/pH-7/QRCode-Generator-PHP-Class","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-03T13:45:51.000Z","updated_at":"2025-01-07T09:41:46.000Z","dependencies_parsed_at":"2022-08-06T19:00:50.024Z","dependency_job_id":null,"html_url":"https://github.com/pH-7/QRCode-Generator-PHP-Class","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FQRCode-Generator-PHP-Class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FQRCode-Generator-PHP-Class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FQRCode-Generator-PHP-Class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FQRCode-Generator-PHP-Class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/QRCode-Generator-PHP-Class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":["generator","php","php-qr","php-qrcode","qr-code","qrcode","qrcode-generator","qrcode-php","vcard"],"created_at":"2024-10-12T12:24:31.858Z","updated_at":"2025-04-07T05:14:29.141Z","avatar_url":"https://github.com/pH-7.png","language":"PHP","readme":"# 🚀 PHP QR Code 📱\n\n[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/pH-7/QRCode-Generator-PHP-Class/badges/quality-score.png?s=e469a64a9ac43a7b4233f5813a7078b08a5b6956)](https://scrutinizer-ci.com/g/pH-7/QRCode-Generator-PHP-Class/)\n\n\n## Description\n\n**QRCode PHP class** allows you to easily generate a simple **QR code** using **vCard** 4.0 and the Google Chart API.\n\nHere are two videos explaining QR code: http://www.youtube.com/watch?v=B3lrcOhmp9g and http://www.youtube.com/watch?v=IphTJHiKGos\n\n\n## Composer Installation\n\n You can add it easily in your project by using [Composer](https://getcomposer.org/).\n\n\n```bash\n$ composer require ph-7/qrcode-generator-php-class\n ```\n\nThen, include Composer's autoload\n\n```PHP\nrequire_once 'vendor/autoload.php';\n```\n\n## Manual Installation\n\nIf you don't use Composer, you can install it without Composer by simply including the class\n\n```PHP\nrequire 'QRCode.class.php';\n```\n\n\n## How to Use\n\nHere's a basic example:\n\n```php\n/**\n * If you have PHP 5.4 or higher, you can instantiate the object like this:\n * (new QRCode)-\u003efullName('...')-\u003e... // Create vCard Object\n */\n$oQRC = new QRCode; // Create vCard Object\n$oQRC-\u003efullName('Pierre-Henry Soria') // Add Full Name\n    -\u003enickName('PH7') // Add Nickname\n    -\u003egender('M') // Add Gender\n    -\u003eemail('ph7software@gmail.com') // Add Email Address\n    -\u003eimpp('phs_7@aol.com') // Add Instant Messenger\n    -\u003eurl('http://ph-7.github.com') // Add URL Website\n    -\u003enote('Hello to all! I am a web developer. As hobbies I like climbing and swimming ...') // Add Note\n    -\u003ecategories('developer,designer,climber,swimmer') // Add Categories\n    -\u003ephoto('http://files.phpclasses.org/picture/user/1122955.jpg') // Add Avatar\n    -\u003elang('en-US') // Add Language\n    -\u003efinish(); // End vCard\n\n// echo '\u003cp\u003e\u003cimg src=\"' . $oQRC-\u003eget(300) . '\" alt=\"QR Code\" /\u003e\u003c/p\u003e'; // Generate and display the QR Code\n$oQRC-\u003edisplay(300); // Set size and display QR Code default 150px\n```\n\nYou also have a sample file here: http://github.com/pH-7/QRCode-Generator-PHP-Class/blob/master/example.php\n\n\n## Server Requirements\n\nPHP 5.2.4 or higher.\n\n\n## Author\n\n[Pierre-Henry Soria](http://pierrehenry.be)\n\n\n## Contact\n\nContact me at: *pierrehenrysoria [[AT]] gmail [[D0T]] com*\n\n\n## License\n\n[General Public License 3](http://www.gnu.org/licenses/gpl.html) or later; See the LICENSE.txt file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fqrcode-generator-php-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fqrcode-generator-php-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fqrcode-generator-php-class/lists"}