nextbox/neos-qrcode
Composer 安装命令:
composer require nextbox/neos-qrcode
包简介
NextBox Neos Qr-Code generator
README 文档
README
This package creates QR-Codes for shortened urls in Neos. Note this package requires nextbox/neos-qrcode.
If the shortened url was changed then the persisted QrCode will be regenerated immediately, the old image will be deleted.
Configuration
Follow the steps in the ReadMe of the package nextbox/neos-qrcode to create your own definition for short url redirections.
Routing
Create a new Routes.yaml with the name of the type that should be used:
# Configuration/Routes.yaml - name: 'Create QR-Code for default' uriPattern: 'qr-code/{shortIdentifier}' # replace `qr-code` with your preferences defaults: '@package': 'NextBox.Neos.QrCode' '@controller': 'QrCode' '@action': 'generateQrCode' 'shortType': 'default' # change this to the name of the type from the settings appendExceedingArguments: true httpMethods: ['GET']
Disable Image Generation from the Backend
If you want to disable the image generation from the backend disable the following settings. After a Node was published the resource will be deleted.
# Settings.yaml NextBox: Neos: QrCode: backend: # Should QR-Codes be generated from the backend after a node publish? generateQrCodesFromBackend: false
Extensibility
Follow the steps in the ReadMe of the package nextbox/neos-qrcode to create your own definition for short url redirections.
The QrCode-Controller uses the identifier and the type to get the shortened url.
统计信息
- 总下载量: 1.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-04-07