PHPackages                             alexacrm/dynamics-webapi-toolkit - 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. alexacrm/dynamics-webapi-toolkit

ActiveLibrary[API Development](/categories/api)

alexacrm/dynamics-webapi-toolkit
================================

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

4.3.0(3mo ago)81324.1k—0.3%62[3 issues](https://github.com/AlexaCRM/dynamics-webapi-toolkit/issues)[2 PRs](https://github.com/AlexaCRM/dynamics-webapi-toolkit/pulls)1MITPHPPHP &gt;=8.2

Since May 18Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/AlexaCRM/dynamics-webapi-toolkit)[ Packagist](https://packagist.org/packages/alexacrm/dynamics-webapi-toolkit)[ RSS](/packages/alexacrm-dynamics-webapi-toolkit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (30)Used By (1)

Dynamics Web API Toolkit
========================

[](#dynamics-web-api-toolkit)

The Dynamics Web API Toolkit provides an easy-to-use PHP wrapper for the [Dynamics 365 Customer Engagement Web API](https://docs.microsoft.com/en-au/dynamics365/customer-engagement/developer/use-microsoft-dynamics-365-web-api).

Create, read, update and delete CRM records easily via the [IOrganizationService](https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.iorganizationservice.aspx) - compatible interface, as well as execute Web API actions and functions.

See [the tutorial](https://github.com/AlexaCRM/dynamics-webapi-toolkit/wiki/Tutorial) for the sample code to instantiate the connection, create, retrieve, update and delete records.

This toolkit supports **only** Dynamics 365 Web API. For PHP implementation of the Dynamics 365 SOAP interface, see [php-crm-toolkit project](https://github.com/AlexaCRM/php-crm-toolkit).

Features &amp; Limitations
--------------------------

[](#features--limitations)

The current release of the library does not support the following features (supported features and scenarios are mentioned along the way):

- Authentication support for IFD and On-Premises (AD) deployments. Support for IFD (Internet Facing Deployment) is on the [roadmap](https://github.com/AlexaCRM/dynamics-webapi-toolkit/projects/1), On-Premises deployments (using AD) are under consideration.
- Execute method of IOrganizationService interface is not supported yet. Means for executing functions and actions, both bound and unbound, are provided though.
- Batch requests are not supported yet. That means, associating/disassociating multiple records is executed in multiple separate requests which may affect the performance.
- Organization metadata (entities and attributes, global option sets, etc.) is not supported yet, although can be retrieved manually via the built-in OData helper client or via the HTTP client.
- Most of the record attribute values are returned as-is from Web API. That means, at this point you must expect integers in place of OptionSetValue objects for picklist values, Status/State attributes, booleans for "Two Options" attributes, and floats for decimal and Money attributes. Lookup attribute values are rendered as EntityReference objects. The same applies when you set values in the Entity, including EntityReferences. This is likely to change once organization metadata is integrated into the toolkit.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

The main requirement is PHP 7.4 or later. cURL is recommended but is not required. [Composer](https://getcomposer.org/) is required to install the toolkit and its dependencies.

### Installing

[](#installing)

```
$ composer require alexacrm/dynamics-webapi-toolkit:dev-master

```

### Consuming

[](#consuming)

See the [Tutorial](https://github.com/AlexaCRM/dynamics-webapi-toolkit/wiki/Tutorial) to learn how to consume the library.

Development
-----------

[](#development)

The version compatible with PHP 8.2 and above is now available as `v4.x-dev`. Please note that this version is still under development, and its use is at your own risk. You can install it with the following command:

```
$ composer require alexacrm/dynamics-webapi-toolkit:v4.x-dev

```

Built With
----------

[](#built-with)

- David Yack's [Xrm.Tools.CRMWebAPI](https://github.com/davidyack/Xrm.Tools.CRMWebAPI) - some code was borrowed as OData helper code
- [Guzzle](https://github.com/guzzle/guzzle) - an extensible PHP HTTP client

Versioning
----------

[](#versioning)

Toolkit uses [SemVer](http://semver.org/) for versioning.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance82

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~83 days

Recently: every ~72 days

Total

26

Last Release

112d ago

Major Versions

1.0.1 → 2.12021-01-04

2.7.1 → 3.0.02022-09-28

3.0.0 → 4.0.0-alpha2022-10-08

3.1.0 → 4.0.0-beta2023-01-21

v3.x-dev → 4.0.02025-04-15

PHP version history (6 changes)1.0PHP &gt;=7.0

2.0PHP ^7.4

2.5PHP ^7.4 || ^8.0

4.0.0-alphaPHP ^8.0

3.3.2PHP &gt;=7.4

4.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/76e79324c14d56ed2bb8e729129d16566551cc969b34f98bd760549ce2426292?d=identicon)[wizardist](/maintainers/wizardist)

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

---

Top Contributors

[![wizardist](https://avatars.githubusercontent.com/u/532481?v=4)](https://github.com/wizardist "wizardist (103 commits)")[![georged](https://avatars.githubusercontent.com/u/928254?v=4)](https://github.com/georged "georged (14 commits)")[![mrudov](https://avatars.githubusercontent.com/u/44767596?v=4)](https://github.com/mrudov "mrudov (11 commits)")[![hubipe](https://avatars.githubusercontent.com/u/617880?v=4)](https://github.com/hubipe "hubipe (1 commits)")[![janvernieuwe](https://avatars.githubusercontent.com/u/7813447?v=4)](https://github.com/janvernieuwe "janvernieuwe (1 commits)")[![likeuntomurphy](https://avatars.githubusercontent.com/u/2012253?v=4)](https://github.com/likeuntomurphy "likeuntomurphy (1 commits)")[![LucaGallinari](https://avatars.githubusercontent.com/u/5822554?v=4)](https://github.com/LucaGallinari "LucaGallinari (1 commits)")[![nidjo17](https://avatars.githubusercontent.com/u/6123774?v=4)](https://github.com/nidjo17 "nidjo17 (1 commits)")[![patrickbitzer](https://avatars.githubusercontent.com/u/43166836?v=4)](https://github.com/patrickbitzer "patrickbitzer (1 commits)")[![timgreenwood](https://avatars.githubusercontent.com/u/514451?v=4)](https://github.com/timgreenwood "timgreenwood (1 commits)")[![clwdesign](https://avatars.githubusercontent.com/u/2635191?v=4)](https://github.com/clwdesign "clwdesign (1 commits)")[![wrwrwr](https://avatars.githubusercontent.com/u/1221991?v=4)](https://github.com/wrwrwr "wrwrwr (1 commits)")[![fabianderijk](https://avatars.githubusercontent.com/u/232555?v=4)](https://github.com/fabianderijk "fabianderijk (1 commits)")[![healthierjacobsen](https://avatars.githubusercontent.com/u/40671387?v=4)](https://github.com/healthierjacobsen "healthierjacobsen (1 commits)")

---

Tags

cdsdynamics-365dynamics-crmdynamics-crm-onlinedynamics365odata-clientpowerapps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexacrm-dynamics-webapi-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/alexacrm-dynamics-webapi-toolkit/health.svg)](https://phpackages.com/packages/alexacrm-dynamics-webapi-toolkit)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[transip/transip-api-php

TransIP Rest API Library

32273.6k5](/packages/transip-transip-api-php)[tamara-solution/php-sdk

Tamara PHP Client Library

10259.4k1](/packages/tamara-solution-php-sdk)

PHPackages © 2026

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