A starter template for PHP projects.
This template is not published to Packagist, so use the command below to create a new project.
composer create-project reun/php-app-template myapp --repository="{\"url\": \"https://github.com/Reun-Media/php-app-template\", \"type\": \"vcs\"}" --stability=dev --remove-vcs
cd myapp
pnpm update
composer update
update
is used instead of install
to update lockfiles to latest versions of
dependencies.
Run composer outdated -D
and pnpm outdated
periodically to check for
outdated packages. If there are new major releases of packages out, feel free to
submit a pull request.
pnpm dev
composer dev
You must run pnpm dev
before composer dev
if you want to use the dev server.
You can also run pnpm build
instead of starting a dev server. See
reun/twig-utilities
documentation
for more info.
The default type for package in composer.json
is project
. Remove it or
change to library
if creating a library.
Tip
After initial setup, remove the section above and replace README with the template below.
Short description of the project.
composer require myorg/mypackage
Add configuration steps here.
Describe how to use the package.
This repository includes a dev container that can be used to launch a development environment.
Run tests:
composer test
Start dev server:
composer dev
Run PHP CS Fixer and PHPStan:
composer lint