PHPackages                             test-lin/yaf - 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. test-lin/yaf

ActiveProject[Framework](/categories/framework)

test-lin/yaf
============

The DIY yaf Framework.

v1.0.0(6y ago)16MITPHPPHP &gt;=7.0

Since Oct 23Pushed 5y ago1 watchersCompare

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

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

自封装 yaf 框架
==========

[](#自封装-yaf-框架)

环境要求
----

[](#环境要求)

- php7.0+
    - yaf
    - yar
- composer

安装
--

[](#安装)

composer create-project --prefer-dist test-lin/yaf blog

配置
--

[](#配置)

1、nginx 站点

```
server {
    listen 80;
    root   /var/www/yaf-framework/public;
    server_name www.yaf.com;
    index  index.php;

    charset utf-8;
    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }
    error_log  /var/log/nginx/yaf.log error;

    location / {
        if (!-e $request_filename) {
            rewrite ^/(.*)$  /index.php?$1 last;
        }
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}

```

开发规范
----

[](#开发规范)

- 基础规范 RSP-4
- 文件夹命名：全英文小写
- 类文件及类名命名：大驼峰
- 变量、类属性命名：小驼峰
- 常量命名：大写英文 + 下划线
- 类方法命名：小驼峰
- 函数命名：小写英文 + 下划线
- 无任何关联的函数全部放置在公共函数中

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14df55b6f358684babf5a4bcf624a2746c1f403021b04789d68340bc17c9b52a?d=identicon)[test-lin](/maintainers/test-lin)

---

Top Contributors

[![test-lin](https://avatars.githubusercontent.com/u/12641322?v=4)](https://github.com/test-lin "test-lin (2 commits)")

---

Tags

frameworkyaf

### Embed Badge

![Health badge](/badges/test-lin-yaf/health.svg)

```
[![Health](https://phpackages.com/badges/test-lin-yaf/health.svg)](https://phpackages.com/packages/test-lin-yaf)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[topthink/framework

The ThinkPHP Framework.

2.8k3.2M1.3k](/packages/topthink-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)

PHPackages © 2026

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