Download the PHP package nassau/kunstmaan-node-settings-bundle without Composer

On this page you can find all versions of the php package nassau/kunstmaan-node-settings-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 kunstmaan-node-settings-bundle

Finally! A swift way of adding custom settings to any node in Kunstmaan Bundles CMS

Installation

Just composer require nassau/kunstmaan-node-settings-bundle and add \Nassau\KunstmaanNodeSettingsBundle\NodeSettingsBundle to your AppKernel file.

Usage

  1. Create an Entity to hold your settings (it’s best if it has relation to a NodeTranslation, but it’s up to you) and a FormType for it
  2. Create a SettingsHandler. To do this implement the \Nassau\KunstmaanNodeSettingsBundle\Services\NodeSettingsHandlerInterface interface and register that service in the container with a nassau.node_settings tag
  3. Your form type will automatically show up when editing the node, and the entity will be persisted on save. Et voilà!

Kitchen sink

The whole aim of this bundle is to be simple. So instead of creating everything from scratch, let’s use some existing boilerplate.

AbstractNodeSettingEntity

Use this class as a base for your entity so you’d have a nodeTranslation association defined out of the box.

AbstractNodeSettingsHandler

Extend this class to have a simpler handler. It will use defaults for most of the values and only require you to set:

The settings node will be automatically fetched and saved based on the current NodeTranslation.

Examples

Ok, so you still don’t get it and need a TL;DR or an example? Look at the examples


All versions of kunstmaan-node-settings-bundle with dependencies

PHP Build Version
Package Version
Requires kunstmaan/bundles-cms Version ~3.2 | ~4.0 | ~5.0
nassau/registry-compiler Version ~1.1
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 nassau/kunstmaan-node-settings-bundle contains the following files

Loading the files please wait ....