jeyroik/extas-values-repository-items

此包的最新版本(1.0.0)没有可用的许可信息。

Extas值存储项

1.0.0 2020-05-22 11:27 UTC

This package is auto-updated.

Last update: 2024-09-22 21:37:14 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();
}