Download the PHP package monsieurbiz/sylius-theme-companion-plugin without Composer

On this page you can find all versions of the php package monsieurbiz/sylius-theme-companion-plugin. 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 sylius-theme-companion-plugin

Theme Companion for Sylius

Theme Companion  Plugin license Tests Security Flex Recipe

A powerful companion plugin for Sylius themes with asset management, build pipelines, and package management.

Compatibility

Sylius Version PHP Version
2.0 8.2 - 8.3
1.13+ 8.2 - 8.3

â„šī¸ For Sylius 1.12, see our 1.x branch and all 1.x releases.

Installation

If you want to use our recipes, you can configure your composer.json by running:

For the installation without flex, follow these additional steps

Change your `config/bundles.php` file to add this line for the plugin declaration: Then import the routes in `config/routes/monsieurbiz_sylius_theme_companion_plugin.yaml`:

Quick Start

1. Enable Theme Companion

Add need_companion: true to your theme's composer.json:

That's it! Your theme is now enhanced with Theme Companion features and will appear in the channel configuration, even if it's a packaged theme outside the themes/ folder.

💡 See it in action: Check out the naked theme example

2. Add Assets (Optional)

Place your assets in the assets/ folder in your theme:

Assets are automatically available via Symfony Asset Mapper:

📁 Example: See the complete structure in naked theme

3. Configure Build Pipeline (Optional)

For SCSS, Tailwind, or other compilation needs, add a build pipeline:

Supported runners: sass, tailwind, copy

đŸ“Ļ Examples:

Commands

Debug Themes

Install Dependencies

Build Assets

Configuration Options

Naming Convention

The name of your theme will be used in two main places:

If the name of your theme is monsieurbiz/sylius-foo-theme in the composer.json file:

Rule Without custom prefix With custom prefix My-Foo Theme
Asset Mapper prefix Camel case prefixed with @ @MonsieurbizSyliusFooTheme @MyFooTheme
Parameter name Snake case without @ monsieurbiz_sylius_foo_theme my_foo_theme

Custom Prefix

Control the Asset Mapper prefix:

📄 Example: naked theme

JavaScript Dependencies

Manage JS packages with Asset Mapper:

Then create assets/package.json containing your dependencies:

📄 Example: naked theme dependencies

Theme Variables

Pass variables to Twig templates:

Access in templates: {{ theme.getVar('twig', 'logo_text') }}

📄 Example: naked theme variables

Parent Themes

Inherit configuration from another theme:

Child themes inherit build pipelines, dependencies, and variables from parent themes.

📄 Example: quartz theme

Asset Mapper Configuration

Add additional Asset Mapper paths or exclude patterns:

📄 Example: original theme

Build Pipeline Options

SCSS/Sass Compilation

Tailwind CSS

Copy Files

📄 Example: original theme build pipeline

Examples

Full working examples are available in the examples/themes/ directory:

Development Tools

Theme Switcher (Dev Mode Only)

Quickly switch themes during development without modifying the database:

This is only available in development mode and requires the dev routes to be imported.

Debug Toolbar

View current theme information in the Symfony profiler toolbar. The toolbar shows:

Contributing

We welcome contributions! Please see our contribution guidelines for details.

License

This plugin is under the MIT license. See the LICENSE file for details.

Credits

Developed by Monsieur Biz, expert Sylius agency.


All versions of sylius-theme-companion-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-pcntl Version *
sylius/sylius Version ^1.13|^2.0
symfony/asset-mapper Version ^6.4|^7.2
symfony/asset Version ^6.4|^7.2
symfony/twig-pack Version ^1.0
symfony/string Version ^6.4|^7.2
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 monsieurbiz/sylius-theme-companion-plugin contains the following files

Loading the files please wait ...