Download the PHP package marcin-orlowski/disco-toolbar-symfony without Composer

On this page you can find all versions of the php package marcin-orlowski/disco-toolbar-symfony. 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 disco-toolbar-symfony

Latest Stable Version Monthly Downloads License

Welcome!

DiscoToolbar is a customizable toolbar for your Symfony application, providing all-time access to essential resources right from your browser. Perfect for streamlining your workflow by keeping frequently-used tools, admin panels, and services just one click away.

NOTE: This package is also available for Laravel framework! See project page for more information!

What is DiscoToolbar?

DiscoToolbar creates a persistent banner (typically placed at the top of your layout) that displays during development. It's highly configurable via YAML, allowing you to create custom buttons and links to anything you need: admin panels, database tools, email catchers, API documentation, or any other resource.

Perfect for Docker Environments

Since configuration is YAML-based, it's incredibly easy to generate dynamically when setting up new environments. When using Docker or similar containerization, port numbers often change between setups - but with DiscoToolbar, you can regenerate the configuration file on each environment startup, ensuring all links always point to the correct ports and services.

Features

Requirements

Optional Dependencies

Notes

There's also Laravel version of this package!

Installation

Install via Composer:

For access to 200,000+ icons via Symfony UX Icons (recommended):

Register the bundle in config/bundles.php:

Install bundle assets:

Configuration

Create a configuration file with widget configuration. The bundle will automatically detect and load the first file found (in order of preference):

Example configuration that produces toolbar shown in the screenshot above:

Widget Properties

Property Type Required Description
type string Widget type: link (default) or close (dismisses toolbar).
icon* string Optional icon to display (Font Awesome class, UX Icons name, or emoji/text).
icon_type string Icon type: fa (Font Awesome, default), ux (Symfony UX Icons), or text.
text* string Optional widget label to display alongside icon.
url string * Link URL to redirect to once widget is clicked.
target string Link target (e.g., _blank). Default: no target
title string Tooltip text. If not given, url is shown.
expand bool Set to true to make widget expand and fill available space. Default false.

*) Either icon or text must be provided or exception will be thrown.

Font Awesome Icons

DiscoToolbar supports Font Awesome icons for widgets. You have two options for including Font Awesome:

Option 1: Automatic Inclusion (Recommended for Quick Setup)

Enable automatic Font Awesome inclusion from CDN in your .disco.yaml configuration file:

Benefits:

Note: Only enable this if your application doesn't already include Font Awesome. If you have Font Awesome in your project, use Option 2 instead to avoid version conflicts.

Option 2: Manual Setup (Recommended if Font Awesome Already Installed)

If your application already includes Font Awesome (via NPM, CDN, or other means), simply use Font Awesome icon classes in your widget configuration. DiscoToolbar will use your existing Font Awesome installation.

Example:

If you don't have Font Awesome installed, you can include it manually in your base template:

Using Text/Emoji Instead

If you prefer not to use Font Awesome, you can use emoji or plain text:

Symfony UX Icons

DiscoToolbar supports Symfony UX Icons, which provides access to 200,000+ icons from popular icon sets (Lucide, Heroicons, Font Awesome, and more) as inline SVGs.

First, install the UX Icons package:

Then use the ux icon type with icon names in the set:name format:

Browse available icons at ux.symfony.com/icons.

Note: If symfony/ux-icons is not installed, widgets with icon_type: ux will display the icon name in brackets as a fallback (e.g., [lucide:github]).

Usage

Include the toolbar template in your base layout:

Customization

Background Colors

Customize the breathing stripes background colors in your .disco.yaml:

Custom CSS

The bundle includes default styling. To customize, override the CSS after importing bundle assets or create your own styles targeting .disco-toolbar classes.

Custom Template

Override the default template by creating: templates/bundles/DiscoToolbarBundle/toolbar.html.twig

License


All versions of disco-toolbar-symfony with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/dependency-injection Version ^6.4|^7.0|^8.0
symfony/http-kernel Version ^6.4|^7.0|^8.0
symfony/yaml Version ^6.4|^7.0|^8.0
symfony/twig-bundle Version ^6.4|^7.0|^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 marcin-orlowski/disco-toolbar-symfony contains the following files

Loading the files please wait ...