wayofdev/laravel-package-tpl
Composer 安装命令:
composer require wayofdev/laravel-package-tpl
包简介
🚀 Jump-start your Laravel package development with our pre-configured Composer template, designed for seamless integration. This template includes essential tools such as PHPUnit, PHPStan, GitHub Actions, and Docker to streamline your workflow and enhance productivity.
README 文档
README
Laravel Package Template
This is a template repository designed to kick-start the development of Laravel packages with essential tools and setups pre-configured.
If you like/use this package, please consider ⭐️ starring it. Thanks!
🚀 Features
This template repository includes several features to streamline the development of Laravel packages:
→ Testing
- Configured PHPUnit for unit testing.
- Integrated Pest PHP for elegant console support and architecture testing.
- Orchestra Testbench for Laravel package testing.
- PHPStan extensions for PHPUnit and Laravel.
- Infection for mutation testing to ensure quality.
- Mutation test reports are uploaded Stryker Mutator Dashboard.
→ Static Analysis
- PHPStan for static analysis, ensuring code quality and robustness.
- Larastan for Laravel-specific static analysis.
- PHPStan strict rules for enforcing strict type checks and standards.
- Psalm for finding errors in PHP applications through static analysis.
- PHP Rector for automated code upgrades and refactoring, maintaining modern code standards.
→ Coding Standards
- PHP CS Fixer Config with custom configuration for consistent code style.
- Composer Normalize to ensure a consistent
composer.jsonformat. - Yamllint for YAML file linting.
- Actionlint for GitHub Actions workflow linting.
- Markdownlint for Markdown file linting.
→ Continuous Integration
- Automated testing with code coverage report generation using PHPUnit and Xdebug, uploaded to Codecov.
- Automated linting of YAML files using ibiqlik/action-yamllint.
- Automated PHP code linting to ensure code quality and standards using wayofdev/php-cs-fixer-config.
- Markdown linting using DavidAnson/markdownlint-cli2.
- Checks for outdated or insecure dependencies using Composer.
- Mutation testing with Infection and Stryker Mutator to assess the quality of the test suite.
- Security checks to identify vulnerabilities in dependencies.
- Comprehensive static analysis with PHPStan and Psalm.
- Extensive testing across different setups to ensure compatibility and stability.
→ Development Environment
- Docker support for consistent development environments.
- Pre-commit hooks setup to ensure code quality before commits.
→ Issue Templates
-
This package is equipped with a set of ready-to-use issue templates to streamline contributions and issue reporting.
You can find these templates organized in the
.github/ISSUE_TEMPLATEdirectory.
→ Miscellaneous
- Support for PHP 8.2+ and Laravel 10.x/11.x.
- Configured
autoloadandautoload-devfor optimal namespace management. - PHAR dependencies managed using Phive.
💿 Installation
To use this template, clone the repository and install the dependencies:
$ git clone https://github.com/wayofdev/laravel-package-tpl.git $ cd laravel-package-tpl $ make env install ### full list of available commands: $ make help
🧪 Running Tests
→ PHPUnit tests
To run tests, run the following command:
make test
→ Mutation tests
To run mutation tests, using infection/infection:
make infect
→ Static Analysis
Code quality using PHPStan:
make lint-stan
and using Psalm:
make lint-psalm
→ Coding Standards Fixing
Fix code using The PHP Coding Standards Fixer (PHP CS Fixer) to follow our standards:
make lint-php
→ Lint Yaml files
Lint all yaml files in project:
make lint-yaml
→ Lint Markdown files
Lint all yaml files in project:
make lint-md
→ Lint GitHub Actions
Lint all yaml files in project:
make lint-actions
🔒 Security Policy
This project has a security policy.
🙌 Want to Contribute?
Thank you for considering contributing to the wayofdev community! We are open to all kinds of contributions. If you want to:
- 🤔 Suggest a feature
- 🐛 Report an issue
- 📖 Improve documentation
- 👨💻 Contribute to the code
You are more than welcome. Before contributing, kindly check our contribution guidelines.
🫡 Contributors
🌐 Social Links
- Twitter: Follow our organization @wayofdev and the author @wlotyp.
- Discord: Join our community on Discord.
⚖️ License
wayofdev/laravel-package-tpl 适用场景与选型建议
wayofdev/laravel-package-tpl 是一款 基于 Makefile 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 11, 最近一次更新时间为 2022 年 07 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「template」 「laravel-package」 「laravel-template」 「php8」 「laravel-package-template」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wayofdev/laravel-package-tpl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wayofdev/laravel-package-tpl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wayofdev/laravel-package-tpl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel package for converting English numbers into Bangla digits, Bangla words, Bangla month names, and Bangla money format with an easy-to-use API.
Laravel table comments loader (part of Diplodocker project)
jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.
Laravel JWT auth service package
Simple ASCII output of array data
E2E Studios PHP Framework adaptation of leafsphp/blade package
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-17
