antonchaikin/f3-material-icons 问题修复 & 功能扩展

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

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

antonchaikin/f3-material-icons

最新稳定版本:v1.0.2

Composer 安装命令:

composer require antonchaikin/f3-material-icons

包简介

Material Icons plugin for Fat-Free Framework (F3)

README 文档

README

A simple and efficient Material Icons plugin for Fat-Free Framework (F3).

This plugin allows you to embed SVG icons directly in your F3 views using a simple $f3->icon('name') syntax and also provides a built-in browser to preview all available icons.

🚀 Installation

Install via Composer:

composer require antonchaikin/f3-material-icons

📦 Usage

Register the Plugin

In your F3 bootstrap file (index.php):

use F3MaterialIcons\MaterialIcons;

MaterialIcons::register();

Get an Icon Inline

echo $f3->icon('home'); // returns <svg>...</svg> content

Icons are looked up in the /icons directory located next to the plugin source.

Browse All Icons

Add a route:

$f3->route('GET /icons-browser', 'F3MaterialIcons\\MaterialIcons::browser');

Navigate to /icons-browser in your browser to preview all available icons.

🧠 Features

  • ✅ Simple $f3->icon('name') integration
  • 🔍 Visual icon browser (/icons-browser)
  • ⚡ Fast inline rendering of SVGs
  • 🗂️ Easy to extend or customize

🗂 Directory Structure

f3-material-icons/
├── src/
│   └── MaterialIcons.php
│   └── icons/
│       ├── home.svg
│       ├── settings.svg
│       └── ...

📝 License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-28