Download the PHP package gergo-tar/laravel-package-skeleton without Composer
On this page you can find all versions of the php package gergo-tar/laravel-package-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-package-skeleton
Laravel Package Skeleton
This package provides a modern, interactive skeleton for building Laravel packages with best practices and essential development tools.
Requirements
- PHP >= 8.3
- Composer
๐ How It Works
-
Clone the skeleton:
-
Run the configuration script: First, run Composer's autoloader dump to ensure classes are properly loaded:
Run the configurator:
- 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.
- Start developing your package!
- All selected features (config, migrations, commands, etc.) are ready to use.
- Testing infrastructure (Pest) and dev tools (PHPStan, Rector, Psalm, PHPCS, PHP-CS-Fixer) are pre-configured.
โจ Available Options
At the start of each group you can answer yes to "Include/Enable ALL โฆ?" to skip individual prompts, or answer no to choose one by one.
Package Features
| Feature | What it generates |
|---|---|
| Migrations | database/migrations/create_<package>_table.php |
| Config | config/<package>.php, published via vendor:publish |
| Routes | routes/web.php, routes/api.php, or both |
| Views | resources/views/ directory |
| Translations | resources/lang/en/messages.php |
| Assets | resources/css/ and resources/js/ directories |
| Commands | src/Commands/<ClassName>Command.php |
| Facade | src/Facades/<ClassName>Facade.php |
| Tests | tests/Feature/, tests/Unit/, phpunit.xml |
Development Tools
| Tool | Purpose |
|---|---|
| Commitlint + Commitizen | Enforces conventional commit messages, interactive commit CLI |
| Pint | Laravel code style fixer |
| PHPStan (Larastan) | Static analysis with Laravel-specific rules |
| Psalm | Type-safety focused static analysis |
| Rector | Automated code refactoring |
| Coverage (Codecov) | CI test coverage reporting via Codecov |
GitHub Integrations
| Integration | What it generates |
|---|---|
| Funding | .github/FUNDING.yml |
| Security Policy | .github/SECURITY.md |
| Support Policy | .github/SUPPORT.md |
| Code of Conduct | .github/CODE_OF_CONDUCT.md |
| Issue Templates | .github/ISSUE_TEMPLATE/bug_report.yml + feature_request.yml |
| PR Template | .github/pull_request_template.md |
๐ค AI-Agent Development
| Option | What it generates |
|---|---|
| AGENTS.md | Canonical project instructions for AI agents |
| OpenCode Agents | .opencode/agents/*.md specialist agents |
| OpenCode Skills | .opencode/skills/*/SKILL.md load-on-demand knowledge |
| Claude Code compatibility | CLAUDE.md referencing AGENTS.md |
| Codex | Covered automatically via AGENTS.md |
| GitHub Copilot | .github/copilot-instructions.md |
When you enable AI support, the generated package ships with canonical AGENTS.md instructions
and (optionally) OpenCode agents and skills. Feature- and tool-aware agents (testing, database,
API) are only generated when the related features are enabled, and the AGENTS.md instruction
sections mirror exactly which features and dev tools you selected.
๐ฅ๏ธ Generation Flow Examples
Example: full package with all options enabled
Example: choosing options one by one
๐ What Gets Generated
Based on your selections, the configurator generates and updates:
- Package metadata (
composer.json, optionalpackage.jsonworkflows) - Service provider and optional package classes under
src/ - Optional resources:
config/,database/migrations/,resources/views/,resources/lang/,resources/css/,resources/js/ - Optional route files under
routes/(API, web, or both) - Test structure under
tests/ - Optional GitHub governance and community templates under
.github/(issue/PR templates, code of conduct, support, security) - Optional AI-agent development files (
AGENTS.md, OpenCode agents and skills under.opencode/,CLAUDE.md,.github/copilot-instructions.md) - Optional quality/config files (PHPStan, Rector, Pint, commitlint, release tooling)
๐งช Useful Commands
These commands are for development in the generated package.
Composer scripts
Composer scripts are included in generated packages. Some scripts may be removed if you disable the related tool during configuration.
npm scripts (optional)
These npm scripts are only generated when you enable commitlint/commitizen/semantic versioning in the configurator.
๐ฆ Usage
- After configuration, your package is ready for local development or publishing.
- See
CONFIGURATIONfor a full guide to the configuration process and available features.
๐งพ Versioning and Changelog
- Conventional commit workflow is supported via Commitizen + Commitlint.
- Release notes/changelog can be generated with
standard-version. - Changelog formatting is additionally supported by
cliff.toml.
๐ License
MIT. See LICENSE for more information.
Your package, your way, in seconds! ๐