Starter scaffold for new PHPNomad packages. It's a GitHub template repo that gives you the standard layout, CI workflows, coding standards, and test setup that every phpnomad/* package shares, so a new package starts on the same baseline as the rest of the ecosystem.
Click the "Use this template" button on the repository page. GitHub will create a new repo in your account or organization with the same file tree and a clean commit history.
You can do the same thing from the command line with gh:
gh repo create my-org/my-new-package \
--template phpnomad/repository-template \
--public \
--clonelib/andtests/directories for package source and unit tests, with the autoloader and test suite already wired incomposer.jsonandphpunit.xml.- GitHub Actions workflow for PHPUnit, running on a matrix of PHP 7.4, 8.0, 8.1, and 8.2.
- GitHub Actions workflow for PHPStan at level 9, scanning
lib/andtests/. - GitHub Actions workflow for spellcheck using
rojopolis/spellcheck-github-actions, configured via.spellcheck.ymland.wordlist.txt. - Dependabot config that opens daily Composer dependency updates with a
depscommit prefix. - A pull request template covering summary, details, testing instructions, and author and reviewer checklists.
.php-cs-fixer.dist.phppreconfigured for PSR-12, with acomposer php-cs-fixerscript shortcut..editorconfig,.gitignore, and an MITLICENSE.txt.
The template ships with placeholder values that need to be replaced once you've created your new repo. Before your first commit:
- In
composer.json, updatename,description,homepage, and the PSR-4 autoload namespaces to match your new package. - Rename the base namespace in any stub files and update the
autoload-devnamespace to match. - Replace this README with one that describes what your package actually does.
- Add your source files under
lib/and your tests undertests/Unit/.
MIT. See LICENSE.txt.