wp-twinfield/twinfield
Composer 安装命令:
composer require wp-twinfield/twinfield
包简介
Twinfield library for WordPress.
README 文档
README
Important
This library/repository is deprecated since November 6, 2024, for a more up-to-date library/repository please see https://github.com/pronamic/wp-twinfield.
Documentation
Examples
See the examples/ directory for examples of the key client features. You can
view them in your browser by running the php built-in web server.
$ php -S localhost:8000 -t examples/
And then browsing to the host and port you specified
(in the above example, http://localhost:8000).
Environment variables
export TWINFIELD_USER=
export TWINFIELD_PASSWORD=
export TWINFIELD_ORGANISATION=
export TWINFIELD_OFFICE_CODE=
export TWINFIELD_ARTICLE_CODE=
export TWINFIELD_SUBARTICLE_CODE=
export TWINFIELD_CUSTOMER_CODE=
export TWINFIELD_SALES_INVOICE_TYPE=
export TWINFIELD_SALES_INVOICE_NUMBER=
Travis CI
travis encrypt TWINFIELD_USER=$TWINFIELD_USER --add env.global
travis encrypt TWINFIELD_PASSWORD=$TWINFIELD_PASSWORD --add env.global
travis encrypt TWINFIELD_ORGANISATION=$TWINFIELD_ORGANISATION --add env.global
travis encrypt TWINFIELD_OFFICE_CODE=$TWINFIELD_OFFICE_CODE --add env.global
travis encrypt TWINFIELD_ARTICLE_CODE=$TWINFIELD_ARTICLE_CODE --add env.global
travis encrypt TWINFIELD_CUSTOMER_CODE=$TWINFIELD_CUSTOMER_CODE --add env.global
travis encrypt TWINFIELD_SALES_INVOICE_TYPE=$TWINFIELD_SALES_INVOICE_TYPE --add env.global
travis encrypt TWINFIELD_SALES_INVOICE_NUMBER=$TWINFIELD_SALES_INVOICE_NUMBER --add env.global
Debug PHP SOAP
var_dump( $this->get_wsdl_url() ); var_dump( $this->soap_client->__getFunctions() ); var_dump( $this->soap_client->__getTypes() ); try { $test = $this->soap_client->Query( $test ); } catch ( \Exception $e ) { var_dump( $e ); } echo "REQUEST:\n" . $this->soap_client->__getLastRequest() . "\n";
To-do
$client = new Client( $client_id, $client_secret, $redirect_uri ); $client->set_access_token( ... ); if ( $client->is_access_token_expired() ) { } $authentication = {} $authentication->get_user(); $authentication->get_user()->get_organisation(); $authentication->get_organisation(); $authentication->get_cluster_url(); $authentication->get_organisation()->get_offices(); $client = $authentication->get_client(); $client->get_organisation_service(); $offices = $organisation_service->get_offices();
Inspiration
- https://github.com/KnpLabs/php-github-api
- https://github.com/J7mbo/twitter-api-php
- https://github.com/galen/PHP-Instagram-API
- https://github.com/drewm/mailchimp-api
- https://github.com/Happyr/LinkedIn-API-client
- https://github.com/okwinza/cloudflare-api
- https://github.com/jcroll/foursquare-api-client
- https://github.com/googleapis/google-api-php-client
- https://developers.google.com/gmail/api/quickstart/php
Design Patterns
Other
- http://www.accountingcoach.com/blog/accounts-payable-accounts-receivable
- http://blog.fedecarg.com/2009/03/12/domain-driven-design-and-data-access-strategies/
- http://stackoverflow.com/questions/3056447/design-pattern-for-loading-multiple-message-types
- http://www.servicedesignpatterns.com/requestandresponsemanagement/datatransferobject
- http://stackoverflow.com/questions/29592216/how-should-i-store-metadata-in-an-object
- https://secure.php.net/soundex
wp-twinfield/twinfield 适用场景与选型建议
wp-twinfield/twinfield 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 645 次下载、GitHub Stars 达 3, 最近一次更新时间为 2015 年 09 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wp-twinfield/twinfield 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wp-twinfield/twinfield 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 645
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2015-09-03