定制 opctim/symfony-bruno-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

opctim/symfony-bruno-generator

最新稳定版本:1.0.0

Composer 安装命令:

composer require opctim/symfony-bruno-generator

包简介

This bundle provides a simple command that will generate .bru files based on your registered routes using opctim/bruno-lang. Its usage is very similar to the commands of symfony/maker-bundle.

README 文档

README

This bundle provides a simple command that will generate .bru files based on your registered routes using opctim/bruno-lang. Its usage is very similar to the commands of symfony/maker-bundle.

demo.gif

Requirements

  • PHP >= 8.1
  • Symfony >= 5.4

Installation

composer require --dev opctim/symfony-bruno-generator

Usage

bin/console make:bruno

The command will guide you through the process:

How do you want to call your bruno collection? [my_collection]:
> demo

What is your application base url? [https://localhost]:
>


[OK] Created bruno collection "demo" at /var/www/html/bruno


! [NOTE] If you're finished, just terminate the command with Ctrl+C


App\Controller\ApiController
----------------------------

Do you want to generate 6 requests for the App\Controller\ApiController controller? (yes/no) [yes]:
>

Just follow along, and you'll have a basic bruno collection at your project root, which you can open & modify using your Bruno App!

Happy requesting!

Tests

Tests are located inside the tests/ folder and can be run with vendor/bin/phpunit:

composer install

vendor/bin/phpunit       

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-20