Download the PHP package avvertix/materialicons-laravel-bridge without Composer

On this page you can find all versions of the php package avvertix/materialicons-laravel-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package materialicons-laravel-bridge

CI

[!IMPORTANT] Material Icons Laravel Bridge has been deprecated with 2.1.0 as the last release. There are a number of alternatives based on Blade Icons (Blade UI Kit). Thank you for the support and contributions over the years. The repository will remain open and archived.

Material Icons Laravel Bridge

Easily use Google Material Design SVG icons in Laravel Blade templates.

For a full list of available icons see the SVG directories.

Requirements

Using version 1.x? Check the upgrade guide.

Installation

You can install this package via Composer by running this command in your terminal in the root of your project:

The service provider MaterialIcons\MaterialIconsBridgeServiceProvider::class is automatically registered as part of the Laravel service discovery

Configuration

By default the class icon is added to the svg tag when inserted into a page. You can change this behavior by overriding the configuration using the config/materialiconset.php file.

A ready to use configuration file can be inserted in your config directory using php artisan vendor:publish --provider="MaterialIcons\MaterialIconsBridgeServiceProvider"

You can specify any default CSS classes you'd like to be applied to your icons using the class option:

You can specify multiple classes by separating them with a space, just like you would in an HTML class attribute.

Usage

Blade directive

To insert an icon in your template use the @materialicon directive, passing the name of the material icon set, the name of the icon and optionally any additional classes:

To add additional attributes to the rendered SVG tag, pass an associative array as the third parameter:

If you'd like, you can use the materialicon helper directly. The helper exposes a fluent syntax for setting icon attributes:

Blade components

All icons are available as Blade components, thanks to Blade Icons

The component name format is: package name materialicon, the set within the package toggle and the file name ic_star_half_24px.

You can also pass classes to your icon components:

Or any other attributes for that matter:

Helper

If you'd like, you can use the materialicon helper to expose a fluent syntax for setting SVG attributes:

Use another icon set

Even if this package makes easy to use Google's Material Design icons, it is not limited to that iconset.

You can still use a different iconset as behind the scenes the blade-ui-kit/blade-icons package is used.

Please check Blade Icon's documentation for all the configuration options and how to insert icons within your Blade views.

Upgrade

Upgrading from an older version? Check the upgrade guide.

Credits


All versions of materialicons-laravel-bridge with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
blade-ui-kit/blade-icons Version ^0.4|^0.5
illuminate/support Version ^7.14|8.*
illuminate/filesystem Version ^7.14|8.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package avvertix/materialicons-laravel-bridge contains the following files

Loading the files please wait ....