jonjakoblich/neon-api-wrapper
Composer 安装命令:
composer require jonjakoblich/neon-api-wrapper
包简介
A PHP wrapper for the Neon CRM API.
README 文档
README
A strongly typed SDK for the Neon CRM API in PHP.
This is an indepently built and maintained package. This has no affiliation with NeonOne
PROJECT CURRENTLY UNDER DEVELOPMENT. Contributions are welcome.
About this SDK
- Strong focus on type safety
- Service class methods correspond to API endpoints and are type-hinted.
- Responses are type-hinted.
- Strong focus on smooth developer experience. (See examples below)
- Built on version 2.8 of the Neon CRM API specification (update to 2.9 forthcoming).
Installation
composer require jonjakoblich/neon-api-wrapper
Getting Started
There are many more methods available for each of the following services. You can see what is available by studying the code and your IDE will also hint at what is available.
Initiate Neon Client
Load the Neon Client.
use TwoJays\NeonApiWrapper\NeonClient; $apiKey = 'abc123'; // Put your real API key $organizationId = 'myOrg'; // Put your real organization ID $neon = new NeonClient($apiKey, $organizationId);
From the NeonClient instance, several services are available with methods roughly corresponding to API endpoints.
Accounts
Get a list of accounts.
use TwoJays\NeonApiWrapper\Enums\AccountSearchResultItemUserTypeEnum; $accountsList = $neon->accounts()->listAccounts( userType: AccountSearchResultItemUserTypeEnum::INDIVIDUAL->value ); // returns an instance of TwoJays\NeonApiWrapper\DataObjects\AccountSearchResultData
Get an individual account.
$account = $neon->accounts()->getAccount('123')->individualAccount; // returns an instance of TwoJays\NeonApiWrapper\DataObjects\AccountData
Get a company account.
$account = $neon->accounts()->getAccount('123')->companyAccount; // returns an instance of TwoJays\NeonApiWrapper\DataObjects\AccountData
The accounts service has additional methods for interacting with the API.
Addresses
Get an address.
$address = $neon->addresses()->getAddress('543'); // returns an instance of TwoJays\NeonApiWrapper\DataObjects\AddressData
Memberships
Get a membership's auto renewal
$autoRenewal = $neon->memberships()->getMembershipAutoRenewal('5252'); // returns an instance of TwoJays\NeonApiWrapper\DataObjects\MembershipAutoRenewalData
Contributing
As this package only contain what I need for my specific needs, it does have data transfer objects and enumerations available for things I have not needed. Contributions to build out the additional services are welcome.
Guidelines
- Fork the respository, write your contributions, submit a pull request.
- Study the existing code and write your code to match the same style.
- WRITE TESTS using Pest style testing. Submissions without tests will not be incorporated.
- I am not looking to make major changes to the architecture of this package, so please do not submit unsolicited pull requests that make major changes to architecture or existing parts. Those PRs will be closed without further review or discussion.
Thank you for taking a look!
jonjakoblich/neon-api-wrapper 适用场景与选型建议
jonjakoblich/neon-api-wrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 203 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jonjakoblich/neon-api-wrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jonjakoblich/neon-api-wrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 203
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-03