zimmobe/miep-php-api-client
Composer 安装命令:
composer require zimmobe/miep-php-api-client
包简介
Max-immo External Partners API Client
README 文档
README
Installation
Get your preferred HTTP Client implementation
install the latest version with
$ composer require zimmobe/miep-php-api-client
Usage
use MaxImmo\ExternalParties\MiepClient; use MaxImmo\ExternalParties\Client; use MaxImmo\ExternalParties\JsonResponseEvaluator; use Http\Client\HttpClient; use Http\Message\MessageFactory; $httpClient = new HttpClient(); // Implementation of Interface $messageFactory = new MessageFactory(); // Implementation of Interface $responseEvaluator = new JsonResponseEvaluator(); $apiClient = new Client($httpClient, $messageFactory, $responseEvaluator); $miepClient = new MiepClient('client_id', 'client_secret', $apiClient);
More info: PHP-HTTP
Guzzle example
use GuzzleHttp\Client as GuzzleHttpClient; use GuzzleHttp\Psr7\HttpFactory; use MaxImmo\ExternalParties\Client; use MaxImmo\ExternalParties\JsonResponseEvaluator; use MaxImmo\ExternalParties\MiepClient; $apiClient = new Client( new GuzzleHttpClient(['base_uri' => 'https://ep.max-immo.be']), new HttpFactory(), new JsonResponseEvaluator() ); $miepClient = new MiepClient('client_id', 'client_secret', $apiClient);
Get list of available Brokers
$miepClient->getBrokers();
Get information for given Broker
$miepClient->getInformationForBroker('brokerId');
Note: Broker ID is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
Get Real Estate for Broker
$miepClient->getRealEstateListForBroker('brokerId');
Note: Broker ID is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
Get property for Broker
$miepClient->getPropertyForBroker('brokerId', 1);
Note:
- brokerId is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
- propertyId is the Max-immo property id. This Property ID will be provided in the list of available Real Estate discussed earlier.
Get project for broker
$miepClient->getProjectForBroker('brokerId', 'projectId');
Note:
- brokerId is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
- projectId is the Max-immo property id. This Project ID will be provided in the list of available Real Estate discussed earlier.
Versioning
This library will follow the classic semver versioning. The master branch will always follow the latest release.
Changes on the core of this library and added features, will be merged back to previous versions on a best effort basis.
License
The MIT License (MIT). Please see License File for more information.
zimmobe/miep-php-api-client 适用场景与选型建议
zimmobe/miep-php-api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.3k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2017 年 07 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「partner」 「miep」 「ep」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zimmobe/miep-php-api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zimmobe/miep-php-api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zimmobe/miep-php-api-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
QuickBooks DevKit with support for Intuit Anywhere, Intuit Partner Platform, Web Connector, QuickBooks Merchant Services, and more.
A PSR-7 compatible library for making CRUD API endpoints
QuickBooks DevKit with support for Intuit Anywhere, Intuit Partner Platform, Web Connector, QuickBooks Merchant Services, and more.
Partner for yii2
Partner module for dravencms
Widgets for context advertising
统计信息
- 总下载量: 2.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-25