PHPackages                             yogcloud/framework - 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. yogcloud/framework

ActiveLibrary[Framework](/categories/framework)

yogcloud/framework
==================

fast Framework of YogCloud

1.20.0(3y ago)192445PHPPHP &gt;=8.0

Since Oct 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/YogCloud/fast-hyperf)[ Packagist](https://packagist.org/packages/yogcloud/framework)[ RSS](/packages/yogcloud-framework/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (11)Versions (15)Used By (0)

Fast-Hyperf
===========

[](#fast-hyperf)

[中文](./README-cn.md)

[![Latest Stable Version](https://camo.githubusercontent.com/75492247999809df7624a527e3af8ab17efd347871cdb30d33aff8f6ea941df3/687474703a2f2f706f7365722e707567782e6f72672f796f67636c6f75642f6672616d65776f726b2f76)](https://packagist.org/packages/yogcloud/framework) [![Total Downloads](https://camo.githubusercontent.com/31587c8bbfd52b33a6c471c77af002962010ea363826ffb7d52cf93287215950/687474703a2f2f706f7365722e707567782e6f72672f796f67636c6f75642f6672616d65776f726b2f646f776e6c6f616473)](https://packagist.org/packages/yogcloud/framework) [![Latest Unstable Version](https://camo.githubusercontent.com/8f351600fdc658368c874156c46ab61ecec9d856810bc6bb611e8ac29c0e7053/687474703a2f2f706f7365722e707567782e6f72672f796f67636c6f75642f6672616d65776f726b2f762f756e737461626c65)](https://packagist.org/packages/yogcloud/framework) [![License](https://camo.githubusercontent.com/8257337c7004769ee87f95e5966ffea5b119928b01d305fb3ce88eb2838147fb/687474703a2f2f706f7365722e707567782e6f72672f796f67636c6f75642f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/yogcloud/framework) [![PHP Version Require](https://camo.githubusercontent.com/4f8bfbe761dfa49c4427212473153b47f543c8008bbaaa38cfd183e786d22a7c/687474703a2f2f706f7365722e707567782e6f72672f796f67636c6f75642f6672616d65776f726b2f726571756972652f706870)](https://packagist.org/packages/yogcloud/framework)

A component based on Hyperf Framework with rapid installation

```
composer require yogcloud/framework
```

Function
========

[](#function)

supply `Controller` `Request` `Model` `Service` `Interface` Complete set of build commands

```
$ php bin/hyperf
 fs
  fs:controller        Generate controller, Generated by default in app/Controller
  fs:model             Generate Model, default generate app/Model, Automatic generated Service,Interface
  fs:request           Generate request, Generated by default in app/Request
  fs:service           Generate service, Generated by default in app/Service
  fs:serviceInterface  Generate service interface, Generated by default in app/Service
server
    server:restart       Restart hyperf servers.
    server:start         Start hyperf servers.
    server:stop          Stop hyperf servers.
```

One-click code generation for rapid development

```
php bin/hyperf.php fs:model test

Model App\Model\Test was created.
success:[/demo/app/Rpc/TestServiceInterface.php]
success:[/demo/app/Service/TestService.php]
```

Generate Code

```
    /**
     * Query single entry - by ID.
     * @param int $id ID
     * @param array|string[] $columns Query field
     * @return array
     */
    public function getOneById(int $id, array $columns = ['*']): array;

    /**
     * Query single - according to the where condition.
     * @param array $where
     * @param array|string[] $columns
     * @param array Optional ['orderByRaw'=> 'id asc', 'with' = []]
     * @return array
     */
    public function findByWhere(array $where, array $columns=['*'], array $options = []): array;

    /**
     * Query multiple - by ID.
     * @param array $ids ID
     * @param array|string[] $columns
     * @return array
     */
    public function getAllById(array $ids, array $columns = ['*']): array;

    /**
     * Query multiple items according to where criteria.
     * @param array $where
     * @param array $columns
     * @param array  ['orderByRaw'=> 'id asc', 'with' = [], 'selectRaw' => 'count(*) as count']
     * @return array
     */
    public function getManyByWhere(array $where, array $columns = ['*'], array $options = []): array;

    /**
     * Multiple pages.
     * @param array $where
     * @param array|string[] $columns
     * @param array $options  ['orderByRaw'=> 'id asc', 'perPage' => 15, 'page' => null, 'pageName' => 'page']
     * @return array
     */
    public function getPageList(array $where, array $columns = ['*'], array $options = []): array;

    /**
     * Add single.
     * @param array $data
     * @return int
     */
    public function createOne(array $data): int;

    /**
     * Add multiple.
     * @param array $data
     * @return bool
     */
    public function createAll(array $data): bool;

    /**
     * Modify single entry - according to ID.
     * @param int $id id
     * @param array $data
     * @return int
     */
    public function updateOneById(int $id, array $data): int;

    /**
     * Modify multiple - according to ID.
     * @param array $where
     * @param array $data
     * @return int
     */
    public function updateByWhere(array $where, array $data): int;

    /**
     * Delete - Single.
     * @param int $id
     * @return int
     */
    public function deleteOne(int $id): int;

    /**
     * Delete - multiple.
     * @param array $ids
     * @return int
     */
    public function deleteAll(array $ids): int;

    /**
     * Handle native SQL operations.
     * @param mixed $raw
     * @param array $where
     * @return array
     */
    public function rawWhere($raw, array $where = []): array;

    /**
     * Get a single value
     * @param string $column
     * @param array $where
     * @return string
     */
    public function valueWhere(string $column, array $where): string;
```

Multi-application development
-----------------------------

[](#multi-application-development)

Generated outside the app

Because the design was originally designed for multi-plug-in and multi-function modules

for `Hyperf/Utils/CodeGen` need to read `composer-psr4` so

```
"autoload": {
    "psr-4": {
        "App\\": "src/",
        "Demo\\Plugin\\Test": "plugin/demo/test/src/"
    }
}
```

update cache

```
composer dump-autoload -o
```

generate

```
php bin/hyperf fs:model test --path plugin/demo/test/src
```

The generated TestService can easily manipulate data and save most of the development time

> generate Service `--cache false` Cache can be disabled (enabled by default)

Cache will be generated after request, update/delete delete cache (default 9000TTL, will not occupy resources all the time)

Tips
----

[](#tips)

Looking forward to your discovery of other tips. Welcome to Pr

1. `Give a query column an alias`

```
'selectRaw' => 'sum(`id`) as sum'
```

2. `Construct to where clause by closure`

```
[function ($q) {
    $q->where('id', '=', 1)->orWhere('id', '=', 2);
}]
```

License
=======

[](#license)

Apache License Version 2.0,

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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

Total

14

Last Release

1369d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

1.20.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26520956?v=4)[ben](/maintainers/cexll)[@cexll](https://github.com/cexll)

---

Top Contributors

[![cexll](https://avatars.githubusercontent.com/u/26520956?v=4)](https://github.com/cexll "cexll (58 commits)")[![imorta3049](https://avatars.githubusercontent.com/u/110509431?v=4)](https://github.com/imorta3049 "imorta3049 (3 commits)")[![xt6pcc](https://avatars.githubusercontent.com/u/59355306?v=4)](https://github.com/xt6pcc "xt6pcc (1 commits)")

---

Tags

hyperfphpswoolephpframeworkhyperfyogcloud

###  Code Quality

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yogcloud-framework/health.svg)

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

###  Alternatives

[hypervel/framework

The Hypervel framework.

1117.8k10](/packages/hypervel-framework)[mzh/hyperf-validate

hyperf-validate 支持request 和方法场景验证，兼容tp5写法 支持控制器注解验证、方法注解验证

192.9k1](/packages/mzh-hyperf-validate)

PHPackages © 2026

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