{"id":15286057,"url":"https://github.com/apideck-libraries/php-sdk","last_synced_at":"2025-04-13T03:08:05.147Z","repository":{"id":37861955,"uuid":"478896062","full_name":"apideck-libraries/php-sdk","owner":"apideck-libraries","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-11T00:11:48.000Z","size":22764,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T01:21:32.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apideck-libraries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-07T08:34:28.000Z","updated_at":"2025-04-04T12:53:36.000Z","dependencies_parsed_at":"2023-09-29T11:18:10.241Z","dependency_job_id":"6b538fbf-be80-4c3b-9548-6e154ceba5b1","html_url":"https://github.com/apideck-libraries/php-sdk","commit_stats":{"total_commits":321,"total_committers":4,"mean_commits":80.25,"dds":0.02180685358255452,"last_synced_commit":"1cb8794406586ae854dc75461fd0849a09859623"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apideck-libraries","download_url":"https://codeload.github.com/apideck-libraries/php-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248324095,"owners_count":21084646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T15:10:19.371Z","updated_at":"2025-04-13T03:08:05.128Z","avatar_url":"https://github.com/apideck-libraries.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Apideck PHP SDK\n\n\u003e ⚠️ **DEPRECATION NOTICE**: This SDK is deprecated and will be archived on May 31, 2025. Please transition to the [new SDK](https://github.com/apideck-libraries/sdk-php) before this date. After May 31, 2025, this repository will be archived and will no longer receive any updates. To support you during this transition please refer to our [migration guide](https://developers.apideck.com/guides/sdk-migration).\n\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Installation](#installation)\n- [Getting started](#getting-started)\n- [Example](#example)\n- [Support](#support)\n- [License](#license)\n\n## Installation\n\n### Requirements\n\nPHP 7.3 and later.\nShould also work with PHP 8.0 but has not been tested.\n\n### Composer\n\nInstall the latest SDK using composer:\n\n```console\n$ composer require apideck-libraries/php-sdk\n```\n\n## Getting started\n\nThe module supports all Apideck API endpoints. For complete information about the API, head\nto the [docs][2].\n\n\n### Configuration\n\nA new Apideck instance is initialized by passing in required settings to the configuration.\n\n```\u003c?php\nrequire('vendor/autoload.php');\n\nuse Apideck\\Client\\Apideck;\nuse Apideck\\Client\\ApideckConfiguration;\n\n$config = new ApideckConfiguration('\u003cinsert-api-key-here\u003e', '\u003cinsert-application-id-here\u003e', '\u003cinsert-consumer-id-here\u003e');\n$apideck = new Apideck($config);\n```\n\nTop level parameters (except for apiKey) can be overriden in specific resource calls.\n\n```php\n\n\u003c?php\n// Declare Unify Api to use\n$crmApi = $apideck-\u003egetCrmApi();\n\n// Override consumerId serviceId as declared in initial configuration for this operation.\n$serviceId = 'salesforce';\n$response = $crmApi-\u003econtactsAll(\n  false,\n  null,\n  null,\n  $serviceId,\n  null,\n  10\n);\n```\n\n## Example\n\nRetrieving a list of all contacts and updating the first record with a new address.\n\n```php\n\u003c?php\nrequire('vendor/autoload.php');\n\nuse Apideck\\Client\\Apideck;\nuse Apideck\\Client\\ApideckConfiguration;\nuse Apideck\\Client\\Model\\Contact;\nuse Apideck\\Client\\Model\\Address;\nuse Apideck\\Client\\Model\\PhoneNumber;\n\n$config = new ApideckConfiguration('\u003cinsert-api-key-here\u003e', '\u003cinsert-application-id-here\u003e', '\u003cinsert-consumer-id-here\u003e');\n$apideck = new Apideck($config);\n\n$crmApi = $apideck-\u003egetCrmApi();\n\n$response = $crmApi-\u003econtactsAll(false, null, null, $serviceId, null, 10);\n\n$data = $response-\u003egetData();\n$result = $crmApi-\u003econtactsUpdate([\n  $data[0]-\u003egetId(),\n  new Contact([\n    \"name\" =\u003e \"John Doe\",\n    \"first_name\" =\u003e \"John\",\n    \"last_name\" =\u003e \"Doe\",\n    \"addresses\" =\u003e [\n      new Address([\n        \"city\" =\u003e \"Hoboken\",\n        \"line1\" =\u003e \"Streetname 19\",\n        \"state\" =\u003e \"NY\"\n      ])\n    ],\n    \"phone_numbers\" =\u003e [\n      new PhoneNumber([\n        \"number\" =\u003e \"0486565656\",\n        \"phoneType\" =\u003e \"home\"\n      ])\n    ]\n  ])\n]);\n\nvar_dump($result);\n```\n\n\u003ca name=\"documentation-for-api-endpoints\"\u003e\u003c/a\u003e\n## Apideck Unified Apis\n\nThe following Apis are currently available:\n\n### AccountingApi\n\nRead the full documentation of the AccountingApi [here](./src/gen/docs/apis/AccountingApi.md).\n\n### AtsApi\n\nRead the full documentation of the AtsApi [here](./src/gen/docs/apis/AtsApi.md).\n\n### ConnectorApi\n\nRead the full documentation of the ConnectorApi [here](./src/gen/docs/apis/ConnectorApi.md).\n\n### CrmApi\n\nRead the full documentation of the CrmApi [here](./src/gen/docs/apis/CrmApi.md).\n\n### EcommerceApi\n\nRead the full documentation of the EcommerceApi [here](./src/gen/docs/apis/EcommerceApi.md).\n\n### FileStorageApi\n\nRead the full documentation of the FileStorageApi [here](./src/gen/docs/apis/FileStorageApi.md).\n\n### HrisApi\n\nRead the full documentation of the HrisApi [here](./src/gen/docs/apis/HrisApi.md).\n\n### IssueTrackingApi\n\nRead the full documentation of the IssueTrackingApi [here](./src/gen/docs/apis/IssueTrackingApi.md).\n\n### LeadApi\n\nRead the full documentation of the LeadApi [here](./src/gen/docs/apis/LeadApi.md).\n\n### PosApi\n\nRead the full documentation of the PosApi [here](./src/gen/docs/apis/PosApi.md).\n\n### SmsApi\n\nRead the full documentation of the SmsApi [here](./src/gen/docs/apis/SmsApi.md).\n\n### VaultApi\n\nRead the full documentation of the VaultApi [here](./src/gen/docs/apis/VaultApi.md).\n\n### WebhookApi\n\nRead the full documentation of the WebhookApi [here](./src/gen/docs/apis/WebhookApi.md).\n\n\n## Support\n\nOpen an [issue][3]!\n\n## License\n\n[MIT][4]\n\n[1]: https://apideck.com\n[2]: https://developers.apideck.com/\n[3]: https://github.com/apideck-libraries/php-sdk/issues/new\n[4]: https://github.com/apideck-libraries/php-sdk/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapideck-libraries%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Fphp-sdk/lists"}