Download the PHP package hananils/kirby-link-methods without Composer

On this page you can find all versions of the php package hananils/kirby-link-methods. 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-link-methods

List Methods is a plugin for Kirby 3 providing methods to generate comma-separated list from collections like pages, users or files. It allows for custom field selection for the list value, optional conjunctions for the last item (e. g. "and") and custom links for each item that can be defined using Kirby's query language (e. g. {{page.url}}). It also provides specific methods to list numeric values like years, shortening ranges for better readability.

Installation

Download

Download and copy this repository to /site/plugins/list-methods.

Git submodule

Composer

Pages, Users and File Methods

There are different options to create lists from users, pages or files collections:

Comma-separated list using the primary field

Creates a list separated all items with a comma:

Creates a list of years:

Comma-separated list using a custom field or method

Creates a list separated all items with a comma:

Comma-separated list using a conjunction

Creates a list separated all items with a comma but the last which is connected with a cunjunction:

The default conjunction and is provided in English or German depending on your language settings.

Comma-separated list with dynamic links

Creates a list linking to a custom destination:

You can use Kirby's template syntax with query language to fetch any information from the current context, e. g. the current $user, $page or $file object. The $kirby and $site objects are also available.

Content methods

When dealing with a single page or user, there are methods to generate lists from content field:

Both methods, asList and asNumericList, support setting a custom conjunction via a secondary attribute:

Collection methods

The plugin also features a general, more simple collection method which is a shortcut the naturalList() helper and only allows for a custom conjunction:

Helper

If you'd like to create a list outside of the Kirby objects, from an array for instance, you can use the naturalList() helper. It accepts a flat array and a conjunction, there is no custom key selection or template syntax support:

If you are handling numeric values, you can use the numericList() helper:

License

This plugin is provided freely under the hana+nils · Büro für Gestaltung. We create visual designs for digital and analog media.


All versions of kirby-link-methods 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 hananils/kirby-link-methods contains the following files

Loading the files please wait ....