antonchaikin / f3-material-icons
Material Icons plugin for Fat-Free Framework (F3)
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/antonchaikin/f3-material-icons
Requires
- php: >=7.4
- bcosca/fatfree: *
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