saman9074/quickstart
Composer 安装命令:
composer require saman9074/quickstart
包简介
A Laravel package to create a simple installer for your existing applications, similar to WordPress. / یک پکیج لاراول برای ایجاد یک نصب کننده ساده برای برنامه های موجود شما، شبیه به وردپرس.
关键字:
README 文档
README
The Laravel Quickstart Installer is a package designed to provide a user-friendly, web-based interface for installing your Laravel applications. It guides users through a step-by-step setup process, similar to popular CMS platforms, making initial application deployment straightforward.
This package is developed by Saman9074 (Ali Abdi).
Features
- Step-by-Step Web UI: Intuitive wizard for easy installation.
- Multi-Language Support: Comes with English and Persian out-of-the-box. Easily extendable.
- Server Requirements Check: Verifies PHP version and necessary extensions.
- Folder Permissions Check: Ensures critical directories are writable.
.envConfiguration: Dynamically creates and configures the.envfile through a form.- Database Connection Testing: Validates database credentials before proceeding.
- Automated Artisan Commands: Executes migrations, seeders, and other post-installation commands.
- Installation Lock: Prevents re-running the installer once the application is set up.
- Customizable: Configuration, views, and language files can be published and modified.
- theme: Theme support (currently default and Quickstart-Nova themes)
Requirements
- PHP:
^8.1(or as specified in your package'scomposer.json) - Laravel:
^10.0|^11.0|^12.0(or as specified in your package'scomposer.json)
Installation
-
Require the package using Composer:
composer require saman9074/quickstart
-
Publish package assets: This will publish the configuration file, views (optional), and language files (optional).
php artisan vendor:publish --provider="Saman9074\Quickstart\QuickstartServiceProvider"You can also publish specific groups using tags:
- Config:
--tag="quickstart-config" - Views:
--tag="quickstart-views" - Language files:
--tag="quickstart-lang"
- Config:
Configuration
After publishing, the main configuration file will be located at config/quickstart.php.
Key options include:
theme: Default Theme (currently ,defaultorquickstart-novaorpersian-gulf).supported_locales: Array of supported languages (e.g.,['en' => 'quickstart::installer.language_english', 'fa' => 'quickstart::installer.language_persian']).default_locale: Default installer language (e.g.,en).route_prefix: URL prefix for installer routes (default:quickstart-install).route_middleware: Middleware group for installer routes (default:['web']).welcome_message_key: Translation key for the installer header message.required_php_version: Minimum PHP version string.required_php_extensions: Array of required PHP extensions.writable_directories: Array of directories that must be writable.env_keys: Detailed configuration for each.envvariable to be set during installation. Each entry defines:label_key: Translation key for the field's label.type: Input type (text,select,password, etc.).rules: Laravel validation rules.default: Default value.options: Forselecttype, an array ofvalue => translation_key_for_label.help_key: Translation key for help text.
steps: Defines the installer steps, their order, title translation keys, and view suffixes.post_install_commands: Array of Artisan commands (e.g.,migrate --force,db:seed) to run during the finalization step.installed_flag_file: Name of the file created instorage_path()to mark installation as complete (default:installed.flag).
Usage
- Prerequisites for the target Laravel application:
- Ensure no
.envfile exists, or if it does, its database details are not yet configured if you want the installer to set them up. The installer will attempt to copy.env.exampleif.envis missing. - A database server (MySQL, PostgreSQL, etc.) should be running.
- Crucially, the database schema itself (e.g.,
your_app_database) must be created manually on your database server before running the installer's database setup step. The installer will test the connection to this existing database and then run migrations. It does not create the database schema automatically.
- Ensure no
- Accessing the Installer:
Navigate to the installer URL in your browser. By default:
http://your-laravel-app.test/quickstart-install(Replaceyour-laravel-app.testwith your application's URL and use your configuredroute_prefix). - Follow the On-Screen Instructions:
- Welcome: Choose your language and get an overview.
- Server Requirements: Checks PHP version and extensions.
- Folder Permissions: Verifies writability of key directories.
- Environment Configuration: Fill in application name, environment, URL, database credentials, mail settings, etc. The database connection will be tested here.
- Finalize Installation: Confirms settings and runs post-installation commands (migrations, etc.).
- Finished: Displays a success message and links to your application.
Localization
- A language switcher is available on the welcome page.
- To customize translations or add new languages:
- Publish the language files:
php artisan vendor:publish --tag="quickstart-lang" - Edit the files in
lang/vendor/quickstart/(for Laravel 9+) orresources/lang/vendor/quickstart/(for older versions).
- Publish the language files:
- All texts use translation keys like
quickstart::installer.some_key.
Artisan Command (Optional)
A basic Artisan command is included:
php artisan quickstart:install
This command currently performs initial checks and guides the user to the web installer. It can be expanded for a full CLI installation if needed.
Troubleshooting
"The connection was reset" (browser) / "Environment modified. Restarting server..." (console):
This is normal if you are using php artisan serve. When the installer updates the .env file, php artisan serve restarts. Simply wait for the server to restart (you'll see "Server running on..." in the console) and then manually navigate to the next step of the installer in your browser (e.g., /quickstart-install/finalize).
"Unknown database 'database_name'" error:
This means the database name you provided in the "Environment Configuration" step does not exist on your database server. You must create the database manually (e.g., via phpMyAdmin, Sequel Pro, or SQL command CREATE DATABASE database_name;) before the installer can run migrations on it. The installer tests the connection to this database but does not create it.
Permission denied errors:
Ensure the storage/ and bootstrap/cache/ directories in your Laravel application are writable by the web server process.
Contributing
Contributions are welcome! If you'd like to contribute, please follow these general guidelines:
Fork the repository.
Create a new branch for your feature or bug fix.
Write tests for your changes.
Ensure your code follows existing coding standards.
Submit a pull request with a clear description of your changes.
License
The Laravel Quickstart Installer is open-source software licensed under the MIT license. Please see the LICENSE file for more details.
saman9074/quickstart 适用场景与选型建议
saman9074/quickstart 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「installer」 「laravel」 「setup」 「quickstart」 「laravel10」 「laravel11」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 saman9074/quickstart 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 saman9074/quickstart 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 saman9074/quickstart 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Installs Aura packages to the Aura system "package" directory.
Install WordPress must-use plugins with Composer
Provides a module to easily configure main aspects from a website.
Arikam CMS installers
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-24