PHPackages                             toancong/mdoc - 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. toancong/mdoc

ActiveLibrary[API Development](/categories/api)

toancong/mdoc
=============

Wrapper for documo api

v1.1.0(2y ago)1631MITPHP

Since Jan 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/toancong/mdoc)[ Packagist](https://packagist.org/packages/toancong/mdoc)[ RSS](/packages/toancong-mdoc/feed)WikiDiscussions master Synced 3w ago

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

About
-----

[](#about)

Wrapper for documo

Install
-------

[](#install)

```
composer require toancong/mdoc

```

Usage
-----

[](#usage)

```
// obtain api key
$apiKey = env('MDOC_API_KEY')

// instance client
$client = new \Bean\Mdoc\Client($apiKey);
```

```
// Returns your detailed user data.
$response = $client->me->get();
```

```
// Get all users for account
$response = $client->users->get();
```

```
// Get some other paths using magic

// change specific version
$response = $client->coverpages->version('')->get();

// other api path
$response = $client->other->path('fax/history')->get();
$response = $client->other->path('fax/history')->getClient()->requestWithAuth('get', 'v1/fax/history');

// other method
$response = $client->other->getClient()->requestWithAuth('post', 'v1/users', [
    'form_params' => [
        'firstName' => 'John',
        'lastName'  => 'Doe',
        'email'     => 'example@mail.com',
        'password'  => 'c.ZQdgm3WAka',
    ]
]);

// Send a fax
$response = $client->other->getClient()->requestWithAuth('post', '/v1/faxes', [
    'multipart' => [
        [
            'name'     => 'faxNumber',
            'contents' => '+12456789000',
        ],
        [
            'name'     => 'attachments',
            'contents' => fopen('/path/to/file', 'r'),
        ],
    ]
]);
```

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~452 days

Total

3

Last Release

1077d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34872712?v=4)[Nguyen Duy Toan](/maintainers/toanpc)[@toanpc](https://github.com/toanpc)

---

Top Contributors

[![toancong](https://avatars.githubusercontent.com/u/5398771?v=4)](https://github.com/toancong "toancong (3 commits)")

---

Tags

phpmdocdocumo

### Embed Badge

![Health badge](/badges/toancong-mdoc/health.svg)

```
[![Health](https://phpackages.com/badges/toancong-mdoc/health.svg)](https://phpackages.com/packages/toancong-mdoc)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M42](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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