2017 © Pedro Peláez
 

symfony-bundle materialize-bundle

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

image

evheniy/materialize-bundle

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

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

MaterializeBundle

knpbundles.com, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Build Status Coverage Status Scrutinizer Code Quality Build Status, (*3)

This bundle provides Materialize in Symfony2 from CDN cdnjs, (*4)

Installation

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

Or add to composer.json, (*5)

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

AppKernel:, (*6)

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

config.yml:, (*7)

#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:, (*8)

#Assetic Configuration
assetic:
    bundles: [ MaterializeBundle ]

Add this string to your layout (styles and js), (*9)

<html>
    <head>
    ...

    {%- include "MaterializeBundle:Materialize:css.html.twig" -%}
    </head>
    <body>
    ...

    {%- include "MaterializeBundle:Materialize:js.html.twig" -%}
    </body>
</html>

The last step, (*10)

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

Documentation

You can change Materialize version:, (*11)

materialize:
    version: 0.97.0

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

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

Default value: '@MaterializeBundle/Resources/public/js/materialize.min.js', (*13)

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

Default value: '@MaterializeBundle/Resources/public/fonts/', (*14)

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

Default value: '@MaterializeBundle/Resources/public/css/materialize.min.css', (*15)

You can set local CDN:, (*16)

materialize:
    local_cdn: 'cdn.domain.com'

You can use old html version:, (*17)

materialize:
    html5: false

Default value: true. If false script will be with type="text/javascript", (*18)

You can use async loading:, (*19)

materialize:
    async: true

Default value: false. If true script will be with async="async", (*20)

License

This bundle is under the [MIT][3] license., (*21)

Документация на русском языке, (*22)

Materialize, (*23)

The Versions

06/06 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 google materialize latest adaptive

06/06 2016

1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 google materialize latest adaptive

02/12 2015

1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 google materialize latest adaptive

01/09 2015

1.0.2

1.0.2.0

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

  Sources   Download

MIT

The Requires

 

symfony2 google materialize latest adaptive

30/08 2015

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

symfony2 google materialize latest adaptive

30/08 2015

1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

symfony2 google materialize latest adaptive