Download the PHP package spanjaan/wn-snowflake-plugin without Composer

On this page you can find all versions of the php package spanjaan/wn-snowflake-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 wn-snowflake-plugin

Snowflake for Winter CMS

Fork Information and Acknowledgments

This plugin was forked from skripteria/snowflake to spanjaan/snowflake. This fork aims to enhance and extend the functionalities of the original plugin to better meet the needs of various user types within Winter CMS.

A big thank you to all contributors and the Winter CMS community for their continued support and inspiration!

Version History

Installation with Composer

To install Snowflake, run the following commands:

Why a New "CMS" Within a CMS?

In real-life scenarios, there are at least four different user types that need to be considered:

The first three user types are usually considered when discussing how a CMS should function. However, the last user type is often overlooked. When developing a site for a paying customer, the non-technical user is the one you will most likely deal with in the end.

As a result, you need to make content management foolproof and hide everything except the specific pieces of content that need to be managed.

Snowflake addresses this by leveraging the power of the Winter CMS backend framework.

Using Snowflake

Once installed, you first need to add the Snowflake component to any CMS Layout you want to use it with. This will enable the Snowflake Twig filter on the Layout itself and any Page using this Layout.

On these CMS pages, you can now add content variables using the 'sf' Twig filter, for example:

The first part ('my_headline') is the Snowflake key used to render the content. The Snowflake key acts like a normal Twig variable and references the content.

Every Snowflake key must be unique within a given Page but may conflict with keys from other Pages. When adding Snowflake keys to a Layout, name collisions with Pages can occur. It is generally recommended to prefix Snowflake keys in Layouts (e.g., 'layout_my_headline').

The 'sf' filter takes up to three arguments:

  1. Argument 1: Defines the type of content. This controls which backend widget is used for content management.
  2. Argument 2 (optional): Allows setting a default value for the content. The default value has no effect on the types 'image', 'file', 'date', 'mediaimage', and 'mediafile'.
  3. Argument 3 (optional): Adds a description for the user responsible for content management.

Note: The characters ',' (comma) and '|' (pipe) must not be used within arguments.

Currently, Snowflake supports seven standard types and five special ones.

Standard Types:

Special Types:

Synchronizing with the Snowflake Backend

If you are using the Winter CMS backend to edit your code, simply save your Page or Layout, and Snowflake will automatically create or update the respective records in the database.

Once a Snowflake key is removed (or renamed), it is handled as an unused database record based on the following logic:

Alternatively, you can use a console command to sync all CMS Pages and Layouts:

To clean up all unused Snowflake keys (caution: this also deletes the associated content), use:



All versions of wn-snowflake-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
composer/installers Version ~1.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 spanjaan/wn-snowflake-plugin contains the following files

Loading the files please wait ....