Download the PHP package zondicons/blade-bridge without Composer

On this page you can find all versions of the php package zondicons/blade-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 blade-bridge

Zondicons Blade Bridge

Easily use Zondicons in your Blade templates, either as inline SVG or using SVG sprites.

Installation

Getting started

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the Zondicons service provider in config/app.php file:

Publish the Zondicons config file:

If you want to use the sprite sheet instead of rendering every icon inline, make sure you render the hidden sprite sheet somewhere at the end of any layouts that are going to use icons using the svg_spritesheet() helper:

Configuration

Inside config/zondicons.php you can specify whether you'd like icons to be rendered inline by default, or to reference the icon from the sprite sheet:

You can also 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:

Basic Usage

To insert a Zondicon in your template, simply use the @icon Blade directive, passing 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 have attributes to declare but no additional class, you can pass an associative array as the second parameter instead:

If you'd like to override the default class name, specify a class in the attributes array:

If you'd like to add an attribute that needs no value, just specify it without a key:

If you'd like, you can use the svg_icon helper directly to expose a fluent syntax for setting icon attributes:

You can force an icon to reference the sprite sheet even if you are rendering inline by default by using the fluent syntax and chaining the sprite method:

Similarly, you can force an icon to render inline even if you are using sprites by default by chaining the inline method:


All versions of blade-bridge with dependencies

PHP Build Version
Package Version
Requires nothingworks/blade-svg Version ^0.3
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 zondicons/blade-bridge contains the following files

Loading the files please wait ....