A repository template for Studio 24's open source PHP packages.
This package can be used as to scaffold a PHP package. Follow these steps to get started:
- Press the "Use template" button at the top of this repo to create a new repo with the contents of this skeleton
- Run
php ./configure.phpto run a script that will replace all placeholders throughout all the files - Have fun creating your package.
A brief explanation of the different components of this package template.
.github/ISSUE_TEMPLATE- GitHub issue templates.github/workflows- GitHub actions for running tests (php.yml) and automated releases (release.yml).github/dependabot.yml- Dependabot configurationsrc/- The PHP source code for your package, this will autoload based on the autoload rules in composer.jsontests- PHPUnit tests for your package.editorconfig- Your editor coding style configuration.gitattributes- Ignore these files/folders when this package is installed via Composer.phpcs.xml.dist- PHPCodeSniffer configuration.phplint.yml- PHPLint configurationCHANGELOG.md- A list of notable changes, the contents of this file are automated by automated releasesCODE_OF_CONDUCT.md- Contributor's code of conductcomposer.json- Composer PHP package dependenciesconfigure.php- Package configuration script, this file is deleted once runCONTRIBUTING.md- Guide to contributingLICENSE.md- License informationphpstan.neon- PHPStan configurationphpunit.xml.dist- PHPUnit configurationREADME.md- This README file, this file is deleted once configure.php is runREADME_DEFAULT.md- The default README file for your new packageSECURITY.md- Security policy for this package
The MIT License (MIT). Please see License File for more information.
- Spatie Package Skeleton for inspiration on package organisation and the PHP configure script