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

ActiveLibrary[API Development](/categories/api)

surveygizmo/dynamics-webapi-toolkit
===================================

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM (with PHP 5.6 support)

015PHP

Since Nov 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SurveyGizmoOfficial/dynamics-webapi-toolkit)[ Packagist](https://packagist.org/packages/surveygizmo/dynamics-webapi-toolkit)[ RSS](/packages/surveygizmo-dynamics-webapi-toolkit/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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 5.6 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 surveygizmo/dynamics-webapi-toolkit:dev-master

```

### Consuming

[](#consuming)

Example:

```
