PHPackages                             wayofdev/laravel-package-tpl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. wayofdev/laravel-package-tpl

ActiveLibrary[Templating &amp; Views](/categories/templating)

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.

v2.7.3(1y ago)11101[10 PRs](https://github.com/wayofdev/laravel-package-tpl/pulls)MITMakefilePHP ^8.2

Since Jul 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/wayofdev/laravel-package-tpl)[ Packagist](https://packagist.org/packages/wayofdev/laravel-package-tpl)[ Docs](https://wayof.dev)[ GitHub Sponsors](https://github.com/wayofdev)[ RSS](/packages/wayofdev-laravel-package-tpl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (198)Used By (0)

 [   ![WayOfDev Logo](https://raw.githubusercontent.com/wayofdev/.github/master/assets/logo.gh-light-mode-only.png)  ](https://wayof.dev)

 **Build**
 [![Build Status](https://camo.githubusercontent.com/6f91d2f6a57e50344deeb6304c3699690ff970266109295de72203d695706b9d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e742e7376673f75726c3d6874747073253341253246253246616374696f6e732d62616467652e6174726f782e6465762532467761796f666465762532466c61726176656c2d7061636b6167652d74706c2532466261646765267374796c653d666c61742d737175617265266c6162656c3d676974687562253230616374696f6e73)](https://github.com/wayofdev/laravel-package-tpl/actions)

 **Project**
 [![Total Downloads](https://camo.githubusercontent.com/dd70bd12ebf231fa10fe931bf106b40adbb51b7420f8668bcba044483ce2f50a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7761796f666465762f6c61726176656c2d7061636b6167652d74706c3f267374796c653d666c61742d737175617265)](https://packagist.org/packages/wayofdev/laravel-package-tpl) [![Latest Stable Version](https://camo.githubusercontent.com/e9f26d057054375017cc30bf3ae372a6dcdcbc38eed817ddb160b878824c685d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7761796f666465762f6c61726176656c2d7061636b6167652d74706c3f267374796c653d666c61742d737175617265)](https://packagist.org/packages/wayofdev/laravel-package-tpl) [![Commits since latest release](https://camo.githubusercontent.com/d12f3e0084e0ea4a5a8f8be94e7be6025e6d43de9ae262d306b314b370e71187/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f7761796f666465762f6c61726176656c2d7061636b6167652d74706c2f6c61746573743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wayofdev/laravel-package-tpl) [![PHP Version Require](https://camo.githubusercontent.com/5faff434ae675ac5163ff9cb9e7f17d8760d7a3f70e5fbc0eb568a9aaf9a9ba7/68747470733a2f2f706f7365722e707567782e6f72672f7761796f666465762f6c61726176656c2d7061636b6167652d74706c2f726571756972652f7068703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wayofdev/laravel-package-tpl)

 **Quality**
 [![Codecov](https://camo.githubusercontent.com/0bbbc62fdc34192cb586d0ee99e7d644d5617ff373adc3b5d5a3a3f8954a594a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7761796f666465762f6c61726176656c2d7061636b6167652d74706c3f7374796c653d666c61742d737175617265266c6f676f3d636f6465636f76)](https://app.codecov.io/gh/wayofdev/laravel-package-tpl) [![Mutation testing badge](https://camo.githubusercontent.com/d686de78024e170689d31355f1acd5b24b0b7db714aafd150194f9105c6ec382/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d737175617265266c6162656c3d6d75746174696f6e25323073636f72652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532467761796f666465762532466c61726176656c2d7061636b6167652d74706c2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/wayofdev/laravel-package-tpl/master) ![PHP Stan Level 6 of 9](https://camo.githubusercontent.com/7c29cb7e3beccd1b5f607aa0e7c52524207204dfd1a170824c682ce2b722a4cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2532306c6576656c2d362532306f66253230392d79656c6c6f77677265656e3f7374796c653d666c61742d737175617265)

 **Community**
 [![Discord](https://camo.githubusercontent.com/34f37f68c2881c391251fb943c5110653c5e3d1076af732b7830211aff4f616b/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f313232383530363735383536323035383339313f7374796c653d666c61742d737175617265266c6f676f3d646973636f7264266c6162656c436f6c6f723d373238396439266c6f676f436f6c6f723d776869746526636f6c6f723d333934353664)](https://discord.gg/CE3TcCC5vr) [![Follow on Twitter (X)](https://camo.githubusercontent.com/91c1c3b545d03e0c79f91364259b2814308d2b3786c67c8578740879528ff37c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d466f6c6c6f772d626c61636b3f7374796c653d666c61742d737175617265266c6f676f3d58)](https://x.com/intent/follow?screen_name=wayofdev)

Laravel Package Template
========================

[](#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!

[![Screenshot](.github/assets/screenshot.png)](.github/assets/screenshot.png)

🚀 Features
----------

[](#-features)

This template repository includes several features to streamline the development of Laravel packages:

### → Testing

[](#-testing)

- Configured [PHPUnit](https://phpunit.de/index.html) for unit testing.
- Integrated [Pest PHP](https://pestphp.com) for elegant console support and architecture testing.
- [Orchestra Testbench](https://packages.tools/testbench.html) for Laravel package testing.
- [PHPStan](https://phpstan.org) extensions for PHPUnit and Laravel.
- Infection for mutation testing to ensure quality.
- Mutation test reports are uploaded [Stryker Mutator Dashboard](https://dashboard.stryker-mutator.io).

### → Static Analysis

[](#-static-analysis)

- [PHPStan](https://phpstan.org) for static analysis, ensuring code quality and robustness.
- [Larastan](https://github.com/larastan/larastan) for Laravel-specific static analysis.
- [PHPStan strict rules](https://github.com/phpstan/phpstan-strict-rules) for enforcing strict type checks and standards.
- [Psalm](https://psalm.dev) for finding errors in PHP applications through static analysis.
- [PHP Rector](https://github.com/rectorphp/rector) for automated code upgrades and refactoring, maintaining modern code standards.

### → Coding Standards

[](#-coding-standards)

- [PHP CS Fixer Config](https://github.com/wayofdev/php-cs-fixer-config) with custom configuration for consistent code style.
- [Composer Normalize](https://github.com/ergebnis/composer-normalize) to ensure a consistent `composer.json` format.
- [Yamllint](https://github.com/adrienverge/yamllint) for YAML file linting.
- [Actionlint](https://github.com/rhysd/actionlint) for GitHub Actions workflow linting.
- [Markdownlint](https://github.com/DavidAnson/markdownlint-cli2) for Markdown file linting.

### → Continuous Integration

[](#-continuous-integration)

- Automated testing with code coverage report generation using PHPUnit and Xdebug, uploaded to [Codecov](https://about.codecov.io).
- Automated linting of YAML files using [ibiqlik/action-yamllint](https://github.com/ibiqlik/action-yamllint).
- Automated PHP code linting to ensure code quality and standards using [wayofdev/php-cs-fixer-config](https://github.com/wayofdev/php-cs-fixer-config).
- Markdown linting using [DavidAnson/markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2).
- Checks for outdated or insecure dependencies using Composer.
- Mutation testing with [Infection](https://github.com/infection/infection) and [Stryker Mutator](https://stryker-mutator.io) to assess the quality of the test suite.
- Security checks to identify vulnerabilities in dependencies.
- Comprehensive static analysis with [PHPStan](https://phpstan.org) and [Psalm](https://psalm.dev).
- Extensive testing across different setups to ensure compatibility and stability.

### → Development Environment

[](#-development-environment)

- Docker support for consistent development environments.
- [Pre-commit](https://pre-commit.com) hooks setup to ensure code quality before commits.

### → Issue Templates

[](#-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_TEMPLATE`](.github/ISSUE_TEMPLATE) directory.

### → Miscellaneous

[](#-miscellaneous)

- Support for PHP 8.2+ and Laravel 10.x/11.x.
- Configured `autoload` and `autoload-dev` for optimal namespace management.
- PHAR dependencies managed using [Phive](https://phar.io/).

💿 Installation
--------------

[](#-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
---------------

[](#-running-tests)

### → PHPUnit tests

[](#-phpunit-tests)

To run tests, run the following command:

```
make test
```

### → Mutation tests

[](#-mutation-tests)

To run mutation tests, using [`infection/infection`](https://github.com/infection/infection):

```
make infect
```

### → Static Analysis

[](#-static-analysis-1)

Code quality using PHPStan:

```
make lint-stan
```

and using Psalm:

```
make lint-psalm
```

### → Coding Standards Fixing

[](#-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-yaml-files)

Lint all yaml files in project:

```
make lint-yaml
```

### → Lint Markdown files

[](#-lint-markdown-files)

Lint all yaml files in project:

```
make lint-md
```

### → Lint GitHub Actions

[](#-lint-github-actions)

Lint all yaml files in project:

```
make lint-actions
```

🔒 Security Policy
-----------------

[](#-security-policy)

This project has a [security policy](.github/SECURITY.md).

🙌 Want to Contribute?
---------------------

[](#-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](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=&labels=type%3A+enhancement&projects=&template=2-feature-request.yml&title=%5BFeature%5D%3A+)
- 🐛 [Report an issue](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=&labels=type%3A+documentation%2Ctype%3A+maintenance&projects=&template=1-bug-report.yml&title=%5BBug%5D%3A+)
- 📖 [Improve documentation](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=&labels=type%3A+documentation%2Ctype%3A+maintenance&projects=&template=4-docs-bug-report.yml&title=%5BDocs%5D%3A+)
- 👨‍💻 Contribute to the code

You are more than welcome. Before contributing, kindly check our [contribution guidelines](.github/CONTRIBUTING.md).

[![Conventional Commits](https://camo.githubusercontent.com/1e023e4ca15719f3a1397c355e66638a51acf4e0a9118045265b03997dc416d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e76656e74696f6e616c253230436f6d6d6974732d312e302e302d79656c6c6f772e7376673f7374796c653d666f722d7468652d6261646765)](https://conventionalcommits.org)

🫡 Contributors
--------------

[](#-contributors)

[![Contributors Badge](https://camo.githubusercontent.com/f03c3d6db2315a8426da851a7d12201b786cfd974f81ba42cf03e2ab44d823d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732d616e6f6e2f7761796f666465762f6c61726176656c2d7061636b6167652d74706c3f7374796c653d666f722d7468652d6261646765)](https://github.com/wayofdev/laravel-package-tpl/graphs/contributors)

🌐 Social Links
--------------

[](#-social-links)

- **Twitter:** Follow our organization [@wayofdev](https://twitter.com/intent/follow?screen_name=wayofdev) and the author [@wlotyp](https://twitter.com/intent/follow?screen_name=wlotyp).
- **Discord:** Join our community on [Discord](https://discord.gg/CE3TcCC5vr).

⚖️ License
----------

[](#️-license)

[![Licence](https://camo.githubusercontent.com/3d7d4c190b32b29c308067467a5cf777cd42ec9db23544a5336ffe3a5e893ca4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7761796f666465762f6c61726176656c2d7061636b6167652d74706c3f7374796c653d666f722d7468652d626164676526636f6c6f723d626c7565)](./LICENSE.md)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance64

Regular maintenance activity

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 70.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Recently: every ~12 days

Total

187

Last Release

701d ago

Major Versions

v1.1.38 → v2.0.02023-05-30

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b9b89df2875f68c4526c716ea968b0831658c3078fabb144cca7336033005d2?d=identicon)[wayofdev](/maintainers/wayofdev)

---

Top Contributors

[![lotyp](https://avatars.githubusercontent.com/u/94047334?v=4)](https://github.com/lotyp "lotyp (508 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (209 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravel-packagelaravel-package-templatelaravel-templatephpphp8templatephplaravel-packagetemplatephp8laravel-templatelaravel-package-template

###  Code Quality

TestsPest

Static AnalysisPHPStan, Psalm, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wayofdev-laravel-package-tpl/health.svg)

```
[![Health](https://phpackages.com/badges/wayofdev-laravel-package-tpl/health.svg)](https://phpackages.com/packages/wayofdev-laravel-package-tpl)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
