Download the PHP package tobento/service-icon without Composer

On this page you can find all versions of the php package tobento/service-icon. 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 service-icon

Icon Service

Managing icons for PHP applications.

Table of Contents

Getting started

Add the latest version of the icon service project running this command.

Requirements

Highlights

Documentation

Icon Interface

name

Returns the icon name.

render

Returns the icon.

Both icons from above will produce the following output:

size

Returns a new instance with the specified size.

attr

Returns a new instance with the specified attribute.

Adds a class to existing classes:

Overwrites existing classes:

label

Returns a new instance with the specified label and position.

labelSize

Returns a new instance with the specified label size.

labelAttr

Returns a new instance with the specified label size.

Adds a class to existing classes:

Overwrites existing classes:

tag

Returns a new instance of the icon tag.

Check out Tag Interface to learn more about the interface.

Icon

You may check out the Tag Service to learn more about it.

Icon Factory Interface

Easily create icons with the provided icon factory:

createIcon

createIconFromHtml

createIconFromFile

Icon Factory

The default icon factory will produce the following icon output:

output:

size class map

You might create your own factory to adjust css sizes for your needs:

Icon Factory Translator

Translates the svg tag. You might enhance it for your needs though.

You may check out the Translation Service to learn more about it.

Icons Interface

get

has

Svg File Icons

This class creates icons from svg files.

Svg File Icons To Json File

This class creates icons from svg files but caches all in one json file.

Svg File Icons To Json Files

This class creates icons from svg files but caches each in a json file.

In Memory Html Icons

Icons

This icons class might be used for custom factories.

Stack Icons

The StackIcons class allows combining any number of other icons. If the requested icon does not exist in the first icons collection, the next icons will try and so on.

Example

Font Awesome

This might be a possible way to create font awesome icons:

output:

Credits


All versions of service-icon with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/service-tag Version ^1.0.5
tobento/service-dir Version ^1.0
tobento/service-filesystem Version ^1.0
tobento/service-file-creator Version ^1.0
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 tobento/service-icon contains the following files

Loading the files please wait ....