Download the PHP package cssjockey/laravel-svg without Composer

On this page you can find all versions of the php package cssjockey/laravel-svg. 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 laravel-svg

Laravel Svg

This package enables a directive @svg(..) which renders the SVG code from a given path or public URL.

This package includes, all free SVG icons from feathericons and heroicons. However, you can add any SVG icons to your project from multiple local paths. See below for details.

Installation

You can install the package via composer:

Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

Configuration

You can publish the config file config/laravel-svg.php to add or manage the local paths this package looks for SVG icons.

Usage

Embedding SVG source from a public URL in your blade template.

Loading SVG source from a local path in your blade template.

This will look for all the paths listed in the config/laravel-svg.php file and the default package path.

Controlling width and height.

The SVG files are loaded with full width and height. You can wrap the directive in a div to control the dimensions with a class or style attribute.

Example using tailwind width class:

Example using style attribute:

IMPORTANT: If you wish to use <span> or any other non-block tag, then you must apply style="display: inline-block" to the that element.

Changelog

Please see the changelog for more information on what has changed recently.

Todo:


All versions of laravel-svg with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~7|~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 cssjockey/laravel-svg contains the following files

Loading the files please wait ....