Download the PHP package t3g/symfony-template-bundle without Composer

On this page you can find all versions of the php package t3g/symfony-template-bundle. 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 symfony-template-bundle

Symfony Template Bundle

This package is used across various TYPO3 Symfony Applications to ensure a streamlined visual experience and reduced maintenance.

Installation

Ensure that symfony default scripts are present in your composer.json file.

Configuration

The bundle comes with a sensible default configuration, which is listed below. You can define these options if you need to change them:

Configuration will be available within the templates and can be accessed through template variable.

Examples:

Encore

To enable your encore entrypoint simply configure the key within the yaml configuration.

Extending Menus

Available methods to override mainDefault, mainProfile and mainFooter.

Dividing Menus

Page Template

Extend Default Layout

Available Blocks

title

headline

This block will only be rendered obove the body block if defined in the template.

body

footer

stylesheets

Stylesheet block will be rendered after the base and encore css before the closing </head>.

javascripts

JavaScript block will be rendered after base and encore javascript before the closing </body>.

EMail Template

Extend Default Layout

Available Blocks

email_subject

email_plaintext

email_html_preview

email_html_body

Utilities

AvatarUtility::getAvatar(string $email, int $size)

AvatarUtility::getAvatarUrl(string $email, int $size)

Twig Extensions

AutolinkExtension

autolink

Twig filter to automaticly convert urls, emails and phone numbers to links.

or

AvatarExtension

avatar

Twig function to display avatars.

IconExtension

icon

Twig function to display typo3 icons.

MarkdownExtension

markdown

Twig function to render markdown as HTML.

TemplateExtension

template_function_exist

A function to check if a function is available within the current Twig Environment.

template_function_call

Twig always checks for all functions with a template, also within a condition. This function is a wrapper around the original function call that is only executed if the function actually exists.

DateTimeExtension

to_datetime

Converts a unix timestamp to datetime object.

localdate

Returns a localized string representing this date.

localdatetime

Returns a localized string representing this datetime.

relativetime

Returns a string representation of a time relative to now, such as "in two days". Rounds down by default.

Option Type Default
units array []

For possible values see luxon documentation.

Usage

Example

With specific time units.

timediff

Returns a string representing the difference between a date and now() such as "1 year and 11 months".

Twig Tags

frame

Option Type Default
id string
layout embedded/default default
size small/default default
color default/primary/secondary/tertiary/quaternary/light/dark/white default
indent bool/left/right false
rulerBefore bool false
rulerAfter bool false
center bool false
backgroundImage string
backgroundImageFade bool true
backgroundImageBlur bool false
backgroundImageParallax bool false
backgroundImageGrayscale bool false
backgroundImageSepia bool false
height auto/small/medium/max auto
innerWidth small/medium/large/full/default default
title string
titleSize int 2
titleAnchor bool true

Usage

Example

expand

Usage

Example

JavaScript Libraries

Datepicker

The library can be enabled and configured through the attribute data-datepicker, pass the configuration as json encoded string.

Example HTML

Example FormBuilder

Source: https://flatpickr.js.org/

Choices

The library can be enabled and configured through the attribute data-choicesjs, pass the configuration as json encoded string.

Example HTML

Example FormBuilder

Source: https://github.com/jshjohnson/Choices

Taginput

The library can be enabled and configured through the attribute data-taginput, pass the configuration as json encoded string.

Example FormBuilder

Source: https://github.com/yairEO/tagify


All versions of symfony-template-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
erusev/parsedown Version ^1.7 || 2.*.*@dev
knplabs/knp-menu-bundle Version ^2.2 || ^3.0
knplabs/knp-paginator-bundle Version ^3.0 || ^4.0 || ^5.0
setasign/fpdi Version ^2.3
symfony/asset Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/deprecation-contracts Version ^2.5 || ^3.0
symfony/form Version ^5.4 || ^6.4
symfony/framework-bundle Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/security-bundle Version ^5.4 || ^6.4
symfony/translation Version ^5.4 || ^6.4
symfony/twig-bundle Version ^5.4 || ^6.4
tecnickcom/tcpdf Version ^6.7
twig/twig Version ^3.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 t3g/symfony-template-bundle contains the following files

Loading the files please wait ....