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 3d 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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

1028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b8c3eac17d8b5e89f42e3b1a9f3770ccb5fc7052b3497cb30ab296aa6ba7184?d=identicon)[toanpc](/maintainers/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

[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

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