PHPackages                             evheniy/materialize-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. evheniy/materialize-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

evheniy/materialize-bundle
==========================

The MaterializeBundle adds the ability to add latest Materialize to your application.

1.2.0(9y ago)68.2k2MITPHPPHP &gt;=5.5.9

Since Aug 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/evheniy/MaterializeBundle)[ Packagist](https://packagist.org/packages/evheniy/materialize-bundle)[ RSS](/packages/evheniy-materialize-bundle/feed)WikiDiscussions master Synced 1mo ago

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

MaterializeBundle
=================

[](#materializebundle)

[![knpbundles.com](https://camo.githubusercontent.com/2f613a345bf9185953c17e6b25e22048d750216f870d8c771dd34a72608b1008/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f4d6174657269616c697a6542756e646c652f6261646765)](http://knpbundles.com/evheniy/MaterializeBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/0b4daa8887b87637c8af011adc2702ff849178243a35bbd0fdbd508af0758194/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6d6174657269616c697a652d62756e646c652f762f737461626c65)](https://packagist.org/packages/evheniy/materialize-bundle) [![Total Downloads](https://camo.githubusercontent.com/1b0e43d3a915a3e15f9dcb7009197de945f817a5a33f10edc16c4a8cf8d6715f/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6d6174657269616c697a652d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/evheniy/materialize-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/a9cc8aebacef393a66c21e9f6fa725f409225d1972b06e31477c71c3d6129e7f/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6d6174657269616c697a652d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/evheniy/materialize-bundle) [![License](https://camo.githubusercontent.com/443b75a5bc3833f057b06441d487734edaf235722f7062c2a7a77123ceaefb5e/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6d6174657269616c697a652d62756e646c652f6c6963656e7365)](https://packagist.org/packages/evheniy/materialize-bundle)

[![Build Status](https://camo.githubusercontent.com/585c88c4a0857e1af48d7eb402dea8713b2661d4f8ddc103224ce4bcedef42ad/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f4d6174657269616c697a6542756e646c652e737667)](https://travis-ci.org/evheniy/MaterializeBundle)[![Coverage Status](https://camo.githubusercontent.com/1e01c928514c841c4dc834755b2858d5185450788da6e15e545666ea18430933/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f4d6174657269616c697a6542756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/MaterializeBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c04bdefc7a74a96e64659dc908d9dd39a2a2c5e70a77155012f8b9753dcd1211/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f4d6174657269616c697a6542756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/MaterializeBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/3e5203641d1648a0e901a807f5b10ec62a3544029fa4cf7b6609cfc6614a120c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f4d6174657269616c697a6542756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/MaterializeBundle/build-status/master)

This bundle provides Materialize in Symfony2 from CDN cdnjs

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

[](#installation)

```
$ composer require evheniy/materialize-bundle "1.*"

```

Or add to composer.json

```
"evheniy/materialize-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\MaterializeBundle\MaterializeBundle(),
        );
        ...

```

config.yml:

```
#MaterializeBundle
materialize: ~

or

#MaterializeBundle
materialize:
    local_js: '@AppBundle/Resources/public/js/materialize.min.js'
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'
    local_css: '@AppBundle/Resources/public/css/materialize.min.css'
    local_cdn: 'cdn.domain.com'
    version: 0.97.0
    html5: true
    async: false

```

And Assetic Configuration in config.yml:

```
#Assetic Configuration
assetic:
    bundles: [ MaterializeBundle ]

```

Add this string to your layout (styles and js)

```

    ...

    {%- include "MaterializeBundle:Materialize:css.html.twig" -%}

    ...

    {%- include "MaterializeBundle:Materialize:js.html.twig" -%}

```

The last step

```
app/console assetic:dump --env=prod --no-debug

```

Documentation
-------------

[](#documentation)

You can change Materialize version:

```
materialize:
    version: 0.97.0

```

You can set Materialize local version (it helps if cdn doesn't work).

```
materialize:
    local_js: '@AppBundle/Resources/public/js/materialize.min.js'

```

Default value: '@MaterializeBundle/Resources/public/js/materialize.min.js'

```
materialize:
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'

```

Default value: '@MaterializeBundle/Resources/public/fonts/'

```
materialize:
    local_css: '@AppBundle/Resources/public/css/materialize.min.css'

```

Default value: '@MaterializeBundle/Resources/public/css/materialize.min.css'

You can set local CDN:

```
materialize:
    local_cdn: 'cdn.domain.com'

```

You can use old html version:

```
materialize:
    html5: false

```

Default value: true. If false script will be with type="text/javascript"

You can use async loading:

```
materialize:
    async: true

```

Default value: false. If true script will be with async="async"

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/MaterializeBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/materialize_bundle.html)

[Materialize](http://materializecss.com/)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~70 days

Total

5

Last Release

3624d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.0

1.2.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (11 commits)")[![olgierds](https://avatars.githubusercontent.com/u/3164805?v=4)](https://github.com/olgierds "olgierds (1 commits)")

---

Tags

googleSymfony2materializelatestadaptive

### Embed Badge

![Health badge](/badges/evheniy-materialize-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-materialize-bundle/health.svg)](https://phpackages.com/packages/evheniy-materialize-bundle)
```

PHPackages © 2026

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