Download the PHP package wedocreatives/wrike-php-library without Composer
On this page you can find all versions of the php package wedocreatives/wrike-php-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wrike-php-library
Wrike PHP LIBRARY - Wrike API V3 & V4
Introduction
This is generic library for Wrike (online project management software) REST API.
This package contains general documentation for all features. This package is decoupled from unnecessary dependencies and can't be used without additional HTTP Client plugin.
- For general purpose please check full configured Wrike PHP SDK - recommended for most users.
- For Symfony Framework please check full configured Wrike bundle based on this library
- For none standard purposes please check:
- this generic Wrike PHP Library
- HTTP Client plugin based on guzzlehttp/guzzle package
- response transformer plugin based on jms/serializer package
Versions
Major Version | Wrike API | PHP Compatibility | Initial release | Support |
---|---|---|---|---|
V3 | V4 | PHP 7.1, PHP 7.2, TBD | October, 2018 | TBD |
V2 | V4 | PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1 | October, 2018 | Support ends on October, 2019 |
V1 | V3 | PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1 | February, 2018 | Support ends on February, 2019 |
Project status
General
Branch 'master'
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Contribution
To try it yourself clone the repository:
and install dependencies with composer:
Run PHPUnit tests:
Usage
All operations are immutable and stateless.
Response transformers
Response can be returned in various formats according to used response transformer
Transformer | Response | Comment |
---|---|---|
PsrResponseTransformer | Psr\Http\Message\ResponseInterface | PSR response |
PsrBodyTransformer | Psr\Http\Message\StreamInterface | PSR response body |
StringBodyTransformer | JSON string | PSR response body casted to JSON string |
ArrayBodyTransformer | array | PSR response body casted to array |
ResponseModelTransformer | ResponseModelInterface | check Response transformer plugin |
ResourceModelTransformer | ResourceModelInterface | check Response transformer plugin |
ENUM's
wedocreatives\WrikePhpLibrary\Enum\Api
- RequestMethodEnum
- RequestPathFormatEnum
- ResourceMethodEnum
- ResponseFormatEnum
namespace wedocreatives\WrikePhpLibrary\Enum
- AttachmentPreviewSizeEnum
- AttachmentTypeEnum
- CustomFieldAggregationEnum
- CustomFieldCurrencyEnum
- CustomFieldInheritanceTypeEnum
- CustomFieldTypeEnum
- CustomStatusColorEnum
- DependencyRelationTypeEnum
- InvitationStatusEnum
- LegacyEntityTypeEnum
- OptionalFieldEnum
- ProjectStatusEnum
- RescheduleModeEnum
- ScopeEnum
- SubscriptionTypeEnum
- TaskDatesTypeEnum
- TaskImportanceEnum
- TaskStatusEnum
- TreeScopeEnum
- UserRoleEnum
- UserTypeEnum
- WeekDayEnum
Breaking Changes
V2.x due to changes in Wrike API V4
Request | Replacement / Description |
---|---|
$api->getAccountResource()->getAll(); | Now returns only one (current) account |
$api->getAccountResource()->getById($accountId); | Removed |
$api->getAccountResource()->update($accountId, $params); | $api->getAccountResource()->updateDefault($params); |
$api->getAttachmentResource()->getAllForAccount($accountId); | $api->getAttachmentResource()->getAll(); |
$api->getCommentResource()->getAllForAccount($accountId); | $api->getCommentResource()->getAll(); |
$api->getContactResource()->getAllForAccount($accountId); | $api->getContactResource()->getAll(); |
$api->getCustomFieldResource()->getAllForAccount($accountId); | $api->getCustomFieldResource()->getAll(); |
$api->getCustomFieldResource()->createForAccount($accountId, $params); | $api->getCustomFieldResource()->create($params); |
$api->getFolderResource()->getAllForAccount($accountId); | $api->getFolderResource()->getAll(); |
$api->getGroupResource()->getAllForAccount($accountId); | $api->getGroupResource()->getAll(); |
$api->getGroupResource()->createForAccount($accountId, $params); | $api->getGroupResource()->create($params); |
$api->getInvitationResource()->getAllForAccount($accountId); | $api->getInvitationResource()->getAll(); |
$api->getInvitationResource()->createForAccount($accountId, $params); | $api->getInvitationResource()->create($params); |
$api->getTaskResource()->getAllForAccount($accountId); | $api->getTaskResource()->getAll(); |
$api->getTimelogResource()->getAllForAccount($accountId); | $api->getTimelogResource()->getAll(); |
$api->getWorkflowResource()->getAllForAccount($accountId); | $api->getWorkflowResource()->getAll(); |
$api->getWorkflowResource()->createForAccount($accountId, $params); | $api->getWorkflowResource()->create($params); |
V3.x due to refactoring for PHP >=7.1
- ArrayTransformer for Client JSON response is removed, only PSR response is accepted
- Strict types for method params and responses
Deprecated methods | New methods |
---|---|
$api->getAccountResource(); | $api->account(); |
$api->getAttachmentResource(); | $api->attachments(); |
$api->getColorResource(); | $api->colors(); |
$api->getCommentResource(); | $api->comments(); |
$api->getContactResource(); | $api->contacts(); |
$api->getCustomFieldResource(); | $api->customFields(); |
$api->getDependencyResource(); | $api->dependencies(); |
$api->getFolderResource(); | $api->folders(); |
$api->getGroupResource(); | $api->groups(); |
$api->getIdResource(); | $api->ids(); |
$api->getInvitationResource(); | $api->invitations(); |
$api->getTaskResource(); | $api->tasks(); |
$api->getTimelogResource(); | $api->timelogs(); |
$api->getTimelogCategoryResource(); | $api->timelogCategories(); |
$api->getUserResource(); | $api->users(); |
$api->getVersionResource(); | $api->version(); |
$api->getWorkflowResource(); | $api->workflows(); |
Reference
Internal
Full configured Wrike PHP SDK
Full configured Symfony bundle based on Wrike PHP SDK
Response transformer plugin for Wrike PHP Library
HTTP Client plugin for Wrike PHP Library
External
Official Wrike API Documentation
Package general architecture inspired by mpclarkson/freshdesk-php-library
License
This bundle is available under the MIT license.