Installation
Swarm Icons is a framework-agnostic PHP library for rendering SVG icons from local files, pre-downloaded JSON collections, or the live Iconify API, with a single, consistent interface.
Requirements
Section titled “Requirements”- PHP 8.2 or higher
psr/simple-cache: ^3.0
Install via Composer
Section titled “Install via Composer”composer require frostybee/swarm-iconsDownload Icon Sets
Section titled “Download Icon Sets”After installing, download the icon sets you want to use. No Node.js required: the CLI fetches directly from the npm registry in pure PHP:
vendor/bin/swarm-icons json:download mdi tabler heroiconsDownloaded sets are recorded in a swarm-icons.json manifest for easy restoration. See the Icon Set Commands for all options including --all, browsing available sets, and auto-restore via Composer scripts.
What’s Next?
Section titled “What’s Next?”- Quick Start: Set up and render your first icon
- Core Concepts: Understand the provider architecture
- Providers: Explore all four provider types