{"id":42202648,"url":"https://github.com/saintsystems/dynamics-sdk-php","last_synced_at":"2026-01-27T00:28:15.581Z","repository":{"id":81435992,"uuid":"81123986","full_name":"saintsystems/dynamics-sdk-php","owner":"saintsystems","description":"Microsoft Dynamics 365 SDK for PHP","archived":false,"fork":false,"pushed_at":"2025-09-07T07:24:32.000Z","size":289,"stargazers_count":37,"open_issues_count":5,"forks_count":29,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-14T19:23:42.044Z","etag":null,"topics":["crm","dynamics","dynamics-365","dynamics-crm","dynamics-crm-online","dynamics-crm-webapi","sdk","sdk-php","xrm"],"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/saintsystems.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}},"created_at":"2017-02-06T19:33:53.000Z","updated_at":"2024-11-21T17:33:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc25a970-9cec-4817-a12e-0afdd07177c5","html_url":"https://github.com/saintsystems/dynamics-sdk-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saintsystems/dynamics-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintsystems%2Fdynamics-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintsystems%2Fdynamics-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintsystems%2Fdynamics-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintsystems%2Fdynamics-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saintsystems","download_url":"https://codeload.github.com/saintsystems/dynamics-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintsystems%2Fdynamics-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28793127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crm","dynamics","dynamics-365","dynamics-crm","dynamics-crm-online","dynamics-crm-webapi","sdk","sdk-php","xrm"],"created_at":"2026-01-27T00:28:15.295Z","updated_at":"2026-01-27T00:28:15.573Z","avatar_url":"https://github.com/saintsystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get started with the Saint Systems Microsoft Dynamics 365 SDK for PHP\n\n*This SDK is currently in preview. Please continue to provide [feedback](https://github.com/saintsystems/dynamics-sdk-php/issues/new) as we iterate towards a production-supported library.*\n\n[![Build Status](https://travis-ci.org/saintsystems/dynamics-sdk-php.svg?branch=master)](https://travis-ci.org/saintsystems/dynamics-sdk-php)\n\nFor WordPress users, please see our [Gravity Forms Dynamics 365 Add-On](https://www.saintsystems.com/products/gravity-forms-dynamics-crm-add-on/).\n\n## Install the SDK\nYou can install the PHP SDK with Composer.\n```\n{\n    \"require\": {\n        \"Microsoft/Dynamics\": \"0.1.*\"\n    }\n}\n```\n## Get started with Microsoft Dynamics 365\n\n### Register your application\n\nRegister your application to use the Microsoft Dynamics 365 API by using one of the following\nsupported authentication portals:\n\n* [Microsoft Azure Active Directory](https://manage.windowsazure.com): Register\n  a new application in your tenant's Active Directory to support work or school\n  users for your tenant, or multiple tenants.\n* [Microsoft Application Registration Portal](https://apps.dev.microsoft.com) (**Coming Soon**):\n  Register a new application that authenticates using the v2.0 authentication endpoint. This endpoint authenticates both personal (Microsoft) and work or school (Azure Active Directory) accounts.\n\n### Authenticate with the Microsoft Graph service\n\nThe Microsoft Dynamics 365 SDK for PHP does not include any default authentication implementations.\nInstead, you can authenticate with the library of your choice.\n\nWhen authenticating, you simply need to request access to your Dynamics 365 instance URL using the `resource` parameter of Azure AD.\n\n### Call Microsoft Dynamics 365\n\nThe following is an example that shows how to call Microsoft Dynamics 365 Web API.\n\n```php\nuse Microsoft\\Dynamics\\Dynamics;\nuse Microsoft\\Dynamics\\Model;\n\nclass UsageExample\n{\n    $instanceUrl = 'https://contoso.crm.dynamics.com';\n    $accessToken = 'xxx';\n\n    $dynamics = new Dynamics();\n    $dynamics-\u003esetInstanceUrl($instanceUrl)\n             -\u003esetAccessToken($accessToken);\n\n    $leads = $dynamics-\u003ecreateRequest(\"GET\", \"/leads\")\n                  -\u003esetReturnType(Model\\Lead::class)\n                  -\u003eexecute();\n\n    $lead = $leads[0];\n\n    echo \"Hello, I am $lead-\u003egetFirstName() \";\n\n    // OR GET a specific lead by ID\n\n    $lead = $dynamics-\u003ecreateRequest(\"GET\", \"/leads(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)\")\n                  -\u003esetReturnType(Model\\Lead::class)\n                  -\u003eexecute();\n\n    echo \"Hello, I am $lead-\u003egetFirstName() \";\n}\n```\n\n## Develop\n\n### Run Tests\n\nRun ```vendor/bin/phpunit``` from the base directory.\n\n\n## Documentation and resources\n\n* [Documentation](https://github.com/saintsystems/dynamics-sdk-php/blob/master/docs/index.html)\n\n* [Wiki](https://github.com/saintsystems/dynamics-sdk-php/wiki)\n\n* [Examples](https://github.com/saintsystems/dynamics-sdk-php/wiki/Example-calls)\n\n* [Microsoft Dynamics 365 website](https://www.microsoft.com/en-us/dynamics365)\n\n* [Microsoft Dynamics 365 Web API Documentation](https://msdn.microsoft.com/library/mt593051.aspx#documentation)\n\n## Issues\n\nView or log issues on the [Issues](https://github.com/saintsystems/dynamics-sdk-php/issues) tab in the repo.\n\n## Copyright and license\n\nCopyright (c) Saint Systems, LLC. All Rights Reserved. Licensed under the MIT [license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintsystems%2Fdynamics-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaintsystems%2Fdynamics-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintsystems%2Fdynamics-sdk-php/lists"}