Download the PHP package art-and-flywork/kirby.plugin.fieldset without Composer

On this page you can find all versions of the php package art-and-flywork/kirby.plugin.fieldset. 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 kirby.plugin.fieldset

Fieldset

Panel field which loads a fieldset and stores the values in a single field as yaml.

This works like an extend with the difference that all all values from the fieldset fields are store in a single field. This way you van reuse the fieldset and bind it to a snippet: snippet('mySnippet', $page->the_fieldset()->yaml())

Usage

Create a blueprint with a fieldset:

site/blueprints/fieldsets/somefields.yml

the type: group is not mandatory for this plugin to work, but it will make it work as a standard kirby field extend too when needed.

In your page yml add the fieldset field and point it to the fieldset blueprint:

site/blueprints/pages/default.yml

In the panel the fields from somefields.yml are loaded in the fieldset field:

The data is stored as yml in the txt file:

Using the values in templates

There are 2 ways to easily access the values stored in the fieldset field. There is a supplied chainable method or it's yaml can be decoded with the native yaml method or even passed

1. Using the supplied fieldmethod

The plugin introduces a field method to make the values accessible as regular chainable kirby fields:

2. Yaml decode by hand

In the template the data is accessible as array by yaml decoding it:

default.php

Once decoded the values can be directly passed to a snippet:

site/snippets/mySnippet.php

License

[MIT


All versions of kirby.plugin.fieldset with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer 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 art-and-flywork/kirby.plugin.fieldset contains the following files

Loading the files please wait ....