alexdbsas/fffeather

simple feather icons integration

Fund package maintenance!
Buymeacoffe

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:fatfree-extension

v1.0.3 2024-02-14 18:54 UTC

This package is auto-updated.

Last update: 2024-04-14 19:16:07 UTC


README

Extension for Fat-free-framework with feather-icons

Usage

Really easy:

index.php:

require 'vendor/autoload.php';
new \alexdbsas\FFfeather;

template.html:

<feather type="activity">

Where "type" is icon name. Don't forget setup css first (or icon would invisible):

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

as in doc

Why use sprites?

Because it's the most resource-efficient method. The browser caches just one single file and rarely makes subsequent requests. Less traffic, fewer requests, less time spent.

Paid work

I accept orders.

Donate