erag/installererag
Composer 安装命令:
composer require erag/installererag
包简介
Laravel Installer: Simplifies Laravel application installation for a seamless setup experience. Requires PHP 8.0.0+
README 文档
README
- Minimum PHP version required
- PHP execution
- Default Laravel folder permissions
.envfile setup- Custom account form
Additionally, InstallerErag automates database migrations and seeding processes.
Getting Started
Install the package via Composer:
composer require erag/installererag
Step 1: Register the Service Provider
Laravel 11.x
Ensure the service provider is registered in /bootstrap/providers.php:
return [ // ... InstallerErag\InstallerServiceProvider::class ];
Laravel 10.x
Add the service provider to config/app.php:
'providers' => [ // ... InstallerErag\InstallerServiceProvider::class, ];
Step 2: Publish Vendor Files
Run the following command to publish the necessary assets:
php artisan vendor:publish --tag=InstallerErag --force
Step 3: Start Installation
Navigate to your installation URL:
https://yourdomain.com/install-app
Step 4: Set Folder Permissions
Ensure the appropriate file or directory permissions with:
sudo chmod -R 775 directory_name
Customizing Requirements and Permissions
To customize PHP requirements or folder permissions, edit yourProject/config/install.php:
'requirements' => [ // Add or remove PHP extensions as needed ], 'permissions' => [ // Add or remove folder permissions as needed ]
Adding Dynamic .env Variables
To add new .env variables dynamically, modify yourProject/config/install.php like so:
'needed="34dsf24bcgf"' . "\n" . 'apikey="123456"',
Inserting Dynamic Fields to the Account Form
To add extra fields to the account form:
- Navigate to
resources/views/vendor/account.blade.php. - Add the following code for a new field (e.g., phone number):
<div class="col-md-12 mb-3"> <x-install-input label="Phone Number" required="true" name="phone_number" type="text" value="{{ old('phone_number') }}" /> <x-install-error for="phone_number" /> </div>
- Update the input tag in
yourproject/config/install.php:
'account' => [ 'name' => 'required|string|max:255', 'email' => 'required|email|unique:users|max:255', 'password' => 'required|string|min:6', 'phone_number' => 'required', ]
erag/installererag 适用场景与选型建议
erag/installererag 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 327 次下载、GitHub Stars 达 47, 最近一次更新时间为 2024 年 01 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「installer」 「installation」 「laravel」 「setup」 「laravel package」 「laravel Installer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 erag/installererag 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 erag/installererag 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 erag/installererag 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Installs Aura packages to the Aura system "package" directory.
Claroline installation bundle
Install WordPress must-use plugins with Composer
Arikam CMS installers
Install Laravel Framework with any version you want.
统计信息
- 总下载量: 327
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 47
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-21