PHPackages                             dynamics-tools/dynamics-web-api-php-wrapper - 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. [API Development](/categories/api)
4. /
5. dynamics-tools/dynamics-web-api-php-wrapper

ActiveLibrary[API Development](/categories/api)

dynamics-tools/dynamics-web-api-php-wrapper
===========================================

PHP 8.1 wrapper for Microsoft Dynamics Web API

1.0.1.1(1y ago)1387PHPPHP ^8.2

Since Aug 29Pushed 1y agoCompare

[ Source](https://github.com/dynamics-tools/web-api-php-wrapper)[ Packagist](https://packagist.org/packages/dynamics-tools/dynamics-web-api-php-wrapper)[ RSS](/packages/dynamics-tools-dynamics-web-api-php-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Dynamics Web API PHP Wrapper
============================

[](#dynamics-web-api-php-wrapper)

Introduction
------------

[](#introduction)

This package is not intended to be an in-depth SDK for Microsoft Dynamics. Its main purpose is to simplify the process of authentication and request setup for users of Dynamics Web API.

Authentication
--------------

[](#authentication)

We utilize server-to-server OAuth authentication via an application user. To successfully authenticate, you'll need to set the following environment variables:

**APPLICATION\_ID**: Application (Client) ID

**APPLICATION\_SECRET**: Application (Client) Secret

**TENANT\_ID**: Tenant ID

**INSTANCE\_URL**: Dynamics (Instance) URL

API Documentation
-----------------

[](#api-documentation)

The API documentation for this version of the Dynamics Web API can be found [here](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/about?view=dataverse-latest).

Usage Example
-------------

[](#usage-example)

Ensure the environment variables are set before running the example.

### Using the Client

[](#using-the-client)

```
use DynamicsWebApi\Client;
use DynamicsWebApi\ClientFactory;

require_once 'vendor/autoload.php';

$client = Client::createInstance();
$response = $client->request('/CloneAsSolution', 'POST', [
'ParentSolutionUniqueName' => 'MySolution',
'DisplayName' => 'MySolution',
'VersionNumber' => '1.12.0.0'
]);

$responseJson = json_decode($response->getBody()->getContents(), true);
echo $responseJson['SolutionId'];
```

### Using the Helper

[](#using-the-helper)

```
use DynamicsWebApi\Helper;

require_once 'vendor/autoload.php';

$helper = new Helper();
$helper->updateEntity('pluginassemblies', '38938383-383838-392912-192882', ['name' => 'MyPluginAssembly'], '9.2');
$helper->publishAllChanges();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~161 days

Total

3

Last Release

670d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfcab0ea5644ce33687198d54ff5838f6a9279799da02a2cfc1a22c5dc10501e?d=identicon)[adammcgurk](/maintainers/adammcgurk)

---

Top Contributors

[![Mcgurk-Adam](https://avatars.githubusercontent.com/u/30099797?v=4)](https://github.com/Mcgurk-Adam "Mcgurk-Adam (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dynamics-tools-dynamics-web-api-php-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/dynamics-tools-dynamics-web-api-php-wrapper/health.svg)](https://phpackages.com/packages/dynamics-tools-dynamics-web-api-php-wrapper)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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