承接 zendserverapi/zendserverapi 相关项目开发

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

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

zendserverapi/zendserverapi

Composer 安装命令:

composer require zendserverapi/zendserverapi

包简介

Zend Server API Wrapper

README 文档

README

Master: Build Status

PHP Doc

Documentation

Installation via composer

To install the Zend Server API, your composer.json file should look like this:

{
  "repositories": [
  	{
			"type": "composer",
			"url": "http://packages.zendframework.com/"
		}
	],
  "require": {
  	"zendserverapi/zendserverapi": "dev-master"
  },
  "minimum-stability": "dev"
}

Run composer install from your project root and you should be ready to go.

Please note:You don't really need the repositories section in your composer.json - the side effect will be, that you've the whole zf2 framework installed via composer. The library still works as expected, but there will be an overhead during installation.

Configure your servers

You can find the configuration file, starting from your project root, at vendor/zendserverapi/zendserverapi/config/config.php.

A valid configfile may look like this:

<?php

return array(
  "servers" => array (
    # Contains a valid default config
    "general" => array(
      "version" => \ZendService\ZendServerAPI\Version::ZS56,
      "apiName" => "api",
      "fullApiKey" => "bee698dde6a95de71932d65cb655c31fc4ea04c1fabaf6f0a1b852617eac32ab",
      "readApiKey" => "",
      "host" => "10.0.1.100",
      "port" => "10081"
    )
  ),
  "settings" => array (
    'loglevel' => \Zend\Log\Logger::DEBUG,
    'proxyHost' => 'proxy',
    'proxyPort' => 8080
  )
);

Please note: you can manage multiple servers within this configfile:

<?php

return array(
  "servers" => array (
    # Contains a valid default config
    "general" => array(
      "version" => \ZendService\ZendServerAPI\Version::ZS56,
      "apiName" => "api",
      "fullApiKey" => "bee698dde6a95de71932d65cb655c31fc4ea04c1fabaf6f0a1b852617eac32ab",
      "readApiKey" => "",
      "host" => "10.0.1.100",
      "port" => "10081"
    ),
    "production" => array(
      "version" => \ZendService\ZendServerAPI\Version::ZSCM56,
      "apiName" => "admin",
      "fullApiKey" => "f49c7cd904b631ed1de43727a7c9ccca7324688482b19140a778d9b5020ca369",
      "readApiKey" => "",
      "host" => "10.20.30.1",
      "port" => "10081"
    ),
    "stage" => array(
      "version" => \ZendService\ZendServerAPI\Version::ZSCM56,
      "apiName" => "stageenvironment",
      "fullApiKey" => "71ce992da55734b0ad408264e721ca8cabfef4dba158ebeca3653eb290a49c00",
      "readApiKey" => "",
      "host" => "10.30.10.100",
      "port" => "10081"
    )
  ),
  "settings" => array (
    'loglevel' => \Zend\Log\Logger::DEBUG,
    'proxyHost' => 'proxy',
    'proxyPort' => 8080
  )
);

The name of the server is an (optional) parameter for every object that is used to perform actions on (Deployment, Monitor, Configuration,...). If you keep it empty, the "general" section is used as a default server.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固