PHPackages                             crixuamg/microsoft-business-dynamics-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. crixuamg/microsoft-business-dynamics-sdk

AbandonedLibrary

crixuamg/microsoft-business-dynamics-sdk
========================================

Saint Systems Microsoft Dynamics 365 SDK for PHP

06PHP

Since Dec 14Pushed 3y agoCompare

[ Source](https://github.com/CrixuAMG/microsoft-business-dynamics-sdk)[ Packagist](https://packagist.org/packages/crixuamg/microsoft-business-dynamics-sdk)[ RSS](/packages/crixuamg-microsoft-business-dynamics-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Get started with the Saint Systems Microsoft Dynamics 365 SDK for PHP
=====================================================================

[](#get-started-with-the-saint-systems-microsoft-dynamics-365-sdk-for-php)

*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.*

[![Build Status](https://camo.githubusercontent.com/d7fde074683f7f6600a3dc815f4492076664d1ba2c7720c6a930b1ba3b376435/68747470733a2f2f7472617669732d63692e6f72672f7361696e7473797374656d732f64796e616d6963732d73646b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/saintsystems/dynamics-sdk-php)

For WordPress users, please see our [Gravity Forms Dynamics 365 Add-On](https://www.saintsystems.com/products/gravity-forms-dynamics-crm-add-on/).

Install the SDK
---------------

[](#install-the-sdk)

You can install the PHP SDK with Composer.

```
{
    "require": {
        "Microsoft/Dynamics": "0.1.*"
    }
}

```

Get started with Microsoft Dynamics 365
---------------------------------------

[](#get-started-with-microsoft-dynamics-365)

### Register your application

[](#register-your-application)

Register your application to use the Microsoft Dynamics 365 API by using one of the following supported authentication portals:

- [Microsoft Azure Active Directory](https://manage.windowsazure.com): Register a new application in your tenant's Active Directory to support work or school users for your tenant, or multiple tenants.
- [Microsoft Application Registration Portal](https://apps.dev.microsoft.com) (**Coming Soon**): 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.

### Authenticate with the Microsoft Graph service

[](#authenticate-with-the-microsoft-graph-service)

The Microsoft Dynamics 365 SDK for PHP does not include any default authentication implementations. Instead, you can authenticate with the library of your choice.

When authenticating, you simply need to request access to your Dynamics 365 instance URL using the `resource` parameter of Azure AD.

### Call Microsoft Dynamics 365

[](#call-microsoft-dynamics-365)

The following is an example that shows how to call Microsoft Dynamics 365 Web API.

```
use Microsoft\Dynamics\Dynamics;
use Microsoft\Dynamics\Model;

class UsageExample
{
    $instanceUrl = 'https://contoso.crm.dynamics.com';
    $accessToken = 'xxx';

    $dynamics = new Dynamics();
    $dynamics->setInstanceUrl($instanceUrl)
             ->setAccessToken($accessToken);

    $leads = $dynamics->createRequest("GET", "/leads")
                  ->setReturnType(Model\Lead::class)
                  ->execute();

    $lead = $leads[0];

    echo "Hello, I am $lead->getFirstName() ";

    // OR GET a specific lead by ID

    $lead = $dynamics->createRequest("GET", "/leads(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)")
                  ->setReturnType(Model\Lead::class)
                  ->execute();

    echo "Hello, I am $lead->getFirstName() ";
}
```

Develop
-------

[](#develop)

### Run Tests

[](#run-tests)

Run `vendor/bin/phpunit` from the base directory.

Documentation and resources
---------------------------

[](#documentation-and-resources)

- [Documentation](https://github.com/saintsystems/dynamics-sdk-php/blob/master/docs/index.html)
- [Wiki](https://github.com/saintsystems/dynamics-sdk-php/wiki)
- [Examples](https://github.com/saintsystems/dynamics-sdk-php/wiki/Example-calls)
- [Microsoft Dynamics 365 website](https://www.microsoft.com/en-us/dynamics365)
- [Microsoft Dynamics 365 Web API Documentation](https://msdn.microsoft.com/library/mt593051.aspx#documentation)

Issues
------

[](#issues)

View or log issues on the [Issues](https://github.com/saintsystems/dynamics-sdk-php/issues) tab in the repo.

Copyright and license
---------------------

[](#copyright-and-license)

Copyright (c) Saint Systems, LLC. All Rights Reserved. Licensed under the MIT [license](LICENSE).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/53958a82150b0934b189c2a8b5190a9d84d4a833181ac700bc0d1399acf1983d?d=identicon)[CrixuAMG](/maintainers/CrixuAMG)

---

Top Contributors

[![anderly](https://avatars.githubusercontent.com/u/573151?v=4)](https://github.com/anderly "anderly (41 commits)")[![CrixuAMG](https://avatars.githubusercontent.com/u/15252590?v=4)](https://github.com/CrixuAMG "CrixuAMG (4 commits)")

### Embed Badge

![Health badge](/badges/crixuamg-microsoft-business-dynamics-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/crixuamg-microsoft-business-dynamics-sdk/health.svg)](https://phpackages.com/packages/crixuamg-microsoft-business-dynamics-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
