Download the PHP package finecho/meituan without Composer

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

finecho/meituan

美团开放平台 SDK

温馨提示

⚠️ 目前仅支持美团外卖服务

安装

环境要求:

配置

使用

您可以使用三种调用方式:封装方式调用、原始方式调用 和 链式调用,请根据你的喜好自行选择使用方式,效果一致。

方式一 - 封装方式调用

方式二 - 原始方式调用

方式三 - 链式调用

你可以将需要调用的 API 以 / 分割 + 驼峰写法的形式,写成如下模式:

表单校验

如果开启表单校验,如果参数缺失或者异常,则会抛出 InvalidParamsException 异常

美团推送

在接收美团推送的时候,Server 会对签名进行校验,并返回解码后的内容

签名校验的时候, 需要将已编码的字段内容进行解码,SDK 提供属性可自行配置 decode 规则。

API

API 接口众多,每一个 API 都会注释上美团文档地址,查询困难时,可以直接搜索匹配。

:globe_with_meridians: 门店

美团门店文档

具体方法:src/Services/Store.php

:truck: 配送范围

美团配送文档

具体方法:src/Services/DeliveryRange.php

:memo: 类目

美团类目文档

具体方法:src/Services/Category.php

:beers: 菜品

美团菜品文档

具体方法:src/Services/Product.php

:page_facing_up: 订单

美团订单文档

具体方法:src/Services/Order.php

:wastebasket: 订单退款

具体方法:src/Services/Refund.php

:truck: 订单配送

具体方法:src/Services/Logistic.php

:package: 众包

具体方法:src/Services/CrowdSourcing.php

:wrench: 全局公共

具体方法:src/Services/Product.php

返回值

API Client 基于 symfony/http-client 实现,你可以通过以下方式对响应值进行访问:

在原有 Response 的基础上,增加了以下几种方法:

一个比较完整的示例

License

MIT


All versions of meituan with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
symfony/http-client Version 5.*
illuminate/validation Version 8.*
nyholm/psr7 Version 1.*
nyholm/psr7-server Version 1.*
symfony/psr-http-message-bridge Version 2.*
illuminate/support Version 8.*
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 finecho/meituan contains the following files

Loading the files please wait ....