alexskrypnyk / template-project-example
Example of how Customizer could be used in the project test
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.2
Requires (Dev)
- alexskrypnyk/customizer: ^0.2
- composer/composer: ^2.7
- phpunit/phpunit: ^11.1
This package is auto-updated.
Last update: 2024-10-23 04:11:47 UTC
README
Example of how Customizer can be used in the template project
composer create-project alexskrypnyk/template-project-example my-project
Example questions and processing are defined in the customize.php
file.
Automated tests for the example questions and processing are defined in the CreateProjectTest.php
file.
Given template project composer.json
before customization:
{ "name": "alexskrypnyk/template-project-example", "description": "Example of how Customizer could be used in the project", "type": "project", "require": { "php": ">=8.2" }, "require-dev": { "alexskrypnyk/customizer": "^0.4", "composer/composer": "^2.7", "phpunit/phpunit": "^11.1" }, "minimum-stability": "dev", "prefer-stable": true, "autoload-dev": { "psr-4": { "AlexSkrypnyk\\Customizer\\Tests\\": "vendor/alexskrypnyk/customizer/tests/phpunit", "AlexSkrypnyk\\TemplateProjectExample\\Tests\\": "tests" } }, "config": { "allow-plugins": { "alexskrypnyk/customizer": true } } }
and a README.md
file with the following content:
Welcome to the alexskrypnyk/template-project-example example! Some description on how to use the project.
answering the questions with
Name: acme/my-project
Description: My project
License: MIT
will result in the composer.json
:
{ "name": "acme/my-project", "description": "My project", "type": "project", "require": { "php": ">=8.2" }, "minimum-stability": "dev", "prefer-stable": true }
and the README.md
file:
Welcome to the acme/my-project example! Some description on how to use the project.