Download the PHP package sparrowhawk-labs/pinion-icons without Composer

On this page you can find all versions of the php package sparrowhawk-labs/pinion-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pinion-icons

Pinion Icons

Latest Version on Packagist Total Downloads

A unified icon system for Laravel Blade. One <x-i> component, four built-in libraries, and a swap-the-variant trick that lets you switch between Solar line art, Fluent emoji, and 8-bit pixel art without changing the call site.

By Sparrowhawk Labs — part of the pinion-* series.

Features

Installation

Laravel auto-discovers the service provider. No further wiring needed.

Quick start

Component API

Prop Type Default Description
type string required Icon concept name (e.g., home, heart, alt-arrow-right)
variant string bold-duotone Stroke style (bold, linear, …) or virtual (emoji, pixel)
library string solar Icon library (solar, solar-extra, fluent-emoji, pixelarticons)
auto bool false Opt-in: track the ancestor data-tune and swap the Solar/pixel variant automatically (see below). variant still wins if both are set.
class string — CSS classes applied to the rendered <svg>

Any other HTML attribute passes through to the rendered <svg>.

Tune-reactive icons (auto)

<x-i type="pen" auto /> renders a Light-DOM <pn-icon> Web Component instead of a static <svg>. It reads the nearest ancestor data-tune (falling back to <html>) and picks the variant from a fixed, user-confirmed map — no config, no override:

tune variant tune variant
default outline editorial line-duotone
tech outline luxury line-duotone
minimal linear soft bold-duotone
sharp linear pixel pixel (pixelarticons)
corporate bold draft broken
brutal bold

The first paint is SSR-only (the initial <svg> for the default tune's outline variant is inlined server-side, exactly like a non-auto <x-i>) — JS is only needed to change variant when data-tune changes on an ancestor. A single module-level MutationObserver (not one per icon) re-syncs every mounted auto icon when it fires.

Wiring it up (host app, one-time): bundle the SVG data for the icon names you actually use, then register it before first paint:

bin/build-icon-data.mjs is a dependency-free Node script (no npm install needed) — purge-style: it only bundles the Solar stroke variants the tune map can request (bold-duotone / linear / bold / outline / line-duotone / broken) plus the pixelarticons glyph, for exactly the icon names you list. Re-run it whenever you add an auto icon with a name that isn't bundled yet. No runtime HTTP — everything ships in your own JS bundle.

Libraries

Library Style currentColor Notes
solar 6 variants × 1,234 concepts ✓ Default. The full Solar Icon Set.
solar-extra 6 variants ✓ Plain close / check / plus / minus that Solar wraps in rings.
fluent-emoji single (flat) ✗ (baked colors) Microsoft Fluent Emoji, Flat colour.
pixelarticons single (8-bit) ✓ Pixelarticons v1.8.1, 24×24 monochrome.

Fluent Emoji and Pixelarticons resolve all 1,234 Solar concept names — many via semantic mapping (e.g., accessibility → emoji wheelchair_symbol, pixel human). Native slug names (red_heart, close) also work.

Configuration

Defaults can be overridden via .env:

To add libraries, publish the config:

Then edit config/icons.php. See REFERENCE.md for the full library schema and synthetic-variant fallback rules.

Installing icon files locally (optional)

By default, the component reads SVGs directly from the vendor directory. If you want them inside your project (for build pipelines or CDN serving), publish them:

Add --claude to also write a ## pinion-icons reference block into your project's CLAUDE.md.

Documentation

Pinion series

Pinion Icons is part of the Sparrowhawk Labs pinion-* series — Laravel UI plugins built around shared design language. A pinion is a primary flight feather: the stroke that lets a hawk steer.

License

MIT — see LICENSE.

Credits


All versions of pinion-icons with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sparrowhawk-labs/pinion-icons contains the following files

Loading the files please wait ...