antonchaikin/f3-material-icons

Material Icons plugin for Fat-Free Framework (F3)

Maintainers

👁 AppTor

Package info

github.com/AntonSeagull/f3-material-icons

pkg:composer/antonchaikin/f3-material-icons

Statistics

Installs: 19

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2025-05-29 12:24 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT d1d42bd1bc931ba4f57b92e1a08c509f3e21bc7f

This package is auto-updated.

Last update: 2026-06-29 02:27:01 UTC


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