Download the PHP package msmm/mtmtz without Composer

On this page you can find all versions of the php package msmm/mtmtz. 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 mtmtz

美团美天赚-sdk

说明

提供了美团美天赚的接入鉴权封装及请求类的抽象

安装

使用

扩展

本库只实现了美团美天赚的自用接口,如果需要扩展,请参考以下步骤

  1. 添加新的接口请求类,继承Msmm\MtMtz\Requests\AbstractRequest抽象类
  2. 实现 getApiMethodName getApiParams 方法。

    如果返回值有定制结构需求

    重写抽象类 Msmm\MtMtz\Requests\AbstractRequest 的 getResult 方法即可

  3. 具体实现请参考 Msmm\MtMtz\Requests\ApiQueryOrderRequest 类

PR

有api新增或参数新增或变化,欢迎提交PR

PR编码规则如下:

  1. 命名规范
    • 类名采用 UpperCamelCase 命名法,如 ApiQueryOrderRequest
    • 属性名采用 lowerCamelCase 命名法,如 businessLine、startTime
    • 方法名采用 lowerCamelCase 命名法,如 getSid()、setBusinessLine()
  2. 类结构组织
    • 类继承自 AbstractRequest 基类
    • 属性声明在类的开头,按照功能相关性分组排列
    • 属性访问控制使用 private 修饰符
    • getter/setter 方法成对出现,按属性顺序排列
    • 核心业务方法放在类的最后,如 getApiParams() 和 getApiMethodName()
  3. 注释规范
    • 每个属性都有详细的 PHPDoc 注释,包含:
    • 业务含义说明
    • 是否必须标识
    • 数据类型声明(@var 标签)
    • 枚举值说明(适用时)
    • 类级别有功能描述注释
    • 复杂业务逻辑有详细说明
  4. 类型声明
    • 严格模式声明:declare(strict_types=1)
    • 属性类型要明确声明在注释里,是IDE可识别
    • 属性 set 和 get 方法入参和出参不可强制指定数据类型

All versions of mtmtz with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
guzzlehttp/guzzle Version >=6.3
ext-json Version *
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 msmm/mtmtz contains the following files

Loading the files please wait ...