PHPackages                             tokyo-lei/amaya - 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. tokyo-lei/amaya

ActiveProject[Framework](/categories/framework)

tokyo-lei/amaya
===============

Development based on composer For Amaya PHP Framework

118[1 PRs](https://github.com/Tokyo-Lei/Amaya/pulls)PHP

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Tokyo-Lei/Amaya)[ Packagist](https://packagist.org/packages/tokyo-lei/amaya)[ RSS](/packages/tokyo-lei-amaya/feed)WikiDiscussions 0.1.1 Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Amaya PHP Framework
===================

[](#amaya-php-framework)

[![Version](https://camo.githubusercontent.com/a5c926bd405271be1ff2f64b5b4e2be57991f3df3c097778cea2a7712c54a255/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312e312d677265656e2e737667)](#)[![License](https://camo.githubusercontent.com/890acbdcb87868b382af9a4b1fac507b9659d9bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](http://opensource.org/licenses/MIT)

基于Composer完成的MVC框架,自从有了依赖变成史上最最最简单的MVC！

此框架依赖第三方库：

Medoo 数据库

twig 模版引擎

whoops 调式错误

monolog 日志

macaw 路由

安装方式
----

[](#安装方式)

不了解git下载的直接下载解压缩。

如果了解composer工具的，输入：

```
composer create-project tokyo-lei/amaya 您的目录名称 0.1.1.x-dev --prefer-dist
```

然后进行依赖下载（包括解压缩必须用composer工具执行）：

```
composer update
```

最后，PHP服务器环境请对应public文件跑起。

更新日志
----

[](#更新日志)

- 新增redis缓存类
- 修正Medoo第三库问题

目录架构
----

[](#目录架构)

```
   ├─app                 前后端文件夹
      └─ admin           后端文件夹
      └─ home            前端文件夹
      └─ route.php       路由文件
   ├─config              配置文件夹
      └─ config.inc.php  站点配置文件
      └─ data.inc.php    Medoo 数据配置文件
   ├─public              域名绑定目录，包括所有图片样式放置文件夹
   ├─system              核心文件、各种函数
       └─ Arr.php        Laravel 数组类
       └─ Helper.php     函数助手
       └─ Amaya.php      核心类（只做了config全局变量）
       └─ Redis.php      缓存函数类
   .gitignore            git上传过滤文件 （可以删除）
   bootstrap.php         框架的各种加载启动文件
   composer.json         composer 配置文件，是框架重点的东西
   composer.lock         composer 锁定文件 具体使用自行百度。
   README.md             github的介绍（可以删除）
```

当下载后，目录自动生成几个文件：

```
   vendor                composer 第三方库
   cache                 前台模版缓存
   logs                  日志文件
```

\##路由隐藏index.php Apache规则(.htaccess)：

```
RewriteEngine On
RewriteBase /macaw

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ index.php [L]
```

Nginx规则（nginx.conf）： ```
autoindex off;

location / {
	try_files $uri $uri/ /index.php?/$uri;
}
```

感谢
--

[](#感谢)

Beijing . 冷雪峰
Guangzhou . 汶
Beijing . 向军
Sanming .Member

此框架继续更新中！
有疑问电邮：

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/91be4e3b3524f5dbdb8908cc35e574d0a80e9c0d9f17039e571b9c365bcb8c66?d=identicon)[ononaoki](/maintainers/ononaoki)

---

Top Contributors

[![Tokyo-Lei](https://avatars.githubusercontent.com/u/7269988?v=4)](https://github.com/Tokyo-Lei "Tokyo-Lei (47 commits)")

### Embed Badge

![Health badge](/badges/tokyo-lei-amaya/health.svg)

```
[![Health](https://phpackages.com/badges/tokyo-lei-amaya/health.svg)](https://phpackages.com/packages/tokyo-lei-amaya)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M831](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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