定制 fireup/php-build 二次开发

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

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

fireup/php-build

Composer 安装命令:

composer require fireup/php-build

包简介

Interactive PHP development tool for creating clean, well-structured applications

README 文档

README

Interactive PHP Development Tool for Creating Clean, Well-Structured Applications

FireUp PHP Build is a comprehensive PHP development package that helps developers create clean, maintainable PHP applications through an interactive chat interface and powerful CLI tools.

✨ Features

  • 🤖 Interactive Chat Interface - Natural language development with AI assistance
  • 🏗️ Project Generation - Create complete MVC applications with one command
  • 📝 Code Generation - Generate classes, controllers, models, and functions
  • 🐛 Smart Debugging - Automatic error detection and fixing
  • 📁 File Management - Create, edit, and manage project files
  • ⚡ Development Server - Built-in server for rapid development
  • 🔧 Build System - Optimize and compile applications for production

🚀 Quick Start

Installation

Option 1: Using Composer Create Project (Recommended)

# Create a new application (requires package to be published on Packagist)
composer create-project fireup/php-build my-php-app
cd my-php-app

Option 2: Clone and create new app

# Clone the template
git clone https://github.com/kingjethro999/fireup-build.git
cd fireup-build

# Create a new application
php create-app.php my-php-app
cd my-php-app
composer install

Option 3: Use directly

# Clone and use directly
git clone https://github.com/kingjethro999/fireup-build.git my-php-app
cd my-php-app
composer install

Interactive Development

# Start interactive chat (CLI)
php artisan chat

# Start web chat interface (opens .chat/interface.html)
php artisan chat --web

# Using composer scripts
composer chat

Basic Commands

# Create a new project
php artisan create project my-awesome-app

# Start development server (serves user's index.php)
php artisan serve

# Build for production
php artisan build --production

# Debug your code
php artisan debug

# Using composer scripts
composer serve
composer build

💬 Interactive Chat Examples

The chat interface understands natural language requests:

You: Create a new PHP project called "blog"
AI: ✅ Project 'blog' created successfully with complete MVC structure!

You: Create a User model with properties name, email, password
AI: ✅ Generated User model with properties: name, email, password

You: Create a UserController with CRUD methods
AI: ✅ Generated UserController with index, show, create, store methods

You: Debug this file for syntax errors
AI: 🐛 Found and fixed 2 syntax errors in UserController.php

📁 Project Structure

When you create a new project, you get a clean, well-organized structure:

my-php-app/
├── public/              # Web root
│   └── index.php       # Entry point
├── src/                # Application source
│   ├── App.php         # Main application class
│   ├── Controllers/    # Controllers
│   └── Models/         # Models
├── config/             # Configuration files
├── templates/          # View templates
├── vendor/             # Dependencies
├── bin/                # CLI tools
│   └── php-build       # Main CLI executable
├── composer.json       # Project configuration
└── README.md          # Project documentation

🛠️ Available Commands

Chat Commands

  • php artisan chat - Interactive CLI chat
  • php artisan chat --web - Web chat interface (opens .chat/interface.html)
  • php artisan chat "Create a User model" - Direct request

Project Commands

  • php artisan create project <name> - Create new project
  • php artisan create controller <name> - Create controller
    • php artisan create model <name> - Create model
    • php artisan create class <name> - Create class

Development Commands

  • php bin/php-build serve - Start development server
  • php bin/php-build serve --port 8080 - Custom port
  • php bin/php-build build - Build application
  • php bin/php-build build --optimize - Optimized build
  • php bin/php-build build --production - Production build

Debug Commands

  • php artisan debug - Debug entire project
  • php artisan debug <file> - Debug specific file
  • php artisan debug --fix - Auto-fix issues
  • php artisan debug --verbose - Detailed output

🎯 Use Cases

For Beginners

  • Learn PHP development through interactive guidance
  • Generate boilerplate code automatically
  • Get instant feedback on code quality
  • Build complete applications step by step

For Experienced Developers

  • Rapidly prototype new features
  • Maintain consistent code structure
  • Automate repetitive development tasks
  • Debug complex applications efficiently

For Teams

  • Standardize project structure
  • Enforce coding conventions
  • Share development knowledge
  • Accelerate onboarding process

🔧 Configuration

Environment Variables

Create a .env file in your project root:

# Application
APP_ENV=development
APP_DEBUG=true
APP_URL=http://localhost:8000

# Database (if needed)
DB_HOST=localhost
DB_NAME=myapp
DB_USER=root
DB_PASS=

# Security
APP_KEY=your-secret-key-here

Custom Templates

You can customize the generated code by modifying the templates in the src/Services/CodeGenerator.php file.

🚀 Advanced Features

Web Interface

Start the web interface for a rich development experience:

php artisan chat --web --port 8000

Features:

  • Real-time chat interface
  • Project file explorer
  • Syntax validation
  • Quick action buttons
  • Chat history export

Build Optimization

Optimize your application for production:

php artisan build --production --optimize

This will:

  • Minify CSS and JavaScript
  • Remove development files
  • Optimize autoloader
  • Set production environment
  • Disable error reporting

File Watching

Watch for changes and auto-rebuild:

php artisan build --watch

📦 Publishing to Packagist

To make composer create-project fireup/php-build work, you need to publish this package to Packagist:

  1. Create a Packagist account at https://packagist.org
  2. Submit your package by providing your GitHub repository URL
  3. Set up webhook for automatic updates
  4. Tag releases in your repository

Once published, users can create new applications with:

composer create-project fireup/php-build my-app
cd my-app
php artisan serve
php artisan chat --web

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🙏 Acknowledgments

Made with ❤️ by the FireUp Team

fireup/php-build 适用场景与选型建议

fireup/php-build 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 07 月 31 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 fireup/php-build 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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