prevailexcel/botstart 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

prevailexcel/botstart

Composer 安装命令:

composer require prevailexcel/botstart

包简介

A single command to install Laravel, BotMan, and all the essentials. Start building in less than 3 minutes

README 文档

README

BotStart Logo

BotStart CLI

No more complicated BotMan in Laravel setups.

The BotStart CLI helps you set up BotMan projects in Laravel. It provides a single command that automates the installation of BotMan dependencies, creates necessary BotMan files and configurations, and sets up a fresh Laravel project (of your choice or the latest one) if one is not already installed.

Installation

To install the BotStart CLI, you need to use Composer. Run the following command to download the BotStart CLI globally:

composer global require prevailexcel/botstart

Configuration

After installing, ensure that the $HOME/.composer/vendor/bin directory (or the equivalent directory for your operating system) is included in your $PATH. This allows your system to locate the botstart executable.

Creating a New Laravel and BotMan Project

Once the installer is set up, you can create a new Laravel and BotMan project using the botstart new {project-name} {laravel-version} command. Replace your_project_name with the desired name for your project:

botstart new your_project_name 10

For example, to create a project with Laravel 11 named weatherbot, you would run:

botstart new weatherbot 11

This command will create a directory named weatherbot containing a fresh Laravel 11 Project with everything you need to get started, including a Tinker.

If you already have a Laravel project started at that directory, it will go ahead to setupp botman for you there without any extra command.

To use the tinker, simply run

php artisan botman:tinker

BotStart installs a modified botman/tinker package which you can get here https://github.com/prevailexcel/botman-tinker.

Web Widget

This installer also gives you the webwidget to test your bot immediately. Simply run your project and go to the welcome or base url.

php artisan serve

Then go to http://127.0.0.1:8000 or whereever your project is served.

What exactly does it do?

  • Installs BotMan dependencies:
    • botman/botman
    • botman/driver-web
    • botman/driver-telegram
    • prevailexcel/botman-tinker: A modified version of botman/tinker, available here: prevailexcel/botman-tinker.
  • Creates necessary configuration files, including:
    • Routes
    • Controllers
    • Environment variables
  • Sets up BotMan's default route and includes a simple hello command.
  • Configures CSRF exceptions for BotMan in Laravel.

Documentation

You can find the BotMan and BotMan Studio documentation at http://botman.io.

If you want to thank me?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word! Big Thanks to Marcel Pociot for creating the BotMan project. I simply want to make it a lot easier for more developers.

Thanks! Chimeremeze Prevail Ejimadu

License

The MIT License (MIT). Please see License File for more information.

prevailexcel/botstart 适用场景与选型建议

prevailexcel/botstart 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 65 次下载、GitHub Stars 达 12, 最近一次更新时间为 2024 年 12 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「bot framework」 「Botman」 「BotMan Studio」 「laravel cli」 「botman studio installer」 「botman studio laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 prevailexcel/botstart 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 prevailexcel/botstart 我们能提供哪些服务?
定制开发 / 二次开发

基于 prevailexcel/botstart 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-24