PHPackages                             log1x/blade-filetype-icons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. log1x/blade-filetype-icons

ActiveLibrary[Templating &amp; Views](/categories/templating)

log1x/blade-filetype-icons
==========================

A package to easily make use of dmhendricks/file-icon-vectors in your Laravel Blade views.

v1.0.7(1y ago)414.9k↓46%2MITPHPPHP ^8.0CI failing

Since Aug 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Log1x/blade-filetype-icons)[ Packagist](https://packagist.org/packages/log1x/blade-filetype-icons)[ Docs](https://github.com/log1x/blade-filetype-icons)[ RSS](/packages/log1x-blade-filetype-icons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

[![Social Image](https://camo.githubusercontent.com/4a9af2fad756f634d5c7fa87b224db0d295e056f32e49711e458aa4fb1de335d/68747470733a2f2f692e696d6775722e636f6d2f56374246306b752e706e67)](https://camo.githubusercontent.com/4a9af2fad756f634d5c7fa87b224db0d295e056f32e49711e458aa4fb1de335d/68747470733a2f2f692e696d6775722e636f6d2f56374246306b752e706e67)

Blade File Type Icons
=====================

[](#blade-file-type-icons)

[![Latest Stable Version](https://camo.githubusercontent.com/1f8d045259a7cd855b15b2af127d53ba43ce4641633edeba5e015c925450d6fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f626c6164652d66696c65747970652d69636f6e732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1f8d045259a7cd855b15b2af127d53ba43ce4641633edeba5e015c925450d6fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f626c6164652d66696c65747970652d69636f6e732e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/a793ca618ce5c285aa6caa06e05760cf350fc86e8fbd00deaec31fc286ad1b17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f626c6164652d66696c65747970652d69636f6e732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a793ca618ce5c285aa6caa06e05760cf350fc86e8fbd00deaec31fc286ad1b17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f626c6164652d66696c65747970652d69636f6e732e7376673f7374796c653d666c61742d737175617265)[![Build Status](https://camo.githubusercontent.com/7a05eb1a7d6a324c7675107b7bb459f7e6c9755208d8e6bf42f54cbe76de7906/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f626c6164652d66696c65747970652d69636f6e732f6d61696e2e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7a05eb1a7d6a324c7675107b7bb459f7e6c9755208d8e6bf42f54cbe76de7906/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f626c6164652d66696c65747970652d69636f6e732f6d61696e2e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)

A package to easily make use of [file-icon-vectors](https://github.com/dmhendricks/file-icon-vectors) by [Daniel Hendricks](https://github.com/dmhendricks) in your Laravel Blade views.

This package focuses on the `vivid` and `square-o` variations of `file-icon-vectors` as they are able to be made monochrome.

For a full list of available icons, see [the SVG directory](resources/svg) or the [original repo](https://github.com/dmhendricks/file-icon-vectors/tree/master/dist/icons).

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Laravel 9.0 or higher

Installation
------------

[](#installation)

```
$ composer require log1x/blade-filetype-icons
```

Blade Icons
-----------

[](#blade-icons)

Blade File Type Icons uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library.

Configuration
-------------

[](#configuration)

Blade File Type Icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-filetype-icons.php` config file:

```
php artisan vendor:publish --tag=blade-filetype-icons-config
```

Usage
-----

[](#usage)

Icons can be used as self-closing Blade components which will be compiled to SVG icons:

```

```

You can also pass classes to your icon components:

```

```

And even use inline styles:

```

```

Or use the `@svg` directive:

```
@svg('filetype-v-exe', 'w-6 h-6', ['style' => 'color: #555'])
```

The square-o icons can be referenced like this:

```

```

### Raw SVG Icons

[](#raw-svg-icons)

If you want to use the raw SVG icons as assets, you can publish them using:

```
php artisan vendor:publish --tag=blade-filetype-icons --force
```

Then use them in your views like:

```

```

Bug Reports
-----------

[](#bug-reports)

If you discover a bug in Blade File Type Icons, please [open an issue](https://github.com/Log1x/blade-filetype-icons/issues).

Contributing
------------

[](#contributing)

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.

License
-------

[](#license)

Blade File Type Icons is provided under the [MIT License](LICENSE.md).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance44

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~139 days

Total

8

Last Release

444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5745907?v=4)[Brandon](/maintainers/Log1x)[@Log1x](https://github.com/Log1x)

---

Top Contributors

[![Log1x](https://avatars.githubusercontent.com/u/5745907?v=4)](https://github.com/Log1x "Log1x (39 commits)")[![tim-vdv](https://avatars.githubusercontent.com/u/5955291?v=4)](https://github.com/tim-vdv "tim-vdv (1 commits)")

---

Tags

bladefiletypesiconslaravelsvglaravelbladeFile IconsFile Type Icons

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/log1x-blade-filetype-icons/health.svg)

```
[![Health](https://phpackages.com/badges/log1x-blade-filetype-icons/health.svg)](https://phpackages.com/packages/log1x-blade-filetype-icons)
```

###  Alternatives

[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)[afatmustafa/blade-hugeicons

A package to easily make use of Hugeicons(Free version) in your Laravel Blade views.

13129.0k3](/packages/afatmustafa-blade-hugeicons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
