{"id":19506061,"url":"https://github.com/espocrm/php-espo-api-client","last_synced_at":"2025-06-12T15:05:01.136Z","repository":{"id":65062866,"uuid":"581516862","full_name":"espocrm/php-espo-api-client","owner":"espocrm","description":"PHP API client for EspoCRM","archived":false,"fork":false,"pushed_at":"2024-11-25T08:16:30.000Z","size":20,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-09T12:11:31.114Z","etag":null,"topics":["api-client","espocrm","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/espocrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2022-12-23T12:20:08.000Z","updated_at":"2025-05-28T11:37:02.000Z","dependencies_parsed_at":"2024-11-10T22:47:15.436Z","dependency_job_id":null,"html_url":"https://github.com/espocrm/php-espo-api-client","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"75bbce3976e67c20c64cade08f5df427af488020"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/espocrm/php-espo-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espocrm%2Fphp-espo-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espocrm%2Fphp-espo-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espocrm%2Fphp-espo-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espocrm%2Fphp-espo-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/espocrm","download_url":"https://codeload.github.com/espocrm/php-espo-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espocrm%2Fphp-espo-api-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490399,"owners_count":22865761,"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":["api-client","espocrm","php"],"created_at":"2024-11-10T22:35:30.267Z","updated_at":"2025-06-12T15:05:01.107Z","avatar_url":"https://github.com/espocrm.png","language":"PHP","readme":"# PHP EspoCRM API client\n\nRequire with Composer:\n\n```\ncomposer require espocrm/php-espo-api-client\n```\n\n## Usage\n\n```php\nuse Espo\\ApiClient\\Client;\nuse Espo\\ApiClient\\Header;\nuse Espo\\ApiClient\\Exception\\ResponseError;\n\n$client = new Client($yourEspoUrl);\n$client-\u003esetApiKey($apiKey);\n$client-\u003esetSecretKey($secretKey); // if you use HMAC method\n\ntry {\n    $response = $client-\u003erequest(\n        Client::METHOD_POST,\n        'Lead',\n        [\n            'firstName' =\u003e $firstName,\n            'lastName' =\u003e $lastName,\n            'emailAddress' =\u003e $emailAddress,\n        ],\n        [new Header('X-Skip-Duplicate-Check', 'true')]\n    );\n    \n    $parsedBody = $response-\u003egetParsedBody();\n} catch (ResponseError $e) {\n    // Error response.\n    $response = $e-\u003egetResponse();    \n    \n    $code = $response-\u003egetCode();\n    $body = $response-\u003egetBodyPart();\n\n    // Consider using some additional library if you need parsed response headers.\n}\n```\n\n## Changelog\n\n### 1.0.0\n\n* Using new method for constructing *X-Hmac-Authorization* header https://github.com/espocrm/php-espo-api-client/issues/2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespocrm%2Fphp-espo-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fespocrm%2Fphp-espo-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespocrm%2Fphp-espo-api-client/lists"}