cleaniquecoders/kickoff
最新稳定版本:1.22.0
Composer 安装命令:
composer require cleaniquecoders/kickoff
包简介
Helps configure your new Laravel project with good practices.
关键字:
README 文档
README
🚀 Kickoff
This package bootstraps a new Laravel project with all the essential tools, configs, and workflows you need for a modern and maintainable setup.
🎯 Target Setup
Kickoff is designed for Laravel projects with this starter configuration:
laravel new myapp --git --livewire --pest --npm --livewire-class-components
Includes:
- ✅ Git repository initialization
- ✅ Livewire for reactive components
- ✅ Pest for testing
- ✅ NPM for asset management
- ✅ Livewire class-based components
The complete setup is based on Project Template.
📥 Usage
Quick Start (Automatic Project Creation)
Kickoff can now automatically create a new Laravel project if one doesn't exist:
# 1. Install globally composer global require cleaniquecoders/kickoff # 2. Ensure Laravel installer is available composer global require laravel/installer # 3. Create and bootstrap in one command kickoff start <owner> <project-name>
Complete Example:
# Creates ./blog directory with a fresh Laravel project, then applies kickoff kickoff start johndoe blog cd blog
This automatically runs:
laravel new blog --git --livewire --pest --npm --livewire-class-components --no-interaction
Usage with Existing Project
If you already have a Laravel project:
cd my-existing-project kickoff start johndoe my-project .
Or specify the path:
kickoff start johndoe blog /path/to/existing/laravel
Options
<owner>- Your name or organization (required)<project-name>- Project name (required)<project-path>- Project directory (optional, defaults to./<project-name>)
What Happens
📦 Creating new Laravel project blog... ⏳ Creating Laravel project with Livewire, Pest, and Git... ✅ 🎉 Let's kickoff your johndoe/blog now! ⏳ Copy application stubs... ✅ ⏳ Update composer.json... ✅ ⏳ Update project files... ✅ ⏳ Configure environment... ✅ ⏳ Install packages... ✅ ⏳ Build assets... ✅ 🎉 Project setup completed successfully!
⚠️ Warning: Only run on fresh Laravel projects. Existing project files will be overwritten.
✨ Features
-
📦 Installs required Laravel packages:
-
🛠 Dev tools:
- barryvdh/laravel-debugbar
- larastan/larastan for static analysis
- driftingly/rector-laravel
- pestphp/pest-plugin-arch for architecture testing
-
⚙️ Configuration:
- Adds QA scripts to
composer.json - Autoloads
support/helpers.php - Creates
rector.php,phpstan.neon.dist, andpint.json
- Adds QA scripts to
-
📂 Project Structure:
support/for helpers- Refactored
routes/intoweb/,api/, andconsole/subfolders (backups included) tinker/with.gitignoredocs/README.mdwith a placeholder TOC
-
🛡️ Automation Scripts:
- Creates executable scripts in
bin/for tasks like backup, deployment, PHPStan reporting, dependency updates, and project install - All scripts use the current directory name as the project name
- Creates executable scripts in
-
✅ Testing:
- Generates
tests/Feature/ArchitectureTest.phpusing Pest Arch
- Generates
-
📝 Documentation:
- Creates
CHANGELOG.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md,SUPPORT.md, andLICENSE.md
- Creates
-
⚡ GitHub Actions Workflows:
- Pint (Laravel Pint)
- PHPStan
- Rector
- Tests (Pest)
- Changelog updater
-
🔧 Artisan & Project Tasks:
- Clears config and view caches
- Runs migrations
- Creates storage symlink
- Publishes package configs and migrations
-
🛠️ Infrastructure Templates:
- Sets up
.config/with Nginx and Supervisor templates
- Sets up
📸 Screenshots
Dashboard
The generated project includes a fully-featured admin dashboard with user statistics, quick actions, and system information.
Role & Permissions Management
Manage roles with granular permissions using Spatie Laravel Permission.
Settings Management
Configure application settings through an intuitive admin interface.
🧪 Development & Testing
For Contributors
Test your changes to kickoff using the sandbox script:
# Create fresh Laravel app and apply kickoff bin/sandbox run # Inspect the generated project cd test-output/sandbox # create a database in mysql named `sandbox`
Then create tables & seed data:
php artisan reload:db
Run the sandbox app:
npm run build php artisan serve
To clean up sandbox, run:
bin/sandbox reset
Sandbox Features:
- ✅ Automated testing workflow (30 seconds vs 10 minutes manually)
- ✅ Git-safe (uses skip-worktree to prevent accidental commits)
- ✅ Repeatable testing cycles
- ✅ Isolated test environment
Requirements:
- Laravel installer:
composer global require laravel/installer
See bin/sandbox for detailed usage and commands.
🛡️ Automation Scripts
-
Creates executable scripts in
bin/for common project tasks:- backup-app: Backup your application files
- backup-media: Backup only media files changed in the last 24 hours
- build-fe-assets: Build and commit frontend assets
- deploy: Deploy code to your server with branch/tag support
- update-dependencies: Update Composer and npm dependencies, audit and build assets
- reinstall-npm: Remove and reinstall npm modules and lock file
- install: Project initialization, database setup, and environment configuration
- phpstan: Run PHPStan and generate readable reports per identifier
-
All scripts use the current directory name as the project name for dynamic configuration.
-
Scripts are made executable and can be run directly from the
bin/directory.
Security Vulnerabilities
If you discover a security vulnerability within AirBox, please send an e-mail to Nasrul Hazim via nasrulhazim.m@gmail.com. All security vulnerabilities will be promptly addressed.
Contributors
License
The Laravel framework is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-02




