kozyaxbiz/php-qrcoder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kozyaxbiz/php-qrcoder

最新稳定版本:v1.0.1

Composer 安装命令:

composer require kozyaxbiz/php-qrcoder

包简介

A PHP library for generating QR codes and posters with Uyghur language support

README 文档

README

## ئۇيغۇرچە تونۇشتۇرۇش بۇ 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

composer require kozyax/kozyax-qrcode

Usage Example

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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-09-10