定制 survos/code-bundle 二次开发

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

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

survos/code-bundle

最新稳定版本:2.0.96

Composer 安装命令:

composer require --dev survos/code-bundle

包简介

generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator

README 文档

README

Generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator

Prerequistes for the demo

  • php 8.4+
  • Symfony CLI
  • meilisearch

docker-compose.yaml


The bundle requires 2 classes, but you have to explicitly request them because of being in the --dev environment.

composer require --dev survos/code-bundle nikic/php-parser nette/php-generator
symfony new --webapp playground && cd playground
composer req survos/code-bundle --dev

General Idea

When making 'controller' (lower-case), we're referring to a method in a Controller class.

Now let's create a simple command.

bin/console survos:make:command app:shout "greet someone, optionally in all caps"

https://platform.openai.com/api-keys

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-15