Download the PHP package microman/kirby-components without Composer

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

Kirby Components

Overview

Do you love to make awesome projects with Kirby CMS? Do you also find it difficult to switch between snippets and blueprints folders?

This Plugin will change your life!

screenshot

Watch the video tutorial or check the example project

Installation

Manually

Download and copy the plugin into your plugin folder: /site/plugins/

With Composer

composer require microman/kirby-components

First step

  1. Create a components folderfolder site/components
  2. Make a subfolder for your component, e.g. components/my_component
  3. Create at least one blueprint with the same name as the folder. e.g. my_component/my_component.yml
  4. Create at least one snippet. e.g. my_component//my_component.php

You can create more snippets and blueprints in your components folder. (called sub components) To access them later, declaring the location my_component/my_subcomponent

You can set label, title and icons in your blueprint. Even tabs and columns, if you like.

Using in your template

To output your component, use the component helper:

Pass values to this component:

The first and the second parameter could be an array or an Kirby object, that contains a content object. Try it out what is working for you.

Using in your panel

The component field

You can also use Kirby blocks in here: fieldsets: blocks/heading

Extend your component like in the example above:

The variables in the components snippet are accessible with $content

The component selector

If you add more than one component to the fieldsets, a selector appears:

plain selector

By choosing, the fields of the selected component will appear.

To change the labels in the selector, set the property 'title' of the component.

Component selector with images

Adding images to your component folder (with the same name as the component itself)

files selector

These images will shown in the selector and you can be styled with the selector property:

images selector

Images toggles field

You can use the component selector also standalone:

It follows the same rules as the togglesfield.

Output the component field

Use the toComponent()method.

Or you can extend the values (with an array or an Kirby object):

The toComponent() method delivers the selected component.

If you like to use all the available components of the component fields use toComponents():

The components field

Add more than one component by using the components field. It follows the same rules as the Kirby blocks field.

components

Tab injection

Add a tabs with components to the component(s) fields.

injected_tab

you can also extend your component there:

License

This is a free trial version of Kirby Components Plugin, which grants you the right to use the plugin for testing purposes. If you wish to use this plugin on one website or if you intend to use it for commercial purposes, you must purchase a license.

A license is required for those who wish to use the plugin to generate revenue, including but not limited to: e-commerce websites, affiliate marketing websites, and websites that require payment to access content. Licenses are non-transferable and cannot be shared with other users or websites.

By downloading and using this plugin, you agree to the terms and conditions of the License Agreement. Failure to comply with the terms of the License Agreement may result in revocation of your license and legal action.

To purchase a license or learn more about our licensing options, please visit our website or contact us at Contact Email. Thank you for your interest in Kirby Components Plugin!


All versions of kirby-components 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 microman/kirby-components contains the following files

Loading the files please wait ....