darshphpdev/laravel-artisan-installer
Composer 安装命令:
composer require darshphpdev/laravel-artisan-installer
包简介
A Laravel Artisan-based installer for easy application setup.
README 文档
README
🚀 Laravel Artisan Installer
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:
-
🌍 Environment Configuration
- Application name
- Application URL
- Environment type (local/production)
-
💾 Database Configuration
- Database connection type
- Host configuration
- Database credentials
-
🔄 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
- 👨💻 Author: Mustafa Ahmed
- 📧 Email: mustafa.softcode@gmail.com
Made with ❤️ for the Laravel community
darshphpdev/laravel-artisan-installer 适用场景与选型建议
darshphpdev/laravel-artisan-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 7, 最近一次更新时间为 2025 年 02 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 darshphpdev/laravel-artisan-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 darshphpdev/laravel-artisan-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-26
