ecodenl/ep-online-php-wrapper
Composer 安装命令:
composer require ecodenl/ep-online-php-wrapper
包简介
PHP Wrapper for the EP Online Public REST API
README 文档
README
A simple PHP wrapper for EP Online API.
Version Information
To keep versioning simple, the package version is aligned with the EP-Online API version.
| Package version | API Version | Status | PHP Version |
|---|---|---|---|
| 5.x.x | 5.x.x | Active support 🚀 | ^8.0 |
| 3.x.x | 3.x.x | No active support ❌ | ^7.4.0 | ^8.0 |
Installing
composer require ecodenl/ep-online-php-wrapper
Using the API
Read the official API docs
To get a basic understanding of what is possible and what isn't, you should read the official api docs.
Setting up the connection
use Ecodenl\EpOnlinePhpWrapper\Client; use Ecodenl\EpOnlinePhpWrapper\EpOnline; $secret = 'asecretcodeyouneedtoobtain'; // Establish the connection $client = Client::init($secret); // To get extensive logging from each request // the client accepts any logger that follows the (PSR-3 standard)[https://github.com/php-fig/log] // This example uses the logger from laravel, but feel free to pass any logger that implements the \Psr\Log\LoggerInterface $logger = \Illuminate\Support\Facades\Log::getLogger(); $client = Client::init($secret, $logger); $epOnline = EpOnline::init($client);
Resources
PandEnergielabel
// Get the available energy label for the given address (see // the official api docs (https://public.ep-online.nl/swagger/index.html) for all possible parameters $label = $epOnline->pandEnergielabel() ->byAddress([ 'postcode' => '3255MC', 'huisnummer' => 13, ]); // Search on a ID from the BAG ("adresseerbaarObjectId") $address = $epOnline->pandEnergielabel() ->byId('1924010000030064');
ecodenl/ep-online-php-wrapper 适用场景与选型建议
ecodenl/ep-online-php-wrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.04k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ecodenl/ep-online-php-wrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ecodenl/ep-online-php-wrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-02-15