hergend / pack-hf
A tiny package generator for Hyperf
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hergend/pack-hf
Requires
- php: ^8.0
- ext-json: *
- hyperf/command: ^3.0
- hyperf/framework: ^3.0
- hyperf/support: ^3.0
- hyperf/utils: ^3.0
- symfony/process: ^7.2
README
Tiny package generator, only creating the most bare-bone folder structure for a new (local only) package.
Installation
Install pack as a dev dependency:
composer require hergend/pack-hf --dev
Usage
!! Package names are kebab-case
, so not PascalCase
php bin/hyperf.php make:pack <package-name>
Creates the following files:
|- src/
| |- PackageServiceProvider.php
|- tests/
|- composer.json
It also sets up the correct namespacing, and registers your package in your root composer.json
.
Using this tool you can create local packages for utility classes/functionality to be shared across domains within your application easily.