Download the PHP package jeissonp/orchid-repeater-field without Composer

On this page you can find all versions of the php package jeissonp/orchid-repeater-field. 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 orchid-repeater-field

Orchid Platform Repeater Field

Support Ukraine Badge

Brief

We've all worked with WordPress at one time or another. Inspired by Advanced Custom Fields.

This package adding repeater fields support to Orchid RAD platform.

Pre-requirements

You must have installed and configured Orchid Platform

Version Support: .*

For ^13.0.1 use ^13.0.0 tag and newer.

Older versions do not have support for most of the current functionality.

For 6.* version use 2.0.5 tag.

For 5 version use 1.0.0 tag.

For 4.7.1 version use 0.0.8 tag.

How to use

  1. Install package with composer: composer require nakukryskin/orchid-repeater-field

    Latest version of laravel automatically discover package to use.

  2. Create RepeaterFields.php in your Orchid Layouts directory. Example:

  3. Simply start adding the RepeaterField::make('repeater') in your screen: Example:

  4. Open your screen and check that the repeater fields here

Advanced usage

Repeater field also support required, max and min parameters. You can add these parameters with call the RepeaterField.

If ->required() passed to the constructor automatically will set min to 1. If the user tries to delete this field, it will be prevented and show the message.

You can also change the text when deleting a block using the method ->confirmText('Are you sure that you want to delete the block?').

To show required message on save you must add this rule to your screen rules, eg. 'content.*.repeater' => 'required'

You also can rename button label with your own with method buttonLabel(). eg.

In extreme cases, if you are using some kind of dynamic data loading and you need to pass additional data to your Layout, use the ->ajaxData() method. This method can work both with a callable function and with an array of data. This can be useful when you need to filter the data for each of the fields.

To use ajaxData, first connect trait AjaxDataAccess to your Layout:

After that, on the main screen, determine what you want to transmit. In the example, we generate a list based on the current user role:

You can combine output options and what and when to output to the user in your repeater fields. Note that your Layout knows nothing about the state of the other fields on the current screen and, if you want to transfer data about the current fields you must first save the record and use the data and query of your main screen.


All versions of orchid-repeater-field with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^11.0
orchid/platform Version ^14.0
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 jeissonp/orchid-repeater-field contains the following files

Loading the files please wait ....