承接 darshphpdev/laravel-artisan-installer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

darshphpdev/laravel-artisan-installer

最新稳定版本:v1.0.0

Composer 安装命令:

composer require darshphpdev/laravel-artisan-installer

包简介

A Laravel Artisan-based installer for easy application setup.

README 文档

README

Laravel Artisan Installer

🚀 Laravel Artisan Installer

Latest Version on Packagist Total Downloads License

A Laravel package that provides an interactive command-line installer for easy application setup. This package helps streamline the initial configuration process of Laravel applications through an intuitive artisan command. ✨

✅ Features

  • 🖥️ Interactive command-line interface
  • ⚙️ Environment configuration setup (creates .env file if it doesn't exist)
  • 🗄️ Database configuration wizard (creates the database if it doesn't exist)
  • 🔄 Automated migration handling
  • 📊 Progress indicators for each installation step
  • 🎛️ Configurable default values

📦 Installation

Install the package via composer:

composer require darshphpdev/laravel-artisan-installer

The package will automatically register its service provider in Laravel 5.5+ applications. For older versions, manually add the service provider in config/app.php:

'providers' => [
    // ...
    DarshPhpDev\LaravelArtisanInstaller\InstallerServiceProvider::class,
],

🛠️ Configuration

Publish the configuration file:

php artisan vendor:publish --tag=installer-config

This will create a config/installer.php file where you can customize default values.

🎮 Usage

Run the installer command:

php artisan app:install

The installer will guide you through the following steps:

  1. 🌍 Environment Configuration

    • Application name
    • Application URL
    • Environment type (local/production)
  2. 💾 Database Configuration

    • Database connection type
    • Host configuration
    • Database credentials
  3. 🔄 Migration

    • Automatic database migration process

⚙️ Configuration Options

You can customize default values in config/installer.php:

return [
    'defaults' => [
        'app_name' => 'Laravel',
        'app_url' => 'http://localhost',
        'app_env' => 'local',
        'db_connection' => 'mysql',
        'db_host' => '127.0.0.1',
        'db_port' => '3306',
    ],
];

⚠️ Error Handling

The installer includes comprehensive error handling with detailed error messages for common installation issues:

  • 📝 Environment file creation failures
  • 🔌 Database connection issues
  • ❌ Migration errors

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Let's make this installer even better together! 💪

📄 License

This package is open-sourced software licensed under the MIT license.

👥 Credits

Made with ❤️ for the Laravel community

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

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