PHPackages                             anychange/easyapidoc - 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. anychange/easyapidoc

ActiveLibrary[API Development](/categories/api)

anychange/easyapidoc
====================

A Library For Creating PHP API Document

06PHP

Since Nov 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/anychange/easyapidoc)[ Packagist](https://packagist.org/packages/anychange/easyapidoc)[ RSS](/packages/anychange-easyapidoc/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasyApiDoc
==========

[](#easyapidoc)

A Library For Creating PHP API Document

Inspired by [PhalApi doc](http://demo.phalapi.net/docs.php)

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

[](#installation)

#### Use [Composer](https://getcomposer.org/) to install the library.

[](#use-composer-to-install-the-library)

- Add the dependency to your project:

```
bash:

composer require anychange/easyapidoc:dev-master

Or:

{
    "require": {
        "anychange/easyapidoc":"dev-master"
    }
}

```

Usage
-----

[](#usage)

If You Want To Exclude One Class Or Fuction,Use '@ignore'.

### Rules：

[](#rules)

```
    /**
     * API Title
     * @Author: zjm
     * @Date  : 2019-08-06 10:16
     * @desc API Instruction
     *
     * @param string mobile true  The User Mobile
     *
     * @return string sex true The User Sex
     */
```

```
$doc =new \AnyChange\EasyApiDoc\EasyApiDoc();
//advanced option

//Set The Name Of Your Project
$this->setProjectName( 'myproject');

//Set The Basic Access Url For API Testing
$this->setApiBaseUrl('http://192.168.1.209/v1');

//Set The MenuGroup's Self Reflection
$this->setSelfMenuGroup(array ('my'=> 'My Account'));

//Set The Self Menu List Which Will Put In The Start Of The List As Default
$doc->setSelfMenuList ('introduction','API Introduction','The Document Is For The DeveloperThe Document Is For The Developer\nThe Document Is For The Developer');

//Set The Self Menu List Which Will Put In The End Of The List
$doc->setSelfMenuList ('the end','API Description','Just The End Of The Document','code instruction',array(array('Error Code','Error Message'),array('404','Not Fount')),'stop');
$doc->setSelfMenuStopList ('the end','API Description','Just The End Of The Document','',array(),'stop');

//basic useage
//Set The Namespace Of The Project
$doc->setNamespace('App\Controllers\V1');

//Set The Source Path Of The API
$doc->setApiPath(APPPATH . 'Controllers/V1');

//Show The Document
$doc->onlineShow ();
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![anychange](https://avatars.githubusercontent.com/u/40844494?v=4)](https://github.com/anychange "anychange (1 commits)")

### Embed Badge

![Health badge](/badges/anychange-easyapidoc/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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