From b0502a9823a616079987b1d0488fc07caf2548b5 Mon Sep 17 00:00:00 2001 From: Quentin Stoeckel Date: Tue, 21 Aug 2018 22:27:56 +0200 Subject: [PATCH] Add documentation about PHP integration --- site/getting-started.savvy | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/site/getting-started.savvy b/site/getting-started.savvy index 0e1c251800..96845cd39b 100644 --- a/site/getting-started.savvy +++ b/site/getting-started.savvy @@ -327,6 +327,30 @@ Learn more about custom icons in the [polymer documentation for v0.5](https://ww If you are using [Vue.js](https://vuejs.org/), you can find a collection of the SVG icons as single file components packaged as [vue-material-design-icons](https://www.npmjs.com/package/vue-material-design-icons). +## PHP / Twig + +You can use the `mesavolt/mdi-php` composer package to easily use MDI in your native PHP views: + +```php + + + +``` + +Twig integration is easy too: + +```twig + +``` + +Learn more: [MaterialDesignIcons-PHP](https://github.com/chteuchteu/MaterialDesignIcons-PHP) + ## Ember If you use [Ember.js](https://www.emberjs.com/), you can try to install the addon [ember-mdi](https://github.com/kaermorchen/ember-mdi) ([demo](https://kaermorchen.github.io/ember-mdi/)), which have only SVG icons and based on [mdi-svg](https://github.com/Templarian/MaterialDesign-SVG).