{"id":16809723,"url":"https://github.com/wayofdev/laravel-package-tpl","last_synced_at":"2025-04-11T01:22:47.872Z","repository":{"id":45805143,"uuid":"514263241","full_name":"wayofdev/laravel-package-tpl","owner":"wayofdev","description":"Laravel package skeleton used in WOD projects.","archived":false,"fork":false,"pushed_at":"2024-04-13T15:04:05.000Z","size":1511,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T09:20:55.987Z","etag":null,"topics":["laravel-package","laravel-package-template","laravel-template","php","php8","template"],"latest_commit_sha":null,"homepage":"https://wayof.dev","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayofdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"wayofdev"}},"created_at":"2022-07-15T12:34:10.000Z","updated_at":"2024-04-16T12:28:44.100Z","dependencies_parsed_at":"2023-10-02T23:45:56.027Z","dependency_job_id":"89ec29b6-d084-486b-b8e4-31e03c2ca7bf","html_url":"https://github.com/wayofdev/laravel-package-tpl","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.4,"last_synced_commit":"341957e722d634c500c78d7bcbe1d22b7d5ff430"},"previous_names":[],"tags_count":177,"template":true,"template_full_name":"wayofdev/php-package-tpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayofdev%2Flaravel-package-tpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayofdev%2Flaravel-package-tpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayofdev%2Flaravel-package-tpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayofdev%2Flaravel-package-tpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayofdev","download_url":"https://codeload.github.com/wayofdev/laravel-package-tpl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323511,"owners_count":21084521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel-package","laravel-package-template","laravel-template","php","php8","template"],"created_at":"2024-10-13T10:13:42.665Z","updated_at":"2025-04-11T01:22:47.854Z","avatar_url":"https://github.com/wayofdev.png","language":"Makefile","funding_links":["https://github.com/sponsors/wayofdev"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://wayof.dev\" target=\"_blank\"\u003e\n        \u003cpicture\u003e\n            \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/wayofdev/.github/master/assets/logo.gh-dark-mode-only.png\"\u003e\n            \u003cimg width=\"400\" src=\"https://raw.githubusercontent.com/wayofdev/.github/master/assets/logo.gh-light-mode-only.png\" alt=\"WayOfDev Logo\"\u003e\n        \u003c/picture\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eBuild\u003c/strong\u003e\u003cbr\u003e\n    \u003ca href=\"https://github.com/wayofdev/laravel-package-tpl/actions\" target=\"_blank\"\u003e\u003cimg alt=\"Build Status\" src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Flaravel-package-tpl%2Fbadge\u0026style=flat-square\u0026label=github%20actions\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eProject\u003c/strong\u003e\u003cbr\u003e\n    \u003ca href=\"https://packagist.org/packages/wayofdev/laravel-package-tpl\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/wayofdev/laravel-package-tpl?\u0026style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/wayofdev/laravel-package-tpl\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/wayofdev/laravel-package-tpl?\u0026style=flat-square\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/wayofdev/laravel-package-tpl\" target=\"_blank\"\u003e\u003cimg alt=\"Commits since latest release\" src=\"https://img.shields.io/github/commits-since/wayofdev/laravel-package-tpl/latest?style=flat-square\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/wayofdev/laravel-package-tpl\" target=\"_blank\"\u003e\u003cimg alt=\"PHP Version Require\" src=\"https://poser.pugx.org/wayofdev/laravel-package-tpl/require/php?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eQuality\u003c/strong\u003e\u003cbr\u003e\n    \u003ca href=\"https://app.codecov.io/gh/wayofdev/laravel-package-tpl\" target=\"_blank\"\u003e\u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/wayofdev/laravel-package-tpl?style=flat-square\u0026logo=codecov\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://dashboard.stryker-mutator.io/reports/github.com/wayofdev/laravel-package-tpl/master\" target=\"_blank\"\u003e\u003cimg alt=\"Mutation testing badge\" src=\"https://img.shields.io/endpoint?style=flat-square\u0026label=mutation%20score\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fwayofdev%2Flaravel-package-tpl%2Fmaster\"\u003e\u003c/a\u003e\n    \u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/phpstan%20level-6%20of%209-yellowgreen?style=flat-square\" alt=\"PHP Stan Level 6 of 9\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eCommunity\u003c/strong\u003e\u003cbr\u003e\n    \u003ca href=\"https://discord.gg/CE3TcCC5vr\" target=\"_blank\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/1228506758562058391?style=flat-square\u0026logo=discord\u0026labelColor=7289d9\u0026logoColor=white\u0026color=39456d\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://x.com/intent/follow?screen_name=wayofdev\" target=\"_blank\"\u003e\u003cimg alt=\"Follow on Twitter (X)\" src=\"https://img.shields.io/badge/-Follow-black?style=flat-square\u0026logo=X\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n# Laravel Package Template\n\nThis is a template repository designed to kick-start the development of Laravel packages with essential tools and setups pre-configured.\n\n\u003cbr\u003e\n\nIf you **like/use** this package, please consider ⭐️ **starring** it. Thanks!\n\n![Screenshot](.github/assets/screenshot.png)\n\n## 🚀 Features\n\nThis template repository includes several features to streamline the development of Laravel packages:\n\n### → Testing\n\n- Configured [PHPUnit](https://phpunit.de/index.html) for unit testing.\n- Integrated [Pest PHP](https://pestphp.com) for elegant console support and architecture testing.\n- [Orchestra Testbench](https://packages.tools/testbench.html) for Laravel package testing.\n- [PHPStan](https://phpstan.org) extensions for PHPUnit and Laravel.\n- Infection for mutation testing to ensure quality.\n- Mutation test reports are uploaded [Stryker Mutator Dashboard](https://dashboard.stryker-mutator.io).\n\n### → Static Analysis\n\n- [PHPStan](https://phpstan.org) for static analysis, ensuring code quality and robustness.\n- [Larastan](https://github.com/larastan/larastan) for Laravel-specific static analysis.\n- [PHPStan strict rules](https://github.com/phpstan/phpstan-strict-rules) for enforcing strict type checks and standards.\n- [Psalm](https://psalm.dev) for finding errors in PHP applications through static analysis.\n- [PHP Rector](https://github.com/rectorphp/rector) for automated code upgrades and refactoring, maintaining modern code standards.\n\n### → Coding Standards\n\n- [PHP CS Fixer Config](https://github.com/wayofdev/php-cs-fixer-config) with custom configuration for consistent code style.\n- [Composer Normalize](https://github.com/ergebnis/composer-normalize) to ensure a consistent `composer.json` format.\n- [Yamllint](https://github.com/adrienverge/yamllint) for YAML file linting.\n- [Actionlint](https://github.com/rhysd/actionlint) for GitHub Actions workflow linting.\n- [Markdownlint](https://github.com/DavidAnson/markdownlint-cli2) for Markdown file linting.\n\n### → Continuous Integration\n\n- Automated testing with code coverage report generation using PHPUnit and Xdebug, uploaded to [Codecov](https://about.codecov.io).\n- Automated linting of YAML files using [ibiqlik/action-yamllint](https://github.com/ibiqlik/action-yamllint).\n- Automated PHP code linting to ensure code quality and standards using [wayofdev/php-cs-fixer-config](https://github.com/wayofdev/php-cs-fixer-config).\n- Markdown linting using [DavidAnson/markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2).\n- Checks for outdated or insecure dependencies using Composer.\n- Mutation testing with [Infection](https://github.com/infection/infection) and [Stryker Mutator](https://stryker-mutator.io) to assess the quality of the test suite.\n- Security checks to identify vulnerabilities in dependencies.\n- Comprehensive static analysis with [PHPStan](https://phpstan.org) and [Psalm](https://psalm.dev).\n- Extensive testing across different setups to ensure compatibility and stability.\n\n### → Development Environment\n\n- Docker support for consistent development environments.\n- [Pre-commit](https://pre-commit.com) hooks setup to ensure code quality before commits.\n\n### → Issue Templates\n\n- This package is equipped with a set of ready-to-use issue templates to streamline contributions and issue reporting.\n\n  You can find these templates organized in the [`.github/ISSUE_TEMPLATE`](.github/ISSUE_TEMPLATE) directory.\n\n### → Miscellaneous\n\n- Support for PHP 8.2+ and Laravel 10.x/11.x.\n- Configured `autoload` and `autoload-dev` for optimal namespace management.\n- PHAR dependencies managed using [Phive](https://phar.io/).\n\n\u003cbr\u003e\n\n## 💿 Installation\n\nTo use this template, clone the repository and install the dependencies:\n\n```bash\n$ git clone https://github.com/wayofdev/laravel-package-tpl.git\n$ cd laravel-package-tpl\n\n$ make env install\n\n### full list of available commands:\n$ make help\n```\n\n\u003cbr\u003e\n\n## 🧪 Running Tests\n\n### → PHPUnit tests\n\nTo run tests, run the following command:\n\n```bash\nmake test\n```\n\n### → Mutation tests\n\nTo run mutation tests, using [`infection/infection`](https://github.com/infection/infection):\n\n```bash\nmake infect\n```\n\n### → Static Analysis\n\nCode quality using PHPStan:\n\n```bash\nmake lint-stan\n```\n\nand using Psalm:\n\n```bash\nmake lint-psalm\n```\n\n### → Coding Standards Fixing\n\nFix code using The PHP Coding Standards Fixer (PHP CS Fixer) to follow our standards:\n\n```bash\nmake lint-php\n```\n\n### → Lint Yaml files\n\nLint all yaml files in project:\n\n```bash\nmake lint-yaml\n```\n\n### → Lint Markdown files\n\nLint all yaml files in project:\n\n```bash\nmake lint-md\n```\n\n### → Lint GitHub Actions\n\nLint all yaml files in project:\n\n```bash\nmake lint-actions\n```\n\n\u003cbr\u003e\n\n## 🔒 Security Policy\n\nThis project has a [security policy](.github/SECURITY.md).\n\n\u003cbr\u003e\n\n## 🙌 Want to Contribute?\n\nThank you for considering contributing to the wayofdev community! We are open to all kinds of contributions. If you want to:\n\n- 🤔 [Suggest a feature](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=\u0026labels=type%3A+enhancement\u0026projects=\u0026template=2-feature-request.yml\u0026title=%5BFeature%5D%3A+)\n- 🐛 [Report an issue](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=\u0026labels=type%3A+documentation%2Ctype%3A+maintenance\u0026projects=\u0026template=1-bug-report.yml\u0026title=%5BBug%5D%3A+)\n- 📖 [Improve documentation](https://github.com/wayofdev/laravel-package-tpl/issues/new?assignees=\u0026labels=type%3A+documentation%2Ctype%3A+maintenance\u0026projects=\u0026template=4-docs-bug-report.yml\u0026title=%5BDocs%5D%3A+)\n- 👨‍💻 Contribute to the code\n\nYou are more than welcome. Before contributing, kindly check our [contribution guidelines](.github/CONTRIBUTING.md).\n\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=for-the-badge)](https://conventionalcommits.org)\n\n\u003cbr\u003e\n\n## 🫡 Contributors\n\n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://github.com/wayofdev/laravel-package-tpl/graphs/contributors\"\u003e\n\u003cimg align=\"left\" src=\"https://img.shields.io/github/contributors-anon/wayofdev/laravel-package-tpl?style=for-the-badge\" alt=\"Contributors Badge\"/\u003e\n\u003c/a\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003c/p\u003e\n\n## 🌐 Social Links\n\n- **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).\n- **Discord:** Join our community on [Discord](https://discord.gg/CE3TcCC5vr).\n\n\u003cbr\u003e\n\n## ⚖️ License\n\n[![Licence](https://img.shields.io/github/license/wayofdev/laravel-package-tpl?style=for-the-badge\u0026color=blue)](./LICENSE.md)\n\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayofdev%2Flaravel-package-tpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayofdev%2Flaravel-package-tpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayofdev%2Flaravel-package-tpl/lists"}