# php-qrcoder **Repository Path**: kozyaxbiz/php-qrcoder ## Basic Information - **Project Name**: php-qrcoder - **Description**: 一个基于PHP的二维码与海报生成工具库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-10 - **Last Updated**: 2025-09-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # KozyaxQrcode - QR Code & Poster Generator
## ئۇيغۇرچە تونۇشتۇرۇش بۇ PHP دا يېزىلغان QR كود ۋە پوستېر ياساش كۇتۇپخانىسى. بۇ كۇتۇپخانا ئۇيغۇر تىلىنى ئالاھىدە قوللايدۇ ۋە ئۇيغۇرچە تېكىست بىلەن QR كود ۋە پوستېر ياساشقا ئىمكان بېرىدۇ. ### ئالاھىدىلىكلىرى - QR كود ياساش - پوستېر ياساش - ئۇيغۇر تىلىنى قوللاش - كۆپ خىل فونت قوللاش - سۈرەت ئىشلەش ئىقتىدارى ### ئورنىتىش ```bash composer require kozyaxbiz/kozyax-qrcoder ``` ### ئىشلىتىش مىسالى ```php use KozyaxQrcode\QRcode; use KozyaxQrcode\Uyghur; use KozyaxQrcode\Poster; // QR كود ياساش QRcode::png('سالام ياخشىمۇ', 'qrcode.png'); // ئۇيغۇر تېكىستىنى ئۆزگەرتىش $uyghur = new Uyghur(); $processedText = $uyghur->getUyPFStr('سالام ياخشىمۇ'); // پوستېر ياساش $config = [ 'bg_url' => 'background.jpg', 'text2' => [ [ 'text' => $processedText, 'left' => 100, 'top' => 200, 'fontSize' => 50, 'fontColor' => '255,255,255' ] ] ]; Poster::setConfig($config); Poster::make('poster.png'); ```
## English Introduction A PHP library for generating QR codes and posters with special support for the Uyghur language. This library provides tools to create QR codes and posters with Uyghur text processing capabilities. ### Features - QR Code generation - Poster creation - Uyghur language support - Multiple font support - Image processing capabilities ### Installation ```bash composer require kozyax/kozyax-qrcode ``` ### Usage Example ```php use KozyaxQrcode\QRcode; use KozyaxQrcode\Uyghur; use KozyaxQrcode\Poster; // Generate QR Code QRcode::png('Hello World', 'qrcode.png'); // Process Uyghur text $uyghur = new Uyghur(); $processedText = $uyghur->getUyPFStr('سالام ياخشىمۇ'); // Create poster $config = [ 'bg_url' => 'background.jpg', 'text2' => [ [ 'text' => $processedText, 'left' => 100, 'top' => 200, 'fontSize' => 50, 'fontColor' => '255,255,255' ] ] ]; Poster::setConfig($config); Poster::make('poster.png'); ``` ## Requirements - PHP >= 7.0 - GD Extension ## License This project is licensed under the LGPL-3.0 License. ## Contributing Contributions are welcome! Please feel free to submit a Pull Request. ## Classes ### QRcode Main class for generating QR codes with various customization options. ### Uyghur Handles Uyghur text processing and font rendering for proper display. ### Poster Creates posters with text and image elements, supporting multiple text layers and fonts. ## Fonts The library includes several Uyghur fonts: - UKIJMoyQB.ttf - Nurjanbay TalTal Tom2.0.TTF - LATINWD.TTF - iqbal bulaq.ttf - Uyghur Microsoft Uighur.ttf