Download the PHP package jerabix/moonshine-iconify without Composer

On this page you can find all versions of the php package jerabix/moonshine-iconify. 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 moonshine-iconify

Moonshine-Iconify - integrate Iconify library for Moonshine admin panel

logo

EN | RU

Installation

Install composer package

Publish icon.blade.php file from package:

This command put file icon.blade.php in resources/views/vendor/moonshine/components folder.

(Optional) You can also publish config file from package:

Usage

When you use ICONIFY_COMPONENT_MODE - you not need additional actions.

When you use DOWNLOAD_USAGE_ICONS_MODE - you need run command:

for download all usage icons in project.

Use moonshine default Icon component as before. Package work as fallback if icon is not found in moonshine - use iconify library.

Iconify icons can be found here.

Working mode

Package has 2 working mode:

ICONIFY_COMPONENT_MODE iconify doc

Used iconify component. Load icons from iconify API on demand, and cache to user localstorage, need load iconify JS script (package add it automatically).

DOWNLOAD_USAGE_ICONS_MODE

Use package command for download used iconify icons to project. Need re-run command for each new iconify icon in project.

Config

Key Description Default value
working_mode Working package mode, can be WorkingMode::ICONIFY_COMPONENT_MODE or WorkingMode::DOWNLOAD_USAGE_ICONS_MODE, check enum description for more information WorkingMode::ICONIFY_COMPONENT_MODE
iconify_script_url (Only for ICONIFY_COMPONENT_MODE) URL for load iconify script. By default use CDN link from official website. NULL
icon_size_multiplier (Only for ICONIFY_COMPONENT_MODE) Moonshine icons and iconify icons has different size measurements. Therefore, some kind of multiplier is required so that moonshine icons and iconify do not differ in size 3.2
additional_detectors (Only for DOWNLOAD_USAGE_ICONS_MODE) Additional detectors for moonshine icons. When you have own classes with using icons, you need to create detectors for classes. []
delete_not_used_icons (Only for DOWNLOAD_USAGE_ICONS_MODE) Delete not used icons in download command? true
detect_icons_path (Only for DOWNLOAD_USAGE_ICONS_MODE) Path to detect icons usage app_path()

Detector N has error: X

When you has error: Detector {DetectorClass} has error: {Error}. Details in log file

Create issue here. And provide info from log file.

Icon not download with command

When you has own class with using icon, you need to create detector for class. Check IconComponentDetector class.

When class provide from Moonshine - you can create issue here.

TODO


All versions of moonshine-iconify with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2|^8.3
ext-curl Version *
ext-json Version *
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 jerabix/moonshine-iconify contains the following files

Loading the files please wait ....