jeyroik/extas-values-repository-items

There is no license information available for the latest version (1.0.0) of this package.

Repository items for Extas values

1.0.0 2020-05-22 11:27 UTC

This package is auto-updated.

Last update: 2024-10-22 21:54:02 UTC


README

PHP Composer codecov.io PHPStan Enabled

Описание

Пакет предоставляет обработчик значения "данные из реопзитория".

Использование

extas.json

{
  "items": [
    {
      "name": "test",
      "value": {
        "repository": "pluginRepository",
        "method": "all",
        "query": {"class": "test"},
        "field": ""
      }    
    }
  ]
}
$repoValue = new \extas\components\values\RepositoryValue($item->getValue());
if ($repoValue->isValid()) {
    $values = $repoValue->build();
}