wp-launchpad / cli-installer
Launchpad库的初始化库
v0.0.5
2024-07-12 23:59 UTC
Requires
- ext-json: *
- wp-launchpad/cli: ^1.0.1
Requires (Dev)
- phpunit/phpunit: ^7.5 || ^8 || ^9
- wp-media/phpunit: ^3.0
This package is auto-updated.
Last update: 2024-09-13 00:22:25 UTC
README
从Launchpad框架安装库。
安装
要安装,请运行以下命令:composer require wp-launchpad/cli-installer
然后,您需要将提供者 LaunchpadCLIInstaller\ServiceProvider
添加到 /bin/generator
文件中
#!/usr/bin/php <?php use LaunchpadCLI\AppBuilder; require_once __DIR__ . '/../vendor/autoload.php'; AppBuilder::init(__DIR__ . '/../', [ \LaunchpadTakeOff\ServiceProvider::class, \LaunchpadCLIInstaller\ServiceProvider::class, ]);
创建兼容库
为了使库兼容,您需要添加以下内容
"extra": { "launchpad": { "provider" : "MyCLI\\MyProvider", "library_provider" : "MyLibrary\\MyProvider", "command": "my-command", "install": true, "clean": true, "libraries": { "owner/library": "^0.0.1" } } }