承接 eleme/fix-zeus 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

eleme/fix-zeus

最新稳定版本:0.1.2

Composer 安装命令:

composer require eleme/fix-zeus

包简介

just want to hack zeus data

README 文档

README

  • Thank for fzaninotto/Faker;
  • fix-zeus use Faker to create random data
  • Just want to fix zeus data, what is the reason? I don't want to too relay on zeus!

#Usage:

##Install with Composer

  • require fix-zeus in project
"require": {
    "eleme/fix-zeus": "~0.1"
}

##Use fix-zeus to fix date

  • Base Usage:
use Fixzeus\Factory;

$nSpace = array(
    "namespace" => "thrift service name" . "_",
    "gfix" => "GfixService_" //example
)
$path  //the special file's absolute path, the json file format see below

$fixZeusFactory = new Factory($nSpace, $path);
$fixResutl = $fixZeusFactory->fix($service, $method);
  • $service: the namespace you define in your thrift file
  • $method: the method you define in your thrift service

###Customize or range a value To define a value you want, you just write a json file like below, and give the file's absolute path to the entrace function: Factory::fix($service, $method, $path)

  • define_value: customize value for a variable
  • range_value: give the range to a variable (now just support these types: integer/date/time/datetime/unixtime/user_agent)
{
    "define_value": {
        "name": "cjp",
        "age": "22"
    },
    "range_value": {
        "integer": {
            "type": "integer",
            "min": "1",
            "max": "10"
        },
        "date": {
            "type": "date",
            "format": "Y-m-d",
            "max": "2014-11-11"
        },
        "time": {
            "type": "time",
            "format": "H:i:s",
            "max": "22:22:22"
        },
        "datetime": {
            "type": "datetime",
            "format": "Y-m-d H:i:s",
            "min": "2013-11-11 22:22:22",
            "max": "2014-11-11 22:22:22"
        },
        "unixtime": {
            "type": "unixtime",
            "max": "now"
        },
        "user_agent": {
            "type": "userAgent",
            "value": "chrome/firefox/safari/opera/internetExplorer"
        }
    }
}

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固