merge-api/merge-hris-php
Composer 安装命令:
composer require merge-api/merge-hris-php
包简介
The unified API for building rich integrations with multiple HR Information System platforms.
README 文档
README
The unified API for building rich integrations with multiple HR Information System platforms.
For more information, please visit https://www.merge.dev/.
Installation & Usage
Requirements
- PHP 7.2 and later.
- guzzlehttp/guzzle 6.X OR 7.X.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/merge-api/merge-hris-php.git"
}
],
"require": {
"merge-api/merge-hris-php": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/MergeHRISClient/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: tokenAuth $config = MergeHRISClient\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = MergeHRISClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new MergeHRISClient\Api\AccountDetailsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $x_account_token = 'x_account_token_example'; // string | Token identifying the end user. try { $result = $apiInstance->accountDetailsRetrieve($x_account_token); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountDetailsApi->accountDetailsRetrieve: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.merge.dev/api/hris/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountDetailsApi | accountDetailsRetrieve | GET /account-details | |
| AccountTokenApi | accountTokenRetrieve | GET /account-token/{public_token} | |
| AsyncPassthroughApi | asyncPassthroughCreate | POST /async-passthrough | |
| AsyncPassthroughApi | asyncPassthroughRetrieve | GET /async-passthrough/{async_passthrough_receipt_id} | |
| AuditTrailApi | auditTrailList | GET /audit-trail | |
| AvailableActionsApi | availableActionsRetrieve | GET /available-actions | |
| BankInfoApi | bankInfoList | GET /bank-info | |
| BankInfoApi | bankInfoRetrieve | GET /bank-info/{id} | |
| BenefitsApi | benefitsList | GET /benefits | |
| BenefitsApi | benefitsRetrieve | GET /benefits/{id} | |
| CompaniesApi | companiesList | GET /companies | |
| CompaniesApi | companiesRetrieve | GET /companies/{id} | |
| DeleteAccountApi | deleteAccountDelete | POST /delete-account | |
| DependentsApi | dependentsList | GET /dependents | |
| DependentsApi | dependentsRetrieve | GET /dependents/{id} | |
| EmployeePayrollRunsApi | employeePayrollRunsList | GET /employee-payroll-runs | |
| EmployeePayrollRunsApi | employeePayrollRunsRetrieve | GET /employee-payroll-runs/{id} | |
| EmployeesApi | employeesCreate | POST /employees | |
| EmployeesApi | employeesIgnoreCreate | POST /employees/ignore/{model_id} | |
| EmployeesApi | employeesList | GET /employees | |
| EmployeesApi | employeesMetaPostRetrieve | GET /employees/meta/post | |
| EmployeesApi | employeesRetrieve | GET /employees/{id} | |
| EmployerBenefitsApi | employerBenefitsList | GET /employer-benefits | |
| EmployerBenefitsApi | employerBenefitsRetrieve | GET /employer-benefits/{id} | |
| EmploymentsApi | employmentsList | GET /employments | |
| EmploymentsApi | employmentsRetrieve | GET /employments/{id} | |
| FieldMappingApi | fieldMappingsCreate | POST /field-mappings | |
| FieldMappingApi | fieldMappingsDestroy | DELETE /field-mappings/{field_mapping_id} | |
| FieldMappingApi | fieldMappingsPartialUpdate | PATCH /field-mappings/{field_mapping_id} | |
| FieldMappingApi | fieldMappingsRetrieve | GET /field-mappings | |
| FieldMappingApi | remoteFieldsRetrieve | GET /remote-fields | |
| FieldMappingApi | targetFieldsRetrieve | GET /target-fields | |
| ForceResyncApi | syncStatusResyncCreate | POST /sync-status/resync | |
| GenerateKeyApi | generateKeyCreate | POST /generate-key | |
| GroupsApi | groupsList | GET /groups | |
| GroupsApi | groupsRetrieve | GET /groups/{id} | |
| IssuesApi | issuesList | GET /issues | |
| IssuesApi | issuesRetrieve | GET /issues/{id} | |
| LinkTokenApi | linkTokenCreate | POST /link-token | |
| LinkedAccountsApi | linkedAccountsList | GET /linked-accounts | |
| LocationsApi | locationsList | GET /locations | |
| LocationsApi | locationsRetrieve | GET /locations/{id} | |
| PassthroughApi | passthroughCreate | POST /passthrough | |
| PayGroupsApi | payGroupsList | GET /pay-groups | |
| PayGroupsApi | payGroupsRetrieve | GET /pay-groups/{id} | |
| PayrollRunsApi | payrollRunsList | GET /payroll-runs | |
| PayrollRunsApi | payrollRunsRetrieve | GET /payroll-runs/{id} | |
| RegenerateKeyApi | regenerateKeyCreate | POST /regenerate-key | |
| ScopesApi | defaultScopesRetrieve | GET /default-scopes | |
| ScopesApi | linkedAccountScopesCreate | POST /linked-account-scopes | |
| ScopesApi | linkedAccountScopesRetrieve | GET /linked-account-scopes | |
| SelectiveSyncApi | selectiveSyncConfigurationsList | GET /selective-sync/configurations | |
| SelectiveSyncApi | selectiveSyncConfigurationsUpdate | PUT /selective-sync/configurations | |
| SelectiveSyncApi | selectiveSyncMetaList | GET /selective-sync/meta | |
| SyncStatusApi | syncStatusList | GET /sync-status | |
| TeamsApi | teamsList | GET /teams | |
| TeamsApi | teamsRetrieve | GET /teams/{id} | |
| TimeOffApi | timeOffCreate | POST /time-off | |
| TimeOffApi | timeOffList | GET /time-off | |
| TimeOffApi | timeOffMetaPostRetrieve | GET /time-off/meta/post | |
| TimeOffApi | timeOffRetrieve | GET /time-off/{id} | |
| TimeOffBalancesApi | timeOffBalancesList | GET /time-off-balances | |
| TimeOffBalancesApi | timeOffBalancesRetrieve | GET /time-off-balances/{id} | |
| TimesheetEntriesApi | timesheetEntriesCreate | POST /timesheet-entries | |
| TimesheetEntriesApi | timesheetEntriesList | GET /timesheet-entries | |
| TimesheetEntriesApi | timesheetEntriesMetaPostRetrieve | GET /timesheet-entries/meta/post | |
| TimesheetEntriesApi | timesheetEntriesRetrieve | GET /timesheet-entries/{id} | |
| WebhookReceiversApi | webhookReceiversCreate | POST /webhook-receivers | |
| WebhookReceiversApi | webhookReceiversList | GET /webhook-receivers |
Models
- AccountDetails
- AccountDetailsAndActions
- AccountDetailsAndActionsIntegration
- AccountDetailsAndActionsStatusEnum
- AccountIntegration
- AccountToken
- AccountTypeEnum
- AdvancedMetadata
- AsyncPassthroughReciept
- AuditLogEvent
- AvailableActions
- BankInfo
- Benefit
- BenefitPlanTypeEnum
- CategoriesEnum
- CategoryEnum
- CommonModelScopeAPI
- CommonModelScopesBodyRequest
- Company
- ConditionSchema
- ConditionTypeEnum
- CountryEnum
- CreateFieldMappingRequest
- DataPassthroughRequest
- DebugModeLog
- DebugModelLogSummary
- Deduction
- Dependent
- Earning
- EarningTypeEnum
- Employee
- EmployeeEndpointRequest
- EmployeePayrollRun
- EmployeeRequest
- EmployeeResponse
- EmployerBenefit
- Employment
- EmploymentStatusEnum
- EmploymentTypeEnum
- EnabledActionsEnum
- EncodingEnum
- EndUserDetailsRequest
- ErrorValidationProblem
- EthnicityEnum
- EventTypeEnum
- ExternalTargetFieldAPI
- ExternalTargetFieldAPIResponse
- FieldMappingApiInstance
- FieldMappingApiInstanceRemoteField
- FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo
- FieldMappingApiInstanceResponse
- FieldMappingApiInstanceTargetField
- FieldMappingInstanceResponse
- FieldPermissionDeserializer
- FieldPermissionDeserializerRequest
- FlsaStatusEnum
- GenderEnum
- GenerateRemoteKeyRequest
- Group
- GroupTypeEnum
- IgnoreCommonModelRequest
- IndividualCommonModelScopeDeserializer
- IndividualCommonModelScopeDeserializerRequest
- Issue
- IssueStatusEnum
- LinkToken
- LinkedAccountCommonModelScopeDeserializerRequest
- LinkedAccountCondition
- LinkedAccountConditionRequest
- LinkedAccountSelectiveSyncConfiguration
- LinkedAccountSelectiveSyncConfigurationListRequest
- LinkedAccountSelectiveSyncConfigurationRequest
- LinkedAccountStatus
- Location
- LocationTypeEnum
- MaritalStatusEnum
- MetaResponse
- MethodEnum
- ModelOperation
- ModelPermissionDeserializer
- ModelPermissionDeserializerRequest
- MultipartFormFieldRequest
- OperatorSchema
- PaginatedAccountDetailsAndActionsList
- PaginatedAuditLogEventList
- PaginatedBankInfoList
- PaginatedBenefitList
- PaginatedCompanyList
- PaginatedConditionSchemaList
- PaginatedDependentList
- PaginatedEmployeeList
- PaginatedEmployeePayrollRunList
- PaginatedEmployerBenefitList
- PaginatedEmploymentList
- PaginatedGroupList
- PaginatedIssueList
- PaginatedLocationList
- PaginatedPayGroupList
- PaginatedPayrollRunList
- PaginatedSyncStatusList
- PaginatedTeamList
- PaginatedTimeOffBalanceList
- PaginatedTimeOffList
- PaginatedTimesheetEntryList
- PatchedEditFieldMappingRequest
- PayCurrencyEnum
- PayFrequencyEnum
- PayGroup
- PayPeriodEnum
- PayrollRun
- PolicyTypeEnum
- ReasonEnum
- RelationshipEnum
- RemoteData
- RemoteEndpointInfo
- RemoteFieldAPI
- RemoteFieldAPIResponse
- RemoteKey
- RemoteKeyForRegenerationRequest
- RemoteResponse
- RequestFormatEnum
- RequestTypeEnum
- ResponseTypeEnum
- RoleEnum
- RunStateEnum
- RunTypeEnum
- SelectiveSyncConfigurationsUsageEnum
- SyncStatus
- SyncStatusStatusEnum
- Tax
- Team
- TimeOff
- TimeOffBalance
- TimeOffEndpointRequest
- TimeOffRequest
- TimeOffResponse
- TimeOffStatusEnum
- TimesheetEntry
- TimesheetEntryEndpointRequest
- TimesheetEntryRequest
- TimesheetEntryResponse
- UnitsEnum
- ValidationProblemSource
- WarningValidationProblem
- WebhookReceiver
- WebhookReceiverRequest
Authorization
tokenAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0- Package version:
2.0.3
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
merge-api/merge-hris-php 适用场景与选型建议
merge-api/merge-hris-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 76.53k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「openapi」 「openapitools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 merge-api/merge-hris-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 merge-api/merge-hris-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 merge-api/merge-hris-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
BlockCypher's PHP SDK for REST API
Helper classes for creating cookie headers
统计信息
- 总下载量: 76.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2026-01-04