A template repository for making composer packages
- PHP 8.1+
-
GitHub Actions
-
Composer Scripts
composer test
- Run PHPUnit testscomposer test:coverage
- Run PHPUnit tests with coveragecomposer fix:dry
- Run PHP-CS-Fixer in Dry-Run modecomposer fix
- Run PHP-CS-Fixer and fix errors
composer create-project tnapf/package <package>
- Run
git init
to initialize a new git repository - Run
git add .
to add all files to the repository - Run
git commit -m "initial commit"
to commit the files - Run
git branch -M main
to rename the current branch tomain
- Create a new repository on GitHub
- Run
git remote add origin https://github.com/tnapf/<package>.git
to add the new repository as remote - Run
git push -u origin main
to push the files to the new repository