biigle/ifdo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

biigle/ifdo

最新稳定版本:v1.0.1

Composer 安装命令:

composer require biigle/ifdo

包简介

iFDO Parser Package to parse and validate the iFDO JSON Schema

README 文档

README

A PHP package to read and validate iFDO v2 files.

Installation

composer require biigle/ifdo

Usage

use Biigle\Ifdo\Ifdo;

$path = __DIR__ . '/fixtures/ifdo-test-v2.0.0.json';
$obj  = Ifdo::fromFile($path);

// print errors to console if document is no valid
$obj->setDebug(true);

// check if document is valid
$obj->isValid();

// get list of errors if there are any
$obj->getErrors();

// get full json as array
$obj->getJsonData();

// shorthands to safely access info
$obj->getImageSetHeader();
$obj->getImageSetItems();

// use strict mode trigger exceptions for invalid files
$obj = Ifdo::fromString('{"some": "json"}', true);

// get json encoded string
$obj->toString();

Testing

composer test

统计信息

  • 总下载量: 5.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2024-04-02