Download the PHP package sylvainjule/categories without Composer

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

Kirby Translated Categories

This plugin helps dealing with translated categories, adding UUIDs to structure fields and the ability to sync their content accross all languages.

Image


Overview

This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, you can consider making a donation of your choice.


1. Installation

Version 2.0.0 introduces breaking changes from previous 1.x.x versions (explained and documented in the release), and is compatible with Kirby 5 only.

Download and copy this repository to

Alternatively, you can install it with composer:


2. Panel setup

This plugin allows an editor to easily create and manage multi-language categories, while keeping the field's content synced between languages in order to keep IDs unique. It will only work in multi-language setups.

Whenever a user adds a new item to a synced structure field, all languages inherit the new item.
Whenever a user deletes an item from a synced structure field, it is deleted from all languages.
Whenever a user sorts a synced structure field, the new sort order is applied in all languages.

It requires two steps:

First, add a structure field anywhere in your blueprints:

Second, you need to tell the plugin which template => fieldname to watch and sync accross languages, by adding this option to your config file

For example, if you have a blog template with a categories field, and a projects template with clients + techniques fields, you will need to set:

You can then set the categories created with the field as dynamic options of select, multiselect, checkboxes, etc. Refer to the official documentation about using structure field items as options.

Since the plugin makes sure that a given category shares the same UUID accross all languages, use {{ structureItem.uuid }} as an immutable value. The text property can be any field from your structure.


3. Options

3.1. Watch

An array of template => [fields] pairs to watch (default is empty | []). See above for examples.

3.2. Hook

Setting this option to false (default is true) will prevent the plugin to apply any change in the page.update:after | site.update:after hooks (you would then have to manually call it, see 5. Caveats).


4. Frontend usage

You can use the field like any other Structure, but knowing your categories share an immutable UUID accross languages. Few examples:


5. Caveats

The plugin registers two hooks (site.update:after, page.update:after) to save data in content files. To my understanding you should avoid running multiple hooks which save content in the same files to prevent any conflict.

If your project or another plugin registers these hooks, few options:


6. License

MIT


All versions of categories 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 sylvainjule/categories contains the following files

Loading the files please wait ....