Download the PHP package alto/favicon without Composer

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

Alto Favicon

A modern, efficient PHP library and CLI tool to generate a complete favicon set from a single SVG or PNG source.

It follows the modern best practices (2025) to generate a minimal yet robust set of icons for all browsers and devices.

Features

Requirements

Installation

Usage

CLI

Run the tool using the binary:

Programmatic Usage

You can use the FaviconGenerator class directly in your PHP application (e.g., in a CMS, build script, or controller).

FaviconOptionsBuilder API

Method Description Default
__construct(string $inputFile, string $outputDir) Initialize with input file and output directory. -
publicPath(string $path) Set the public URL prefix for generated files. /
appName(string $name) Set the application name for the manifest. App
themeColor(string $color) Set the theme color (meta tag & manifest). #0b0b0b
backgroundColor(string $color) Set the background color (manifest). #ffffff
generateManifest(bool $generate) Enable/disable manifest generation. false
generateSearchPng48(bool $generate) Enable/disable 48x48 PNG generation. false
force(bool $force) Enable/disable overwriting existing files. false
build(): FaviconOptions Build the options object. -

GenerationReport Properties

The generate() method returns a GenerationReport object with the following properties:

Options (CLI)

Option Description Default
--output, -o Output directory for generated files public
--public-path Public path prefix used in HTML/manifest /
--app-name Application name used in the manifest App
--theme-color Theme color for browser UI and manifest #0b0b0b
--background-color Background color for the manifest #ffffff
--manifest Generate manifest.webmanifest and Android icons false
--search-png Generate the 48x48 PNG favicon false
--force, -f Overwrite existing files false

Examples

Basic usage (Minimal set):

Full set with Manifest and Search Icon:

Customizing output and colors:

Using a PNG source (if you don't have SVG):

Note: When using PNG input, icon.svg will not be generated, and 16x16/32x32 PNGs will be used as fallbacks.

Generated Files

The tool generates the following structure in your output directory:

Optional files (with --manifest and --search-png):

Testing

To run the test suite:

License

This project is licensed under the MIT License.


All versions of favicon with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
psr/log Version ^3.0
symfony/console Version ^7.3 || ^8.0
symfony/filesystem Version ^7.3 || ^8.0
symfony/process Version ^7.3 || ^8.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 alto/favicon contains the following files

Loading the files please wait ...