PHPackages                             sun-asterisk/chatwork-php - 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. sun-asterisk/chatwork-php

ActiveLibrary[API Development](/categories/api)

sun-asterisk/chatwork-php
=========================

Chatwork API PHP client library

v0.2.0(5y ago)2312.2k↓69.1%10[1 PRs](https://github.com/sun-asterisk-research/chatwork-php/pulls)1MITPHPPHP &gt;=7.0

Since Aug 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sun-asterisk-research/chatwork-php)[ Packagist](https://packagist.org/packages/sun-asterisk/chatwork-php)[ RSS](/packages/sun-asterisk-chatwork-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (1)

Chatwork PHP API client library
===============================

[](#chatwork-php-api-client-library)

[![Build Status](https://camo.githubusercontent.com/0710752c73ec61ed76c74fb683e7164a91d4118e03849d6011b0bfbc755b6439/68747470733a2f2f7472617669732d63692e6f72672f73756e2d617374657269736b2d72657365617263682f63686174776f726b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sun-asterisk-research/chatwork-php)[![Latest Stable Version](https://camo.githubusercontent.com/8b9a89664c7d3056535c0f8075fa9b2e58a26df7cc7994cee4435d91e2e543c2/68747470733a2f2f706f7365722e707567782e6f72672f73756e2d617374657269736b2f63686174776f726b2d7068702f762f737461626c65)](https://packagist.org/packages/sun-asterisk/chatwork-php)[![Codecov](https://camo.githubusercontent.com/c1845e8dea25ce6a45c34372cc13ec07db064feba3da20a4c679bb6dddc46fb8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f73756e2d617374657269736b2d72657365617263682f63686174776f726b2d706870)](https://codecov.io/gh/sun-asterisk-research/chatwork-php)[![GitHub](https://camo.githubusercontent.com/973175fecb3ec775ec06c6f21328f9696e49e485e16a0d5dd681f55cad7bc406/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756e2d617374657269736b2d72657365617263682f63686174776f726b2d7068702e737667)](https://camo.githubusercontent.com/973175fecb3ec775ec06c6f21328f9696e49e485e16a0d5dd681f55cad7bc406/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756e2d617374657269736b2d72657365617263682f63686174776f726b2d7068702e737667)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0
- PHP cURL

Installation
------------

[](#installation)

Using composer:

```
composer require sun-asterisk/chatwork-php
```

Usage
-----

[](#usage)

You may register an API Token [here](https://www.chatwork.com/service/packages/chatwork/subpackages/api/token.php).

Create a chatwork client with an api token or an access token:

```
use SunAsterisk\Chatwork\Chatwork;

$chatwork = Chatwork::withAPIToken('your-api-token');

// $chatwork = Chatwork::withAccessToken('your-access-token');
```

Use chatwork client methods as these examples below:

```
// Get your personal information.
$me = $chatwork->me();

// Get your personal tasks.
$tasks = $chatwork->my()->tasks();

// Get members in a room.
$members = $chatwork->room($roomId)->members();
```

API methods are organized similar to the [official API doc](http://developer.chatwork.com/ja/endpoints.html) e.g.

Message builder
---------------

[](#message-builder)

There's a helper for easily creating message.

```
use SunAsterisk\Chatwork\Helpers\Message;

$message = new Message('Hi there')
    ->info('Cloudy', 'Weather today');

$chatwork->room($roomId)->messages()->create((string) $message);
```

You can also access it via a static method of the `Chatwork` class.

```
$message = Chatwork::message('Hi there');
```

Verify webhook payload
----------------------

[](#verify-webhook-payload)

There's also a helper for verifying the webhook payload signature.

```
use SunAsterisk\Chatwork\Helpers\Webhook;

$isValid = Webhook::verifySignature($yourWebhookToken, $requestBody, $signature);
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~148 days

Total

4

Last Release

2025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01095cc9776c6f3df56447cb6015fe03f71db5a373a2590811880231db105a35?d=identicon)[thphuong](/maintainers/thphuong)

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

---

Top Contributors

[![thphuong](https://avatars.githubusercontent.com/u/62600631?v=4)](https://github.com/thphuong "thphuong (27 commits)")[![vunt-0906](https://avatars.githubusercontent.com/u/52224331?v=4)](https://github.com/vunt-0906 "vunt-0906 (10 commits)")[![oliverquynh](https://avatars.githubusercontent.com/u/16967350?v=4)](https://github.com/oliverquynh "oliverquynh (3 commits)")[![datbnt-0905](https://avatars.githubusercontent.com/u/52224312?v=4)](https://github.com/datbnt-0905 "datbnt-0905 (1 commits)")[![TungPro](https://avatars.githubusercontent.com/u/260355029?v=4)](https://github.com/TungPro "TungPro (1 commits)")

---

Tags

chatworkchatwork-apichatwork-clientchatwork-phpchatwork-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sun-asterisk-chatwork-php/health.svg)

```
[![Health](https://phpackages.com/badges/sun-asterisk-chatwork-php/health.svg)](https://phpackages.com/packages/sun-asterisk-chatwork-php)
```

###  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)
