Download the PHP package lmc/spirit-web-twig-bundle without Composer

On this page you can find all versions of the php package lmc/spirit-web-twig-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 spirit-web-twig-bundle

Spirit Web Twig Bundle

This is a Symfony bundle with Twig implementation of Spirit Design System components, extended with JSX-like syntax.

Requirements

Changelog

See CHANGELOG

How to install

Step 1

Download using composer

Install package

Step 2

Add SpiritWebTwigBundle into bundles (under all bundles). If you use Symfony flex, it will be configured automatically.

bundles.php

Step 3 (optional)

If you want to change the default settings, create a config

config/packages/spirit_web_twig.yml

Usage

For detailed usage see TwigX bundle

Unescaped Props

All props that internally uses the raw filter are prefixed with UNSAFE_. This is considered a way how you can pass down HTML strings.

Spirit Components

For available components see the components directory.

if you want to extend these components, an example guide is here. if you want to contribute, read the guide here.

Additional Attributes

All components accept additional attributes that are passed down to the root element of the component. This is useful for adding custom event handlers, accessibility attributes, or other attributes that are not supported by the component API.

ℹ️ If you need to pass down event handlers to the native form elements in our form components, you can use the inputProps prop.

Supported attributes are:

If the component sets a value for any of these attributes, the value passed in will be overwritten.

Styling

Spirit components are designed to be consistent across all Alma Career applications. They include built-in styling that has been considered carefully, and extensively tested. In general, customizing Spirit design is discouraged, but most components do offer control over layout and other aspects. In addition, you can use Spirit defined design tokens to ensure your application conforms to your design requirements, and is adaptive across platform scales and color schemes.

Style Props

All Spirit components accept a set of props that can be used to control their outer spacing. The props are:

These props accept a spacing token (eg. space-100), auto or an object with breakpoint keys and spacing token values or auto. We use these props to set global CSS utility classes on the root element of the component.

Examples:

If you need more control over the styling of a component, you can use escape hatches.

Escape Hatches

While we encourage teams to utilize Spirit design as it is, we do realize that sometimes product specific customizations may be needed. In these cases, we encourage you or your designers to talk to us. We may be able to suggest an alternative implementation strategy, or perhaps your design can help propose future Spirit additions.

While the traditional class and style props are not supported in Spirit Web Twig components, there are two escape hatches that you can use at your own risk. These are UNSAFE_className and UNSAFE_style. Use of these props should be considered a last resort. They can be used to work around bugs or limitations in Spirit Web Twig, but should not be used in the long term.

The reasoning behind this is that future updates to Spirit design may cause unintended breaking changes in products. If the internal DOM structure or CSS properties of a Spirit Web Twig component change, this may lead to conflicts with CSS overrides in products. For this reason, className and style are unsafe, and if you use them know that you are doing so at your own risk.

Please consult additional styling with web package documentation.

Deprecations

This package uses the deprecation warnings for props, functions and components that will be removed or replaced in the next major release. Check your Symfony console or log to see if you are using any of the deprecated functionality.

Deprecations in Symfony's console


All versions of spirit-web-twig-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-simplexml Version *
lmc/twigx-bundle Version ^3.3
symfony/config Version ^4.4 || ^5.4 || ^6.1
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.1
symfony/http-foundation Version ^4.4 || ^5.4 || ^6.1
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.1
symfony/polyfill-php80 Version ^1.23
twig/twig Version ^2.12.5 || ^3.0.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 lmc/spirit-web-twig-bundle contains the following files

Loading the files please wait ....