PHPackages                             mesavolt/mdi-php - 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. [API Development](/categories/api)
4. /
5. mesavolt/mdi-php

ActiveLibrary[API Development](/categories/api)

mesavolt/mdi-php
================

Easy MDI integration for PHP

v1.2.0(1y ago)827.8k↓45.7%2MITPHPPHP &gt;=8.1

Since Aug 21Pushed 1y ago3 watchersCompare

[ Source](https://github.com/chteuchteu/MaterialDesignIcons-PHP)[ Packagist](https://packagist.org/packages/mesavolt/mdi-php)[ RSS](/packages/mesavolt-mdi-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

MaterialDesign-PHP
==================

[](#materialdesign-php)

Painlessly drive away from using the MaterialDesignIcons webfont!

[![Latest Stable Version](https://camo.githubusercontent.com/48e581b4d62467e466583650855140ec1046ce08e72b1409cbf394bcbd5aca74/68747470733a2f2f706f7365722e707567782e6f72672f6d657361766f6c742f6d64692d7068702f762f737461626c65)](https://packagist.org/packages/mesavolt/mdi-php)[![Build Status](https://camo.githubusercontent.com/3e71d080c37cf7146328dcfee67c3f0a94f8a57d516594ea7c254f3f6d127858/68747470733a2f2f7472617669732d63692e6f72672f636874657563687465752f4d6174657269616c44657369676e49636f6e732d5048502e737667)](https://travis-ci.org/chteuchteu/MaterialDesignIcons-PHP)[![Coverage Status](https://camo.githubusercontent.com/2dacbb8a34bc97ad6d3b28640e613e691864dcb46e9cb532b4340770b2208b3e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636874657563687465752f4d6174657269616c44657369676e49636f6e732d5048502f62616467652e737667)](https://coveralls.io/github/chteuchteu/MaterialDesignIcons-PHP)[![License](https://camo.githubusercontent.com/7a93478e5302561bf9734b20fe8e0f9135ebfa94132e3d6c24748fd96ef9bc55/68747470733a2f2f706f7365722e707567782e6f72672f6d657361766f6c742f6d64692d7068702f6c6963656e7365)](https://packagist.org/packages/mesavolt/mdi-php)

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

[](#installation)

Add this package to your project:

```
composer require mesavolt/mdi-php
```

### Using `@mdi/svg` npm package

[](#using-mdisvg-npm-package)

Add `@mdi/svg` npm package to your project:

```
yarn add @mdi/svg

# or, using npm
npm install @mdi/svg
```

Icons location will be automatically detected.

### Other

[](#other)

If you didn't install the icons pack using one of the documentation methods above, you can globally configure the icons location. This should be done once and before the first usage of the `Mdi::mdi` function.

```
Mdi::withIconsPath(__DIR__.'/../../../node_modules/@mdi/svg/svg/');
```

Usage
-----

[](#usage)

Use it in your views:

```
