承接 atellitech/utils-hyperf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atellitech/utils-hyperf

最新稳定版本:1.2.0

Composer 安装命令:

composer require atellitech/utils-hyperf

包简介

The utilities for Hyperf framework.

README 文档

README

composer create-project hyperf/component-creator

utils-hyperf

The utilities for Hyperf

Getting Start

Requirements

  • php8.3+

Install

$ /lib/path/composer require atellitech/utils-hyperf

Setup database connection

Model Generator

This generator is used to create model class by particular table name.

Usage

$ php bin/hyperf.php at:gen:model [--disable-event-dispatcher] [--] <table> [<namespace> [<path> [<connection>]]]

Options

  • table Table name
  • connection Database component id
  • path Store path of model class file
  • namespace Namespace of model class

Repository, ValueObject and Validator Generator

Gernerate repository, value object, validator by table and outfile file into specific domain.

Usage

$ php bin/hyperf.php at:gen:[repo|vo|validator] [--disable-event-dispatcher] [--] <table> [<domain> [<connection>]]

Options

  • table Table name
  • domain DDD Domain name

API Spec Page Generator

Generate API documentation page by namespace and path

Usage

$ php bin/hyperf.php at:gen:apidoc [options] [--] [<namespace> [<path>]]

Options

  • namespace Name of class namespace
  • path Path of generated file

Generate dependency files

Generate dependency file for Repository, Service class by scaning specific path which the default is "{root path}/app". The generated file named "autoload_denpendencies.php" which locating at "config/autoload/"

Usage

Step1 Add require file script into "config/autoload/dependencies.php"

$src = __DIR__ . '/autoload_dependencies.php';
$autoDependencies = [];
if (file_exists($src)) {
    $autoDependencies = require $src;
}

return array_merge((array) $autoDependencies, [
    // other manual dependencies
]);

Step2 Execute the command belows

$ php bin/hyperf.php at:gen:di [options] [--] [<path>]
Options
  • path Path of generated file

Step3 Setup script into "composer.json"

{
    // other configuration

    "scripts": {
        // ... other script command
        "di": "php bin/hyperf.php at:gen:di"
    }
}

统计信息

  • 总下载量: 62
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-25