PHPackages                             ahaschool/aha-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. [Framework](/categories/framework)
4. /
5. ahaschool/aha-php

ActiveFramework[Framework](/categories/framework)

ahaschool/aha-php
=================

Ahaschool PHP micro Framework

1.0.17(6y ago)1651MITPHPPHP &gt;=7.1.0

Since Nov 8Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (20)Used By (0)

ahaschool
=========

[](#ahaschool)

注意事项：
-----

[](#注意事项)

- 使用aha包时请使用绝对路径，如\\Aha\\Xxx:method(xxx)，方便查找管理
- 请使用lumen5.7版本

env配置示例
-------

[](#env配置示例)

```
KAFKA_APP_BROKER=127.0.0.1
KAFKA_APP_PREFIX=
KAFKA_APP_TOPIC=

KAFKA_LOG_BROKER=127.0.0.1
KAFKA_LOG_PREFIX=
KAFKA_LOG_TOPIC=

QINIU_ACCESS_KEY=xxx
QINIU_SECRET_KEY=xxx
QINIU_DOMAIN=http://bucket.xxx.com

REDIS_API_HOST=127.0.0.1
REDIS_API_PORT=
REDIS_API_PASSWORD=
REDIS_API_DATABASE

REDIS_APP_HOST=127.0.0.1
REDIS_APP_PORT=
REDIS_APP_PASSWORD=
REDIS_APP_DATABASE

```

wiki使用示例
--------

[](#wiki使用示例)

```
/**
 * 代码示例
 *
 * @tag name 中文名称
 */
class XxxController {
    /**
     * api接口1
     *
     * @api get /api/get
     * @return array \Xxx\Xxx
     */
    public function getXxx(Request $request)
    {
        // todo...
    }

    /**
     * api接口2
     *
     * @api post /api/create
     * @see in {"name":"name","type":"string","desc":""}
     * @see in {"name":"head","type":"object","desc":""}
     * @see in {"name":"head.avatar","type":"string","desc":""}
     * @see out {"name":"status","type":"integer","desc":""}
     */
    public function postXxx(Request $request)
    {
        // todo...
    }
}

class Xxx
{
    // 筛选
    public static $args = [
        'name regexp keyword|desc:关键字查询',
        'status',
    ];
    // 入参
    public static $rule = [
        'id' => 'int',
        'name' => 'string',
        'status' => 'int',
        'xxx.*.id' => 'int',
        'xxx.*.value' => 'string',
    ];
    // 定义
    public static $type = [
        'id' => 'int|desc:主键id',
        'name' => 'string|desc:名称',
        'status' => 'integer|desc:状态',
        'xxx' => 'array|relation:xxx|desc:xxx关系',
    ];
}

/**
 * api接口x
 *
 * @api post /xxx/xxx/get,create,update,status,updown
 * @see note-get x详情，只用传id
 * @see note-create x创建，不可传id
 * @see note-update x更新，传id和数据
 * @see note-status x状态，id和status
 * @see note-updown x排序，id和sort上下移
 * @source input \Xxxx\Xxx::$xxx
 * @source param {}
 * @return array \Xxx\Xxx
 * @return object {"status":{"type":"integer"}}
 */
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~37 days

Total

14

Last Release

2382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17a13dd133384bcf05e243b61cbc5cb920e3652cff625ea3239b71f5bcb0ac9a?d=identicon)[aha-school](/maintainers/aha-school)

---

Top Contributors

[![yugeme](https://avatars.githubusercontent.com/u/26247042?v=4)](https://github.com/yugeme "yugeme (2 commits)")

---

Tags

aha-phpahaschool

### Embed Badge

![Health badge](/badges/ahaschool-aha-php/health.svg)

```
[![Health](https://phpackages.com/badges/ahaschool-aha-php/health.svg)](https://phpackages.com/packages/ahaschool-aha-php)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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