Download the PHP package uniondrug/sketch without Composer

On this page you can find all versions of the php package uniondrug/sketch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sketch

SKETCH

快速安装

  1. composer create-project - 创建项目模板指令
  2. uniondrug/sketch - 模板项目
  3. <example> - 安装的项目名称(即: 文件夹名称)

导出文档

  1. SDK
  2. MARKDOWN
  3. POSTMAN

服务注册

  1. OP - 操作类型, 可选register、deregister
  2. OPTIONS - 支持选项
    1. --env=development|testing|release|production - 指定环境名
    2. --domain=<YES|NO> - 是否以域名模式注册(默认: YES)
    3. --docker=<YES|NO> - 是否Docker容器中注册(默认: NO)
    4. --service-ip=<127.0.0.1> - 服务的IP地址或域名
    5. --service-port=<8080> - 服务的Port端口号
    6. --consul-ip=<127.0.0.1> - Consul安装的IP地址
    7. --consul-port=<8500> - Consul安装的Port端口号
    8. --app-path=<PATH> - 应用所在目录, 默认当前应用

语法

示例

构建镜像

构建镜像时, 脚本先在项目的根目录生成Dockerfiledockerfile.sh二个文件, 然后自动执行dockerfile.sh文件并生项目镜像; 项目镜像的关键参数由配置文件config/app.php文件定义的如下字段。

  1. app.dockerImage - 基础镜像名称, 默认: uniondrug:base.
  2. app.appName - 项目镜像名称
  3. app.appVersion - 项目镜像版本

快速生成

手动生成


All versions of sketch with dependencies

PHP Build Version
Package Version
Requires uniondrug/framework Version ^2.0
uniondrug/http-client Version ^2.0
uniondrug/register Version ^2.0
uniondrug/service Version ^2.0
uniondrug/service-sdk Version 2.x-dev
uniondrug/structs Version ^2.0
uniondrug/validation Version ^2.0
uniondrug/phar Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uniondrug/sketch contains the following files

Loading the files please wait ....