Download the PHP package manuxi/sulu-content-types-bundle without Composer

On this page you can find all versions of the php package manuxi/sulu-content-types-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 sulu-content-types-bundle

Sulu Content Types Bundle

Custom Content Types for Sulu CMS 2.6+

License Sulu Version PHP Version

Deutsche Version | English Version


Features

This bundle provides three custom content types for Sulu CMS:

1. 🔢 NumberWithDefault

Number input field with default value support. Extends the standard number type with a default_value parameter.

Use Cases:

2. 🎨 ColorSelect

Selection field with colour preview. Any colour-coded options can be configured via yaml.

Use Cases:

Default options (Palette "bootstrap"):

3. 🎚️ SliderRange

Visual range slider with configurable display modes. Supports textbox input, floating tooltips, and various label layouts.

Use Cases:


Installation

1. Install via Composer

2. Enable the Bundle

Add the bundle to your config/bundles.php:

3. Register Admin Assets

Add to your main project's assets/admin/package.json:

4. Import in Main Project

Add to your main project's assets/admin/index.js:

5. Build Admin Assets

6. Clear Cache


Usage

NumberWithDefault

In Twig:

ColorSelect

Important: The color is encoded in the value attribute using the format "key:color" (e.g., "primary:#0d6efd").

In Twig:

The value returned is only the key part (e.g., "primary"), not the full "primary:#0d6efd" string.

SliderRange

The SliderRange supports multiple display modes via the display_mode parameter:

In Twig:


Parameters

NumberWithDefault

Parameter Type Description Example
min number Minimum value 0
max number Maximum value 100
step number Step increment 1
multiple_of number Value must be multiple of 5
default_value number Default value 10

ColorSelect

Parameter Type Description
values collection Array of color options
values.* value attribute Key and color in format "key:color"
values.*.meta.title string Translatable display name (optional)

Value Format: "key:#hexcolor" (e.g., "primary:#0d6efd")

XML Structure:

ColorSelect Color Palettes

Using palettes with service:

Custom color palette: config/packages/sulu_content_types.yaml

Reflect changes in xml: .getValues('custom')

Now use own color palette:

SliderRange

Parameter Type Description Default Example
min number Minimum value 0 0
max number Maximum value 100 100
step number Step increment 1 5
default_value number Default value min 50
display_mode string Display mode (see below) input floating
show_labels boolean Show min/max labels true false

Display Modes

Mode Description Best For
input Textbox next to slider with min/max labels Full-width layouts, precise input needed
floating Tooltip above thumb, smooth animation Narrow columns (col-3), clean design
inline Current value between min/max labels Compact layouts
below Current value centered below slider Minimal layouts, emphasis on value
none No value display, only slider Ultra-minimal, visual-only control

Recommended Combinations:


Development

Project Structure


Compatibility


Future Compatibility

This bundle is designed with Sulu 3.x compatibility in mind:


Documentation


Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


License

This bundle is under the MIT license. See the complete license in:

LICENSE


Credits

Created and maintained by Manuxi


Support


Roadmap

Planned features for future versions:


Changelog

See CHANGELOG.md for version history.


All versions of sulu-content-types-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
sulu/sulu Version ^2.6
symfony/config Version ^5.4 || ^6.0 || ^7.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.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 manuxi/sulu-content-types-bundle contains the following files

Loading the files please wait ...