🚀 ppicons‑cli
Instant PHPX Icon Generator — Generate fully‑typed PHPX icon components straight from the terminal.
✨ Features
⚡ Bulk install
Use --all
to download >1 500 icons in a single compressed request.
🔧 SVG → PHPX stub
Replaces class
with {$class}
and injects {$attributes}
for Wave reactivity.
📂 Clean paths
Files created under src/Lib/PPIcons/Name.php
with OS‑agnostic separators.
🖥️ Cross‑platform
Runs on Windows, macOS, and Linux equally well.
📦 Installation
# Global
npm install -g ppicons
# Or as a devDependency
npm install -D ppicons
Requires Node 18+ and a Prisma PHP project (PHP 8.2+).
🚀 Quick Start
# Add a single icon
npx ppicons add amphora
# Add multiple icons
npx ppicons add anchor globe rocket
# Add the entire icon set (≈ 1 500+)
npx ppicons add --all
Sample CLI output:
✔ anchor → src/Lib/PPIcons/Anchor.php ✔ globe → src/Lib/PPIcons/Globe.php ✔ rocket → src/Lib/PPIcons/Rocket.php
⚙️ CLI Options
Flag / Argument | Description |
---|---|
<icon…> |
One or more icon names separated by space or comma. |
--all |
Download the full catalogue in one request. |
--out <dir> |
Destination directory inside src/ (default src/Lib/PPIcons ). |
--force |
Overwrite existing files. |
👤 Author & License
ppicons is maintained by The Steel Ninja Code and released under the MIT license.
Questions? thesteelninjacode@gmail.com