PHPackages                             myf/core - 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. myf/core

ActiveLibrary

myf/core
========

my framework core

v1.1.0(7y ago)5561MITPHP

Since May 23Pushed 7y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (1)

myf-core
========

[](#myf-core)

介绍
--

[](#介绍)

myf means 'my framework'

我一直想自己做个简单的不能再简单的PHP框架，为了少一件心事，所以抽了点时间搞出来。

原则
--

[](#原则)

- 框架核心myf-core作为composer library发布
- 框架脚手架myf-app作为composer project发布，依赖myf-core包
- 支持多应用开发，共享公共代码
- 基于namespace的类自动加载
- 没有IOC容器，namespace本身就是单例
- 没有框架基类，不绑架开发者习惯，PHP原汁原味

组成
--

[](#组成)

### myf\\App

[](#myfapp)

框架入口，解决几个核心问题：

- 加载框架配置文件
- 调试/生产环境 - 错误级别切换
- 全局异常捕获
- 类自动加载
- 解析URI，完成到Controller类的路由

### myf\\View

[](#myfview)

视图层，渲染给定的视图文件

### myf\\Http

[](#myfhttp)

HTTP客户端，CURL库的封装

### myf\\Mysql

[](#myfmysql)

MYSQL主从分离客户端，PDO库的封装

### myf\\Redis

[](#myfredis)

Redis主从/集群客户端，Phpredis库的封装

### myf\\Elasticsearch

[](#myfelasticsearch)

Elasticsearch客户端，官方库的封装

### myf\\Exception...

[](#myfexception)

自定义异常类

myf/app 脚手架
-----------

[](#myfapp-脚手架)

基于脚手架，一键生成项目：

[myf-app](https://github.com/owenliang/myf-app)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

2899d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78f9de07f2013cb165058bdd715f8ee54d40781f1989c00bf3cfc9bf66ceb713?d=identicon)[owenliang](/maintainers/owenliang)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/myf-core/health.svg)

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

###  Alternatives

[shopware/shopware

Shopware 5 is an open source e-commerce software made in Germany

1.3k746.6k35](/packages/shopware-shopware)[ongr/elasticsearch-bundle

Elasticsearch bundle for Symfony.

3151.1M15](/packages/ongr-elasticsearch-bundle)[sleimanx2/plastic

Plastic is an Elasticsearch ODM and mapper for Laravel. It renders the developer experience more enjoyable while using Elasticsearch by providing a fluent syntax for mapping , querying and storing eloquent models.

508141.9k1](/packages/sleimanx2-plastic)[hyperf-ext/scout

The Hyperf Scout package.

106.7k](/packages/hyperf-ext-scout)

PHPackages © 2026

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