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
Laravel Migrate Fresh Command image

Laravel Migrate Fresh Command

Read article
Laravel 9.21 Introduces a Fresh Look for Artisan image

Laravel 9.21 Introduces a Fresh Look for Artisan

Read article
Refresh Your Laravel Database Without Dropping Every Table image

Refresh Your Laravel Database Without Dropping Every Table

Read article
Laravel Nova gets a fresh new website image

Laravel Nova gets a fresh new website

Read article
Nimbus: An In-Browser API Testing Playground for Laravel image

Nimbus: An In-Browser API Testing Playground for Laravel

Read article

PhpStorm

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

PhpStorm

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

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

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

Shift

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

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum