Download the PHP package basilicom/path-formatter-bundle without Composer

On this page you can find all versions of the php package basilicom/path-formatter-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 path-formatter-bundle

Basilicom Extended Path Formatter Bundle for Pimcore

Usecase / Summary

If you want to display specific information of a DataObject when it's listed in a relation-field (Many-to-Many, Many-to-One, Advanced Many-to-Many, etc.), you can use this bundle to easily configure a display pattern.

Instead of creating a new PathFormatter PHP class for every specific display requirement (e.g., showing the name, price, and currency of a product), you can simply define patterns in your configuration.

You can also define specific pattern overwrites for a class when it is referenced in a specific field of another class:

While the product will be formatted like Sneakers 19.99EUR in most relation-fields, the products field in the ProductList class will show them like #13 Sneakers.


Version information

Bundle Version PHP Pimcore
^1.0 ^7.3 ^6.0
^2.0 ^8.0 ^10.0
^3.0 ^8.1 ^11.0

Installation

  1. Install the bundle using composer:

  2. Enable the bundle:
    • Pimcore >= 10: The bundle should be automatically registered. If not, add it to config/bundles.php.
    • Pimcore < 10: Add the following to AppKernel::registerBundlesToCollection():

Configuration

  1. Create a configuration file (e.g., config/packages/basilicom_path_formatter.yaml).
  2. Configure your patterns using the full qualified class names as keys.

Basic Configuration

Use curly brackets {} to reference class properties. Any property accessible via a public getter (e.g., {name} calls getName()) can be used.

Nested Properties

The bundle supports nested property access using dot notation. For example, if a Product has a Category, and you want to show the category name:

Note: This will call $product->getCategory()->getName().

Contextual Pattern Overwrites

You can override patterns based on the context (the parent object and the specific field).

Formatting Documents and Assets

The formatter is not limited to DataObjects; it also works for Assets and Documents.

Additional Features

Inheritance in DataObjects

By default, inherited values are used when resolving placeholders. You can disable this globally:

Asset Previews

If a referenced property resolves to a Pimcore\Model\Asset\Image, the bundle automatically renders a small preview thumbnail in the relation list.

If the target element itself is an Asset\Image, a preview is also prepended to the pattern.

Usage in Pimcore Admin

To apply the formatter to a field:

  1. Open your Class Definition.
  2. Select a relation field (e.g., Many-to-Many Relation).
  3. In the Formatter input field, enter the service ID: @Basilicom\PathFormatterBundle\DependencyInjection\BasilicomPathFormatter

Author: Alexander Heidrich (Basilicom GmbH)
License: GPL v3


All versions of path-formatter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
pimcore/pimcore Version >=11
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 basilicom/path-formatter-bundle contains the following files

Loading the files please wait ...