npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

laravel-materialize

v1.1.0

Published

Material Design Lite integration for Laravel.

Readme

Intro

This package allows you to quickly and cleanly integrate Google's Material Design Lite into your Laravel project, while still giving you flexibility.

If your frontend will be heavily composed of vue components, you may want to also check out vue-mdl.

Installation

This package can work with new or existing Laravel projects. If you don't already have a Laravel application, create one.

Then, install the package:

npm install --save-dev laravel-materialize

Usage

In your gulpfile.js, require and use the package. For example:

const elixir = require('laravel-elixir');

require('laravel-materialize');
require('laravel-elixir-vue-2');

elixir(mix => {
    mix.sass('app.scss')
       .materialize()
       .webpack('app.js');
});

Run gulp to compile the assets.

Include the assets in your layout by adding this to your <head>

<!-- Material Styles -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="/css/materialize.css">

And this right before the end of your <body>

<!-- Material JavaScripts -->
<script src="/js/materialize.js"></script>

Now go add mdl components and classes to your views! Check out the mdl documentation for quick reference.

For example, add a simple button to any of your views to make sure everything is working:

<!-- Colored FAB button with ripple -->
<button class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
  <i class="material-icons">add</i>
</button>

Customization

Want to change the colors of your app? How about the font? Want to tweak the defaults of Material Design to make it unique to your app? Sure, it's easy!

Create a file called _mdl-variables.scss within resources/assets/sass and set whatever MDL variables you want. For example:

// colors
$color-primary: $palette-indigo-500;
$color-accent: $palette-pink-A200;

$text-color-primary: rgba-tpl($color-black, 0.87);
$text-link-color: $color-accent;

// font
$preferred_font: 'Roboto', 'Helvetica', 'Arial', sans-serif;
$performance_font: 'Helvetica', 'Arial', sans-serif;

For a full list of variables you can set, see here;

Note: The sass color variables defined by MDL (ex: $palette-indigo-500) will automatically be injected for you.

Another Note: If you are specifying your own color value, some of the colors will only work if you give an rgb value. (ex: 0, 0, 0, rather than #000 or rgb(0,0,0)) -- more info can be found in the issues here.

Contributing

Go for it.