marekmiklusek/package-skeleton
最新稳定版本:v0.1.6
Composer 安装命令:
composer require marekmiklusek/package-skeleton
包简介
A skeleton for creating new Laravel packages.
README 文档
README
🏗️ Modern Laravel package skeleton with development tools pre-configured.
This package provides a comprehensive starting point for creating Laravel packages with modern development tools already set up and configured.
Features
- 🧪 Pest the Best PHP Testing Framework
- 🔍 PHPStan (Larastan) static analysis for PHP/Laravel
- 🔧 Rector automated code refactoring and upgrades
- 📏 Rector:dry-run safe code refactoring
- 🎨 Laravel Pint code formatting
- 🚀 GitHub Actions CI/CD workflow
Requirements
- PHP 8.3+
- Laravel 12.21+
Installation
You can create a new Laravel package using this skeleton via composer:
composer create-project marekmiklusek/package-skeleton --prefer-source MyAwesomePackage
This will create a new directory MyAwesomePackage with all the skeleton files and proper namespacing configured for a Laravel package.
Usage
After creating your Laravel package, you can use these commands:
Pest Testing:
composer test
PHPStan (Larastan) Static Analysis:
composer analyse
Laravel Pint Formatting:
composer format
Rector Refactoring:
composer refactor
Dry Run Refactoring (safe):
composer refactor:dry-run
What's Included
- src/ - Your Laravel package source code
- src/PackageSkeletonServiceProvider.php - Service provider for your Laravel package
- tests/ExampleTest.php - Example test file
- composer.json - Dependencies and scripts configured
- phpstan.neon - Static analysis configuration
- rector.php - Code refactoring rules
- pint.json - Code style configuration
- .github/workflows/ci.yml - GitHub Actions workflow
License
The MIT License (MIT). Please see License File for more
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-27