Download the PHP package sulu/theme-bundle without Composer

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

SuluThemeBundle

Official Sulu Bundle Badge

GitHub license GitHub tag (latest SemVer) Test workflow status Sulu compatibility


The SuluThemeBundle provides the functionality to add multiple themes for different look and feel using multiple webspaces in the Sulu content management system.

To achieve this, the bundle uses the SyliusThemeBundle to render different twig templates and asset files. Each webspace can have it's own theme.

🚀  Installation and Usage

Install the bundle

Execute the following composer command to add the bundle to the dependencies of your project:

Enable the bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

Configure the SyliusThemeBundle

In order to use the bundle you have to add at least the following default configuration:

By default, the bundle seeks for the themes in the %kernel.project_dir%/themes directory and looks for a theme configuration file named composer.json. This can be changed via the yaml configuration:

For more detailed information about the configuration sources go to the SyliusThemeBundle documentation.

Configure your themes

Every theme must have its own configuration file in form of a theme.json. Go to the Theme Configuration Reference for the detailed documentation about the configuration options.

The minimal configuration for a theme would be the following:

It is important, that the name matches the naming convention of composer (vendor/name).

Create a theme

First you have to create the directory themes inside your project. To create a theme you have to create a new directory in the themes folder with the name of the new theme. In the newly created directory you have to add the theme configuration file theme.json. See Configure your themes. Additonally you have to create the templates directory next to the theme.json. Afterwards you have to fill this folder with all the used templates and assets for this theme.

This results in the following project structure:

Add one of your themes to a webspace

Each webspace can use a different theme. A theme can be enabled for a specific webspace by adding the theme name <theme>vendor/theme-name</theme> to your webspace:

❤️  Support and Contributions

The Sulu content management system is a community-driven open source project backed by various partner companies. We are committed to a fully transparent development process and highly appreciate any contributions.

In case you have questions, we are happy to welcome you in our official Slack channel. If you found a bug or miss a specific feature, feel free to file a new issue with a respective title and description on the the sulu/SuluThemeBundle repository.

📘  License

The Sulu content management system is released under the under terms of the MIT License.


All versions of theme-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
sulu/sulu Version ^2.4 || ^2.5@dev
symfony/config Version ^4.4 || ^5.4 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0
sylius/theme-bundle Version ^2.1 || ^2.4@dev
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 sulu/theme-bundle contains the following files

Loading the files please wait ....