Package

Sunchayn Fresh Package

An opinionated skeleton for scaffolding a modular and decluttered Laravel package. It supports backend-only and full-stack packages.

Package

sunchayn/fresh-package

View on GitHub →

Fresh Package

An opinionated skeleton for scaffolding a modular and decluttered Laravel package. It supports backend-only and full-stack packages.

What's included

  • Native package (doesn't depend on another package to function, such as the Spatie package tool).
  • Modular structure (also enforced with optional skills).
  • Classic Tooling: PHPUnit (instead of Pest), Larastan, Rector, and Pint (default styling).
  • Laravel Version switcher (composer switch:l12 or composer switch:l13).
  • Thorough GitHub Actions (with fork submission support) for testing with coverage (Codecov), auto-release, static analysis, and auto-formatting (Pint and rector).
  • A workbench/ app (inherited from laravel package default's skeleton) to run and click through the package on its own, with no host application needed.
  • Optional, off by default: a modular Vue 3, Tailwind v4, Vite, TypeScript frontend.
  • Optional repository settings, on by default, each removable individually:
    • Dependabot.
    • An issue template.
    • Auto release and changelog creation.
    • Funding policy.
    • Security policy.
  • Optional features, on by default:
    • AI Support (Guidelines + Skills)

Quick start

composer create-project sunchayn/fresh-package my-package
cd my-package

An initialization wizard will launch and ask you a few questions to configure your new package.

Using GitHub's use this template button

If you create your repo from the template, clone it locally, then run composer install.

The same installation wizard will launch to configure the package.

Verification after initialization

composer test # verify the result
composer serve # try the package at http://localhost:8000

Contributing

See .github/CONTRIBUTING.md and the skeleton-development skill to learn more on how you can contribute to the template itself.

After creating a package

  • Review Dependabot pull requests before merging.
  • Write commits in the Conventional Commits format, since release-please reads them for version bumps and changelog sections.
  • Add CODECOV_TOKEN token from codecov (it is free for OSS) for code coverage reports.

Sunchayn Fresh Package Related Articles

Fresh Package: Laravel Package Skeleton with Testbench, CI, and Boost Integration image

Fresh Package: Laravel Package Skeleton with Testbench, CI, and Boost Integration

Read article
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Pushsilver logo

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing