Helps configure your new Laravel project with good practices.

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/cleaniquecoders/kickoff

1.4.0 2025-11-08 08:05 UTC

This package is auto-updated.

Last update: 2025-11-08 09:14:58 UTC


README

PHP Linting (Pint) Test

๐Ÿš€ 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

# 1. Install globally
composer global require cleaniquecoders/kickoff

# 2. Create Laravel project with the recommended setup
laravel new my-project --git --livewire --pest --npm --livewire-class-components
cd my-project

# 3. Bootstrap with kickoff
kickoff start <owner> <project-name>

Complete Example:

# Create project with full stack
laravel new blog --git --livewire --pest --npm --livewire-class-components
cd blog

# Apply kickoff configuration
kickoff start johndoe blog

Options

  • <owner> - Your name or organization (required)
  • <project-name> - Project name (required)
  • <project-path> - Project directory (optional, defaults to current directory)

What Happens

๐ŸŽ‰ 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 projects will be overwritten.

โœจ Features

  • ๐Ÿ“ฆ Installs required Laravel packages:

  • ๐Ÿ›  Dev tools:

  • โš™๏ธ Configuration:

    • Adds QA scripts to composer.json
    • Autoloads support/helpers.php
    • Creates rector.php, phpstan.neon.dist, and pint.json
  • ๐Ÿ“‚ Project Structure:

    • support/ for helpers
    • Refactored routes/ into web/, api/, and console/ subfolders (backups included)
    • tinker/ with .gitignore
    • docs/README.md with 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
  • โœ… Testing:

    • Generates tests/Feature/ArchitectureTest.php using Pest Arch
  • ๐Ÿ“ Documentation:

    • Creates CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, SUPPORT.md, and LICENSE.md
  • โšก 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

๐Ÿงช 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

project-template Contributors

License

The Laravel framework is open-sourced software licensed under the MIT license.