承接 romulinux/favicon-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

romulinux/favicon-generator

Composer 安装命令:

composer require romulinux/favicon-generator

包简介

Image and html generator for favicon and app icon on your site.

README 文档

README

Image and html generator for favicon and app icon on your site.

requirements:

php 7.2 and php7.2-gd

usage:

Local php server:

php -S localhost:8888 # access this link on your browser

In your project, include this code in your composer.json:

"minimum-stability": "dev",
"prefer-stable": true,
"require": {
  "romulinux/favicon-generator": ">=1.0.0"
}

Calling in your php project:

<?php
  use Favicon\FaviconImageGenerator as FaviconImageGenerator;
  use Favicon\FaviconHtmlGenerator as FaviconHtmlGenerator;

  $applicationName = 'Teste';
  $faviconDir = 'assets/icons/';
  $msapplicationTileColor = '#FFF';
  $themeColor = '#FFF';
  $titleBarColor = '#FFF';

  echo '<head>';
    $faviconHtmlGenerator = new FaviconHtmlGenerator($applicationName, $faviconDir, $msapplicationTileColor, $themeColor, $titleBarColor);
    echo $faviconHtmlGenerator->generate();
  echo '</head>';
?>

And for generate the favicon and app images in dir 'assets/icons' write this:

<?php
  $faviconImageGenerator = new FaviconImageGenerator($faviconDir, 'assets/img/favicon.png', 'assets/img/favicon.png');
  $faviconImageGenerator->generate();
?>
This code will generate the images using the 'assets/img/favicon.png' image and put the output in dir 'assets/icons/'

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2018-12-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固