tda/laravel-netcup
Composer 安装命令:
composer require tda/laravel-netcup
包简介
Netcup integration for laravel 8
README 文档
README
Netcup API for Laravel Based on: https://ccp.netcup.net/run/webservice/servers/endpoint.php
Requirements • PHP >= 8.1
• Composer
• Laravel >= 8.0
Installation
composer require tda/laravel-netcup
Usage
Inside Laravel:
use Tda\LaravelNetcup\Netcup; $clientRequestId = 'your_id'; //optional $client = new Netcup($clientRequestId);
originally the keys are read from config in 'services.netcup' as:
('services.netcup.api_key'), ('services.netcup.api_password'), ('services.netcup.customer_number')
It is possible to set different location, e.g.:
$netcup->setConfig('apis.netcup');
by standard it uses REST, but it can be changed to use SOAP
$netcup->useSoap();
Features
Domain
List all domains
$domains = $netcup->listAllDomains(); //it return as Collection
Get info from a domain from Netcup
$domain = $netcup->infoDomain('mydomain.com');
Search for domain
$domain = $netcup->searchDomain('somedomain.com');
Get the Top level domain price
$price = $netcup->priceTopLevelDomain('de');
Get Auth code from domain name
$authcode = $netcup->getAuthCodeDomain('somedomain.com'); //or from a domain object $domain = $netcup->infoDomain('mydomain.com'); $authcode = $netcup->getAuthCodeDomain($domain);
Create a domain
(under construction)
$contact = new Tda\LaravelNetcup\Contactentries; $contact->ownerc = {Id of contact handle}; // obligatory $contact->adminc = {Id of contact handle}; $contact->techc = {Id of contact handle}; $contact->zonec = {Id of contact handle}; $contact->billingc = {Id of contact handle}; $contact->onsitec = {Id of contact handle}; $contact->generalrequest = {Id of contact handle}; $contact->abusecontact = {Id of contact handle}; $domain = $netcup->createDomain('mydomain.com', $contact);
Update a domain
(under construction)
Cancel a domain
(under construction)
Transfer a domain
(under construction)
Change owner of a domain
(under construction)
Handle
List all handles from Netcup
$handles = $netcup->listAllHandle(); //it return as Collection
Get Handle info
$handle = $netcup->infoHandle($handle_id);
Create Handle
$newHandle = new \Tda\LaravelNetcup\NetcupHandle(); $newHandle->type = 'organisation'; $newHandle->name = 'Your Lame'; $newHandle->organisation = 'Your organisation name'; $newHandle->street = 'Street'; $newHandle->type = 'organisation'; //(person|organisation|role|request) $newHandle->postalcode = "0000"; $newHandle->city = "City"; $newHandle->countrycode = "DE"; $newHandle->telephone = "telefone number"; $newHandle->email = "your@email.com"; $newHandle->assignedtodomain = true; $response = $netcup->createHandle($newHandle);
Update Handle
$handle = $netcup->infoHandle($handle_id); $hande->email = "new@email.com"; $response = $netcup->updateHandle($handle);
Delete Handle
$handle = $netcup->infoHandle($handle_id); $response = $netcup->deleteHandle($handle);
DNS
Zones
accepts only domain registered on Netcup
Get Zone DNS from a domain
$response = $netcup->infoDnsZone('somedomain.com'); //or from the Domain object $domain = $netcup->infoDomain('mydomain.com'); $response = $netcup->infoDnsZone($domain);
updateDnsZone
(Under construction)
Records
accepts only domain registered on Netcup
Get DNS Records from a domain
$response = $netcup->infoDnsRecords('yourdomain.com'); //or from the Domain object $domain = $netcup->infoDomain('mydomain.com'); $response = $netcup->infoDnsRecords($domain);
updateDnsRecords
(Under construction)
Poll
List all poll
$messageCount = 10; // optional; standard = 50 $response = $netcup->poll($messageCount);
Acknowledge a message
$response = $netcup->ackPoll($poll_id);
License This project is licensed under the MIT License - see the LICENSE file for details.
tda/laravel-netcup 适用场景与选型建议
tda/laravel-netcup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 06 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「netcup」 「tda」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tda/laravel-netcup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tda/laravel-netcup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tda/laravel-netcup 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
GA4 integration for laravel 8
Alfabank REST API integration
Google Analytics Admin integration with oAuh2
Google Analytics Admin integration with oAuh2
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-12