gergo-tar/laravel-package-skeleton

A PHP package to scaffold Laravel package projects with best practices and code quality tools.

Fund package maintenance!
gergo-tar

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/gergo-tar/laravel-package-skeleton

dev-main 2025-12-19 17:30 UTC

This package is auto-updated.

Last update: 2025-12-19 17:35:02 UTC


README

This package provides a modern, interactive skeleton for building Laravel packages with best practices and essential development tools.

πŸš€ How It Works

  1. Clone the skeleton:

    git clone https://github.com/gergo-tar/laravel-plugin-skeleton my-package
    cd my-package
  2. Run the configuration script:

    php configure.php
    • The script will prompt for author, vendor, package, and feature options.
    • Based on your selections, it generates all necessary files, and cleans up unused templates.
  3. Start developing your package!

    • All selected features (config, migrations, commands, etc.) are ready to use.
    • Testing infrastructure (Pest) and dev tools (PHPStan, Rector) are pre-configured.

✨ Conditional Features

  • Configuration file: Only included if selected during setup. If enabled, you can publish it with:
    php artisan vendor:publish --tag="my-package-config"
  • Migrations: Only included if selected. Publish with:
    php artisan vendor:publish --tag="my-package-migrations"
  • Commands: Only included if selected. Usage instructions will be added for each command.
  • Facade, Views, Routes, Translations, Assets: Documented and included only if selected.

πŸ› οΈ Development Tools

  • Pest: Modern testing framework
  • PHPStan (Larastan): Static analysis
  • Rector: Automated refactoring
  • Pint: Code style fixer

πŸ“¦ UsageUsage

  • After configuration, your package is ready for local development or publishing.
  • See CONFIGURATION for a full guide to the configuration process and available features.

πŸ“„ License

MIT. See LICENSE for more information.

Your package, your way, in seconds! πŸš€