定制 laborb/statamic-favicon-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

laborb/statamic-favicon-generator

Composer 安装命令:

composer require laborb/statamic-favicon-generator

包简介

Generate realfavicon from your Statamic control panel

README 文档

README

Favicon Generator is a Statamic addon that automatically generates all necessary favicons via the realfavicon.net API. Once configured you and your customers can regenerate all favicons with just a single click in the Statamic control panel.

Features

This addon covers all features of the realfavicon.net favicon generator.

  • Web Favicons
  • Mobile Device App Icons
  • Search and Pin Tab Icons
  • Safari and IOS Backgrounds and Margins
  • Android App Icons

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require laborb/statamic-favicon-generator

Then you need to add the {{ favicon }} Antlers Tag between the <head> and </head> tag in your layout.

How to Use

After you installed this addon you'll find options in the Utilities > Favicons section of the Statamic control panel. There you can set up your free realfavicon.net API key and define a master Favicon.

Click Save and generate to save the settings and generate all configured favicons.

How to configure

Publish config file

php artisan vendor:publish --tag=favicon-generator-config

Assets container

You can configure a Statamic assets container to store all generated favicons in config/statamic/favicons.php. If set to null the first asset container found will be used. Statamics default is Assets.

Optional icon generation

By default the addon will only generate standard web favicons. You can configure other icons by uncommenting and editing the option settings in the config/statamic/favicons.php config file after you published it.

You can find all available options here: https://realfavicongenerator.net/api/non_interactive_api

License

The MIT License (MIT). Please see LICENSE.md for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固