wp-cli/mustangostang-spyc
Composer 安装命令:
composer require wp-cli/mustangostang-spyc
包简介
A simple YAML loader/dumper class for PHP (WP-CLI fork)
README 文档
README
This is a fork of the mustangostang/spyc package, under a different name to avoid potential security issues.
See wp-cli/wp-cli#4017 for more information.
Original documentation follows below:
Spyc is a YAML loader/dumper written in pure PHP. Given a YAML document, Spyc will return an array that you can use however you see fit. Given an array, Spyc will return a string which contains a YAML document built from your data.
YAML is an amazingly human friendly and strikingly versatile data serialization language which can be used for log files, config files, custom protocols, the works. For more information, see http://www.yaml.org.
Spyc supports YAML 1.0 specification.
Using Spyc
Using Spyc is trivial:
<?php
require_once "spyc.php";
$Data = Spyc::YAMLLoad('spyc.yaml');
or (if you prefer functional syntax)
<?php
require_once "spyc.php";
$Data = spyc_load_file('spyc.yaml');
Donations, anyone?
If you find Spyc useful, I'm accepting Bitcoin donations (who doesn't these days?) at 193bEkLP7zMrNLZm9UdUet4puGD5mQiLai
wp-cli/mustangostang-spyc 适用场景与选型建议
wp-cli/mustangostang-spyc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.25M 次下载、GitHub Stars 达 6, 最近一次更新时间为 2017 年 04 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wp-cli/mustangostang-spyc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wp-cli/mustangostang-spyc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 18.25M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 35
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-25