Download the PHP package jtolj/simple-blade-heroicons without Composer

On this page you can find all versions of the php package jtolj/simple-blade-heroicons. 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 simple-blade-heroicons

Simple Blade Heroicons 2.0

Heroicons are a set of icons developed by Steve Schoger and Adam Wathan.

This package is a lightweight alternative to blade-ui-kit/blade-heroicons in that it simply wraps each SVG in an anonymous Blade component.

This version of the package uses Heroicons 2.

Requirements

Installation

Optionally publish the configuration file:

Usage

Icons can be included in Blade templates by making use of the anonymous components that have been generated.

You can see a list of available icons at https://heroicons.com/.

For the 24x24 outline version, prefix the name with o-.

For the 24x24 solid fill version, prefix the name with s-.

For the 20x20 mini-solid version, prefix the name with ms-.

For the 20x20 micro-solid version, prefix the name with mis-.

Attributes

All attributes are passed through to the SVG tag.

For example:

Would render in the browser as:

Dynamic Component

A dynamic icon component is also available. The icon name can be be passed through the "icon" property.

For example:

<use href="#id"> support

This version of the package supports using references to the icon instead of outputting the full content of the SVG each time a component is used in Blade.

This results in a significantly lighter DOM when the same icon is used repeatedly on a page.

To use this feature, first add the following to your layout.blade.php just before your closing </body> tag:

You may then either update the 'use_references' configuration option to true to default to references, or set the push-ref property to true when rendering an icon.

JavaScript Frameworks

To use the icons in this package with JavaScript frameworks, set up the <x-heroicon::defs> component as described above.

Next, pass a list of icons into the provided <x-heroicon::iconset> component. This must appear before <x-heroicon::defs> in your template.

The icons you list will become available to reference inside your JavaScript components.

A simple Vue.js example:


All versions of simple-blade-heroicons with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.0|^9.0|^10|^11
php Version >=7.4
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 jtolj/simple-blade-heroicons contains the following files

Loading the files please wait ....