[
  {
    "path": ".editorconfig",
    "content": "# EditorConfig http://EditorConfig.org\n\n# top-most EditorConfig file\nroot = true\n\n# This applies to all files\n[*]\nend_of_line = lf\ninsert_final_newline = true\ntrim_trailing_whitespace = true\ncharset = utf-8\nindent_style = space\nindent_size = 4\n\n[*.{yml,yaml}]\nindent_size = 2\n"
  },
  {
    "path": ".gitattributes.template",
    "content": "/.allowed-licenses          export-ignore\n/.editorconfig              export-ignore\n/.gitattributes             export-ignore\n/.github/                   export-ignore\n/.gitignore                 export-ignore\n/bin/                       export-ignore\n/build/                     export-ignore\n/captainhook.json           export-ignore\n/CHANGELOG.md               export-ignore\n/codecov.yml                export-ignore\n/CODE_OF_CONDUCT.md         export-ignore\n/CONTRIBUTING.md            export-ignore\n/conventional-commits.json  export-ignore\n/docs/                      export-ignore\n/phpcs.xml.dist             export-ignore\n/phpstan.neon.dist          export-ignore\n/phpunit.xml.dist           export-ignore\n/psalm-baseline.xml         export-ignore\n/psalm.xml                  export-ignore\n/resources/                 export-ignore\n/SECURITY.md                export-ignore\n/tests/                     export-ignore\n"
  },
  {
    "path": ".github/CODEOWNERS",
    "content": ""
  },
  {
    "path": ".github/ISSUE_TEMPLATE/Bug_Report.md",
    "content": "---\nname: Bug Report\nabout: Create a bug report to help us improve\nlabels: bug\nassignees:\n---\n<!--- Provide a general summary of the issue you're having in the title above. -->\n\n## Description\n<!-- Provide a short and clear description of the bug. -->\n\n## Steps to reproduce\n<!--\nProvide steps to reproduce the behavior you are experiencing. Please try to keep\nthis as short as possible. If able, create a reproducible script outside of any\nframework you are using. This will help us to quickly debug the issue.\n-->\n1. Step one...\n2. Step two...\n3. Step three...\n\n## Expected behavior\n<!-- Provide a short and clear description of what you expect to happen. -->\n\n## Screenshots or output\n<!-- If applicable, add screenshots or program output to help explain your problem. -->\n\n## Environment details\n<!-- Provide details about the system where you're using this package. -->\n- version of this package: *e.g. 1.0.0, 1.0.1, 1.1.0*\n- PHP version: *e.g. 7.3.16, 7.4.4*\n- OS: *e.g. Windows 10, Linux (Ubuntu 18.04.1), macOS Catalina (10.15.3)*\n\n## Additional context\n<!-- Provide any additional context that may help us debug the problem. -->\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/Feature_Request.md",
    "content": "---\nname: Feature Request\nabout: Suggest a feature for this project\nlabels: enhancement\nassignees:\n---\n<!--- Provide a general summary of your feature request in the title above. -->\n\n<!-- Give your feature a short title here. -->\n## My feature title\n<!-- Provide a short and clear description of the feature. -->\n\n## Background/problem\n<!--\nProvide background details to show why this feature is necessary. Is your\nfeature request related to a problem? If so, please describe the problem.\nProvide as much detail as possible.\n-->\n\n## Proposal/solution\n<!--\nProvide a short and clear description of the solution you'd like. Include code\nexamples, if possible. Feel free to use pseudo-code to show how you think the\nfeature should work.\n-->\n\n## Alternatives\n<!-- Describe any alternative solutions or features you've considered. -->\n\n## Additional context\n<!-- Please provide any other context or code examples that may help. -->\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/Question.md",
    "content": "---\nname: Question\nabout: Ask a question about how to use this library\nlabels: question\nassignees:\n---\n<!--- Provide a general summary of your question in the title above. -->\n\n<!-- Write your question here. -->\n## How do I... ?\n<!-- Provide any additional context that may help us answer your question. -->\n\n## Example code\n<!--\nIf your question is about code that you've written, provide a short and clear\nexample of what you're trying to accomplish. Try to keep this as short as\npossible. If able, please provide an example outside of any framework you are\nusing. This will help us to quickly respond to your question.\n-->\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\n"
  },
  {
    "path": ".github/dependabot.yml",
    "content": "version: 2\nupdates:\n  - package-ecosystem: \"composer\"\n    directory: \"/\"\n    schedule:\n      interval: \"monthly\"\n\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"monthly\"\n"
  },
  {
    "path": ".github/pull_request_template.md",
    "content": "<!--- Provide a general summary of your changes in the title above. -->\n\n## Description\n<!--- Describe your changes in detail. -->\n\n## Motivation and context\n<!--- Why is this change required? What problem does it solve? -->\n<!--- If it fixes an open issue, please link to the issue here. -->\n\n## How has this been tested?\n<!--- Please describe in detail how you tested your changes. -->\n<!--- Include details of your testing environment, and the tests you ran to -->\n<!--- see how your change affects other areas of the code, etc. -->\n\n## Types of changes\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\n- [ ] Bug fix (non-breaking change which fixes an issue)\n- [ ] New feature (non-breaking change which adds functionality)\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\n\n## PR checklist\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\n- [ ] My change requires a change to the documentation.\n- [ ] I have updated the documentation accordingly.\n- [ ] I have read the **CONTRIBUTING.md** document.\n- [ ] I have added tests to cover my changes.\n"
  },
  {
    "path": ".github/workflows/continuous-integration.yml",
    "content": "# GitHub Actions Documentation: https://docs.github.com/en/actions\n\nname: \"Continuous Integration\"\n\non:\n  push:\n    branches:\n      - \"main\"\n    tags:\n      - \"*\"\n  pull_request:\n    branches:\n      - \"main\"\n\n# Cancels all previous workflow runs for the same branch that have not yet completed.\nconcurrency:\n  # The concurrency group contains the workflow name and the branch name.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\nenv:\n  COMPOSER_ROOT_VERSION: \"1.99.99\"\n\njobs:\n  coding-standards:\n    name: \"Coding standards\"\n    runs-on: \"ubuntu-latest\"\n\n    steps:\n      - name: \"Checkout repository\"\n        uses: \"actions/checkout@v5\"\n\n      - name: \"Install PHP\"\n        uses: \"shivammathur/setup-php@v2\"\n        with:\n          php-version: \"latest\"\n          coverage: \"none\"\n\n      - name: \"Install dependencies (Composer)\"\n        uses: \"ramsey/composer-install@v3\"\n\n      - name: \"Check syntax (php-parallel-lint)\"\n        run: \"composer dev:lint:syntax\"\n\n      - name: \"Check coding standards (PHP_CodeSniffer)\"\n        run: \"composer dev:lint:style\"\n\n  static-analysis:\n    name: \"Static analysis\"\n    runs-on: \"ubuntu-latest\"\n\n    steps:\n      - name: \"Checkout repository\"\n        uses: \"actions/checkout@v5\"\n\n      - name: \"Install PHP\"\n        uses: \"shivammathur/setup-php@v2\"\n        with:\n          php-version: \"latest\"\n          coverage: \"none\"\n\n      - name: \"Install dependencies (Composer)\"\n        uses: \"ramsey/composer-install@v3\"\n\n      - name: \"Statically analyze code (PHPStan)\"\n        run: \"composer dev:analyze:phpstan\"\n\n      - name: \"Statically analyze code (Psalm)\"\n        run: \"composer dev:analyze:psalm -- --shepherd\"\n\n  security-analysis:\n    name: \"Security analysis\"\n    needs: [\"coding-standards\", \"static-analysis\"]\n    runs-on: \"ubuntu-latest\"\n\n    # If you encounter \"Resource not accessible by integration\" errors on\n    # GitHub Actions for this job, uncomment the following lines. Your\n    # organization permissions may not be set to allow writing security events.\n    permissions:\n      security-events: write\n\n    steps:\n      - name: \"Checkout repository\"\n        uses: \"actions/checkout@v5\"\n\n      - name: \"Install PHP\"\n        uses: \"shivammathur/setup-php@v2\"\n        with:\n          php-version: \"latest\"\n          coverage: \"none\"\n\n      - name: \"Install dependencies (Composer)\"\n        uses: \"ramsey/composer-install@v3\"\n\n      - name: \"Analyze security of code (Psalm)\"\n        run: \"./vendor/bin/psalm --taint-analysis --report=build/logs/psalm.sarif\"\n\n      - name: \"Upload security analysis results to GitHub\"\n        uses: \"github/codeql-action/upload-sarif@v4\"\n        with:\n          sarif_file: \"build/logs/psalm.sarif\"\n\n  code-coverage:\n    name: \"Code coverage\"\n    needs: [\"coding-standards\", \"static-analysis\"]\n    runs-on: \"ubuntu-latest\"\n\n    steps:\n      - name: \"Checkout repository\"\n        uses: \"actions/checkout@v5\"\n\n      - name: \"Install PHP\"\n        uses: \"shivammathur/setup-php@v2\"\n        with:\n          php-version: \"latest\"\n          coverage: \"pcov\"\n          ini-values: \"memory_limit=-1\"\n\n      - name: \"Install dependencies (Composer)\"\n        uses: \"ramsey/composer-install@v3\"\n\n      - name: \"Run unit tests (PHPUnit)\"\n        run: \"composer dev:test:coverage:ci\"\n\n      - name: \"Publish coverage report to Codecov\"\n        uses: \"codecov/codecov-action@v5\"\n\n  unit-tests:\n    name: \"Unit tests\"\n    needs: [\"code-coverage\"]\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      fail-fast: false\n      matrix:\n        php:\n          - \"8.1\"\n          - \"8.2\"\n          - \"8.3\"\n          - \"8.4\"\n        os:\n          - \"macos-latest\"\n          - \"ubuntu-latest\"\n          - \"windows-latest\"\n        composer-deps:\n          - \"lowest\"\n          - \"highest\"\n\n    steps:\n      - name: \"Configure Git (for Windows)\"\n        if: ${{ matrix.os == 'windows-latest' }}\n        shell: \"bash\"\n        run: |\n          git config --system core.autocrlf false\n          git config --system core.eol lf\n\n      - name: \"Checkout repository\"\n        uses: \"actions/checkout@v5\"\n\n      - name: \"Install PHP\"\n        uses: \"shivammathur/setup-php@v2\"\n        with:\n          php-version: \"${{ matrix.php }}\"\n          coverage: \"none\"\n\n      - name: \"Install dependencies (Composer)\"\n        uses: \"ramsey/composer-install@v3\"\n        with:\n          dependency-versions: \"${{ matrix.composer-deps }}\"\n\n      - name: \"Run unit tests (PHPUnit)\"\n        shell: \"bash\"\n        run: \"composer dev:test:unit\"\n"
  },
  {
    "path": ".github/workflows/merge-me.yml",
    "content": "# Merge Me! Documentation: https://github.com/ridedott/merge-me-action/\n\nname: \"Merge Dependabot PRs\"\n\non:\n  workflow_run:\n    types:\n      - \"completed\"\n    workflows:\n      - \"Continuous Integration\"\n\njobs:\n  merge-me:\n    name: \"Merge me!\"\n    runs-on: \"ubuntu-latest\"\n    steps:\n      - name: \"Auto-merge\"\n        if: ${{ github.event.workflow_run.conclusion == 'success' }}\n        uses: \"ridedott/merge-me-action@v2\"\n        with:\n          # This must be used as GitHub Actions token does not support pushing\n          # to protected branches.\n          #\n          # Create a token with repository permissions:\n          # https://github.com/settings/tokens/new?scopes=repo&description=Merge+Me!+GitHub+Actions+Workflow\n          #\n          # Set MERGE_TOKEN as an environment variable on your repository:\n          # https://github.com/yourname/repo-name/settings/secrets/actions/new\n          GITHUB_TOKEN: ${{ secrets.MERGE_TOKEN }}\n"
  },
  {
    "path": ".gitignore",
    "content": ".phpunit.result.cache\n/captainhook.config.json\n/composer.lock\n/phpcs.xml\n/phpunit.xml\n/vendor/\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# ramsey/php-library-starter-kit Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## 3.5.6 - 2025-03-07\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Partially revert commit dbec32c337e4bab527ca829db3d8cef3e7f08536; the attempt to define the full Symfony Question interface on the custom StarterKitQuestion interface caused problems when using older versions of symfony/console.\n\n## 3.5.5 - 2025-03-07\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Modernize and update type declarations and annotations throughout (no BC breaks).\n\n- Ensure all tests and static analysis tools pass on PHP 8.3 and 8.4.\n\n- Update symfony/finder dependency to `^6.4 || ^7.2`.\n\n- Update twig/twig dependency to `^3.20`.\n\n## 3.5.4 - 2023-10-31\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Add missing instructions for creating `MERGE_TOKEN` to `merge-me.yml` GitHub Action file.\n\n## 3.5.3 - 2023-10-31\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- By default, assign permissions to upload security reports\n\n## 3.5.2 - 2023-05-25\n\n### Added\n\n- Add comment about permissions for security events to continuous integration workflow file.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Disable rendering Code of Conduct messages if None selected.\n\n## 3.5.1 - 2023-04-27\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Remove code supporting old versions of symfony/process.\n\n- Improve checks for line-endings.\n\n## 3.5.0 - 2023-04-27\n\n### Added\n\n- Add an option for version 2.1 of the Contributor Covenant\n\n- Update GitHub workflows to support auto-merging of Dependabot pull requests\n\n### Changed\n\n- Update ramsey/devtools to version 2.0\n\n- Increase minimum PHP version to 8.1\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Stop passing `starter-kit` command name to avoid confusing newer versions of symfony/console.\n\n## 3.4.2 - 2022-01-27\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Use a new instance of the Symfony Finder for each use.\n\n## 3.4.1 - 2022-01-02\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Bump codecov/codecov-action to v2.1.0\n\n## 3.4.0 - 2022-01-02\n\n### Added\n\n- Add the `allow-plugins` property to composer.json.\n- Tell Dependabot to update GitHub Actions.\n- Run GitHub Actions CI builds only on pushes to `main` and PRs based on `main`.\n\n### Changed\n\n- Remove \"deps\" as a type from conventional commits configuration.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Use v2 of ramsey/composer-install.\n- Fix a few package compatibility issues with PHP 8.1.\n\n## 3.3.0 - 2021-09-26\n\n### Added\n\n- Allow use of an existing answers file when creating new projects.\n\n  When using Composer's `create-project` command, users may now provide an environment variable (`STARTER_KIT_ANSWERS_FILE`) to indicate the location of an already-existing answers file to use when setting up a new library. This must be a JSON file including properties defined in `Ramsey\\Dev\\LibraryStarterKit\\Answers`. To completely turn off the question prompts, include the property `skipPrompts: true`.\n\n  For example:\n\n  ```shell\n  STARTER_KIT_ANSWERS_FILE=/path/to/answers.json composer create-project ramsey/php-library-starter-kit YOUR-PROJECT-NAME\n  ```\n\n- Include a builder task (`Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\FixStyle`) that fixes any style issues before instantiating the new repository. This avoids coding standards errors caused by out-of-order `use` statements, etc.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n\n## 3.2.2 - 2021-08-11\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Remove description case from Conventional Commits configuration, since the lowercase requirement causes confusion\n- Remove PHPStan and Psalm checks from pre-commit hook, since these can result in false positives/negatives when analyzing only a few files at a time\n- Use https in URLs\n- Use the correct branch name in GitHub URLs\n\n## 3.2.1 - 2021-08-07\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fix link to SECURITY.md\n\n## 3.2.0 - 2021-08-06\n\n### Added\n\n- Provide Creative Commons Zero v1.0 Universal as a license option\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Write a Coordinated Disclosure section to the README if choosing to include a security policy\n- Move the pull request template so that GitHub will use it\n\n## 3.1.1 - 2021-08-05\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Detect author name and email using Git config\n\n## 3.1.0 - 2021-08-05\n\n### Added\n\n- Use the author name and email address for git config, if necessary\n- Require the author email address\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Set the branch name *after* the initial commit to avoid errors on older versions of Git\n\n## 3.0.3 - 2021-08-04\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Support older versions of Git that do not implement the `-b` option for `git init`\n- Improve exception handling to aid with debugging\n\n## 3.0.2 - 2021-07-18\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Add missing newline to end of generated composer.json file\n\n## 3.0.1 - 2021-07-18\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Make sure CaptainHook installation runs after the repository initialization\n\n## 3.0.0 - 2021-07-14\n\n### Added\n\n- Allow users to exit the wizard and restart it later, saving their answers\n- Use ramsey/devtools instead of `vnd:*` scripts in the local `composer.json`\n- Use [CaptainHook](https://github.com/captainhookphp/captainhook) to manage Git hooks\n  - Enforce the use of [Conventional Commits](https://www.conventionalcommits.org)\n  - Validate and check normalization of `composer.json` in pre-commit hook\n  - Run syntax, style, and static analysis checks in pre-commit hook\n  - Run `composer install` on post-merge and post-checkout hooks\n  - Run `composer test` in pre-push hook\n- Add option to include a security policy (vulnerability disclosure policy) as part of the wizard\n- Add [GitHub Actions](https://docs.github.com/en/actions) configuration for CI workflows\n- Add [Codecov](https://about.codecov.io) configuration for viewing code coverage reports\n- Use ramsey/coding-standard\n\n### Changed\n\n- Rename from ramsey/php-library-skeleton to ramsey/php-library-starter-kit\n- Major re-working of the library to use [symfony/console](https://symfony.com/doc/current/components/console.html)\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Remove dependencies on NodeJS and npm packages\n- Remove all `vnd:*` scripts from `composer.json`\n- Remove `bin/repl`, since ramsey/devtools uses ramsey/composer-repl\n- Remove Travis CI configuration, in favor of GitHub Actions\n- Remove Coveralls configuration, in favor of Codecov\n\n### Fixed\n\n- Nothing.\n\n## 2.1.4 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Remove package name from license file, since it caused conflicts with GitHub's automatic license-detection software\n\n## 2.1.3 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fix case of incorrect license used in generated package.json\n\n## 2.1.2 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fix typo in `export-ignore` directives in `.gitattributes`\n\n## 2.1.1 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fix links to code of conduct and contributing guide\n\n## 2.1.0 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Rename phpstan.neon to phpstan.neon.dist\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n\n## 2.0.1 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fix typo in CONTRIBUTING.md.\n\n## 2.0.0 - 2020-05-29\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Pretty much a full re-write\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n\n## 1.1.1 - 2019-10-23\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fixed PSR-12 coding standards violations.\n\n## 1.1.0 - 2019-05-27\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Moved the `README.md` file to the project root to support packages that will not be placed on GitHub.\n- Upgraded to the latest versions of dev tools:\n  - PHPStan `^0.11`\n  - PHPUnit `^8`\n- Now using `--no-suggest` when installing packages after finishing the wizard.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n\n## 1.0.2 - 2019-01-03\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- The `.gitattributes` file continues to be problematic when using the zip distribution, so this release removes the file entirely.\n\n## 1.0.1 - 2019-01-03\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Fixed a problem where using `composer create-project` was not properly creating a project from the 1.0.0 release because the `.gitattributes` file was too liberal, failing to include important skeleton files in the release zip bundle.\n\n## 1.0.0 - 2019-01-02\n\nThis is the initial release of ramsey/php-library-starter-kit, with the ability to\nquickly generate a PHP library including all the starting files that I\n([@ramsey][]) prefer to have in my projects. Future versions of this project may\nexpand on this and allow for more generic options.\n\nTo create the starting point for a PHP library using this project, run the\nfollowing:\n\n``` bash\ncomposer create-project --remove-vcs ramsey/php-library-starter-kit target-directory\n```\n\nYou will be walked through a series of questions, and your PHP library source\nfiles will be located in `target-directory`, when completed. Change to that\ndirectory, `git init`, and off you go!\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n\n[@ramsey]: https://github.com/ramsey\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to make participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\n  advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic\n  address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned to this Code of Conduct, or to ban temporarily or\npermanently any contributor for other behaviors that they deem inappropriate,\nthreatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies within all project spaces, and it also applies when\nan individual is representing the project or its community in public spaces.\nExamples of representing a project or community include using an official\nproject e-mail address, posting via an official social media account, or acting\nas an appointed representative at an online or offline event. Representation of\na project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported by contacting the project team at ben@benramsey.com. All\ncomplaints will be reviewed and investigated and will result in a response that\nis deemed necessary and appropriate to the circumstances. The project team is\nobligated to maintain confidentiality with regard to the reporter of an incident.\nFurther details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing\n\nContributions are welcome. This project accepts pull requests on [GitHub][].\n\nThis project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By\nparticipating in this project and its community, you are expected to uphold this\ncode.\n\n## Communication Channels\n\nYou can find help and discussion in the following places:\n\n* GitHub Issues: <https://github.com/ramsey/php-library-starter-kit/issues>\n\n## Reporting Bugs\n\nReport bugs using the project's [issue tracker][issues].\n\n⚠️ _**ATTENTION!!!** DO NOT include passwords or other sensitive information in\nyour bug report._\n\nWhen submitting a bug report, please include enough information to reproduce the\nbug. A good bug report includes the following sections:\n\n* **Description**\n\n  Provide a short and clear description of the bug.\n\n* **Steps to reproduce**\n\n  Provide steps to reproduce the behavior you are experiencing. Please try to\n  keep this as short as possible. If able, create a reproducible script outside\n  of any framework you are using. This will help us to quickly debug the issue.\n\n* **Expected behavior**\n\n  Provide a short and clear description of what you expect to happen.\n\n* **Screenshots or output**\n\n  If applicable, add screenshots or program output to help explain your problem.\n\n* **Environment details**\n\n  Provide details about the system where you're using this package, such as PHP\n  version and operating system.\n\n* **Additional context**\n\n  Provide any additional context that may help us debug the problem.\n\n## Fixing Bugs\n\nThis project welcomes pull requests to fix bugs!\n\nIf you see a bug report that you'd like to fix, please feel free to do so.\nFollowing the directions and guidelines described in the \"Adding New Features\"\nsection below, you may create bugfix branches and send pull requests.\n\n## Adding New Features\n\nIf you have an idea for a new feature, it's a good idea to check out the\n[issues][] or active [pull requests][] first to see if anyone is already working\non the feature. If not, feel free to submit an issue first, asking whether the\nfeature is beneficial to the project. This will save you from doing a lot of\ndevelopment work only to have your feature rejected. We don't enjoy rejecting\nyour hard work, but some features don't fit with the goals of the project.\n\nWhen you do begin working on your feature, here are some guidelines to consider:\n\n* Your pull request description should clearly detail the changes you have made.\n  We will use this description to update the CHANGELOG. If there is no\n  description, or it does not adequately describe your feature, we may ask you\n  to update the description.\n* ramsey/php-library-starter-kit follows a superset of **[PSR-12 coding standard][psr-12]**.\n  Please ensure your code does, too. _Hint: run `composer dev:lint` to check._\n* Please **write tests** for any new features you add.\n* Please **ensure that tests pass** before submitting your pull request.\n  ramsey/php-library-starter-kit automatically runs tests for pull requests. However,\n  running the tests locally will help save time. _Hint: run `composer test`._\n* **Use topic/feature branches.** Please do not ask to pull from your main branch.\n  * For more information, see \"[Understanding the GitHub flow][gh-flow].\"\n* **Submit one feature per pull request.** If you have multiple features you\n  wish to submit, please break them into separate pull requests.\n* **Write good commit messages.** This project follows the\n  [Conventional Commits][] specification and uses Git hooks to ensure all\n  commits follow this standard. Running `composer install` will set up the Git\n  hooks, so when you run `git commit`, you'll be prompted to create a commit\n  using the Conventional Commits rules.\n\n## Developing\n\nTo develop this project, you will need [PHP](https://www.php.net) 7.4 or greater\nand [Composer](https://getcomposer.org).\n\nAfter cloning this repository locally, execute the following commands:\n\n``` bash\ncd /path/to/repository\ncomposer install\n```\n\nNow, you are ready to develop!\n\n### Tooling\n\nThis project uses [CaptainHook](https://github.com/CaptainHookPhp/captainhook)\nto validate all staged changes prior to commit.\n\n### Commands\n\nTo see all the commands available for contributing to this project:\n\n``` bash\ncomposer list dev\n```\n\n### Coding Standards\n\nThis project follows a superset of [PSR-12](https://www.php-fig.org/psr/psr-12/)\ncoding standards, enforced by [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer).\n\nCaptainHook will run coding standards checks before committing.\n\nYou may lint the codebase manually using the following commands:\n\n``` bash\n# Lint\ncomposer dev:lint\n\n# Attempt to auto-fix coding standards issues\ncomposer dev:lint:fix\n```\n\n### Static Analysis\n\nThis project uses a combination of [PHPStan](https://github.com/phpstan/phpstan)\nand [Psalm](https://github.com/vimeo/psalm) to provide static analysis of PHP\ncode.\n\nCaptainHook will run static analysis checks before committing.\n\nYou may run static analysis manually across the whole codebase with the\nfollowing command:\n\n``` bash\n# Static analysis\ncomposer dev:analyze\n```\n\n### Project Structure\n\nThis project uses [pds/skeleton](https://github.com/php-pds/skeleton) as its\nbase folder structure and layout.\n\n### Running Tests\n\nThe following must pass before we will accept a pull request. If this does not\npass, it will result in a complete build failure. Before you can run this, be\nsure to `composer install`.\n\nTo run all the tests and coding standards checks, execute the following from the\ncommand line, while in the project root directory:\n\n```\ncomposer test\n```\n\nCaptainHook will automatically run all tests before pushing to the remote\nrepository.\n\n### Running `create-project` Locally\n\nYou can test Composer's `create-project` command locally to make sure the\nstarter kit wizard runs properly with your changes. To do so, use a command\nsimilar to the following:\n\n```shell\ncomposer create-project ramsey/php-library-starter-kit YOUR-PROJECT-NAME \\\n    --repository='{ \"type\": \"path\", \"url\": \"/path/to/local/php-library-starter-kit\", \"options\": { \"symlink\": false } }' \\\n    --remove-vcs \\\n    --stability=dev\n```\n\n[github]: https://github.com/ramsey/php-library-starter-kit\n[issues]: https://github.com/ramsey/php-library-starter-kit/issues\n[pull requests]: https://github.com/ramsey/php-library-starter-kit/pulls\n[psr-12]: https://www.php-fig.org/psr/psr-12/\n[gh-flow]: https://guides.github.com/introduction/flow/\n[conventional commits]: https://www.conventionalcommits.org/\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2019-2025 Ben Ramsey <ben@benramsey.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<h1 align=\"center\"><!-- NAME_START -->PHP Library Starter Kit<!-- NAME_END --></h1>\n\n<!-- BADGES_START -->\n<p align=\"center\">\n    <strong>A starter kit for quickly setting up a new PHP library package.</strong>\n</p>\n\n<p align=\"center\">\n    <a href=\"https://github.com/ramsey/php-library-starter-kit\"><img src=\"http://img.shields.io/badge/source-ramsey/php--library--starter--kit-blue.svg?style=flat-square\" alt=\"Source Code\"></a>\n    <a href=\"https://packagist.org/packages/ramsey/php-library-starter-kit\"><img src=\"https://img.shields.io/packagist/v/ramsey/php-library-starter-kit.svg?style=flat-square&label=release\" alt=\"Download Package\"></a>\n    <a href=\"https://php.net\"><img src=\"https://img.shields.io/packagist/php-v/ramsey/php-library-starter-kit.svg?style=flat-square&colorB=%238892BF\" alt=\"PHP Programming Language\"></a>\n    <a href=\"https://github.com/ramsey/php-library-starter-kit/blob/main/LICENSE\"><img src=\"https://img.shields.io/packagist/l/ramsey/php-library-starter-kit.svg?style=flat-square&colorB=darkcyan\" alt=\"Read License\"></a>\n    <a href=\"https://github.com/ramsey/php-library-starter-kit/actions/workflows/continuous-integration.yml\"><img src=\"https://img.shields.io/github/actions/workflow/status/ramsey/php-library-starter-kit/continuous-integration.yml?branch=main&style=flat-square&logo=github\" alt=\"Build Status\"></a>\n    <a href=\"https://codecov.io/gh/ramsey/php-library-starter-kit\"><img src=\"https://img.shields.io/codecov/c/gh/ramsey/php-library-starter-kit?label=codecov&logo=codecov&style=flat-square\" alt=\"Codecov Code Coverage\"></a>\n    <a href=\"https://shepherd.dev/github/ramsey/php-library-starter-kit\"><img src=\"https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fshepherd.dev%2Fgithub%2Framsey%2Fphp-library-starter-kit%2Fcoverage\" alt=\"Psalm Type Coverage\"></a>\n</p>\n<!-- BADGES_END -->\n\n<!-- DESC_START -->\n## About\n\nramsey/php-library-starter-kit is a package that may be used to generate a basic\nPHP library project directory structure, complete with many of the starting\nfiles (i.e. README, LICENSE, GitHub issue templates, PHPUnit configuration,\netc.) that are commonly found in PHP libraries. You may use the project\ndirectory that's created as a starting point for creating your own PHP libraries.\n<!-- DESC_END -->\n\n<!-- COC_START -->\nThis project adheres to a [code of conduct](CODE_OF_CONDUCT.md).\nBy participating in this project and its community, you are expected to\nuphold this code.\n<!-- COC_END -->\n\n<!-- USAGE_START -->\n## Usage\n\n``` bash\ncomposer create-project ramsey/php-library-starter-kit YOUR-PROJECT-NAME\n```\n\nRunning this command will create a new repository containing the same files\nand structure as this repository. Afterward, it will run the\n`Ramsey\\Dev\\LibraryStarterKit\\Wizard::start()` method to set up the project, which will\nwalk you through a series of questions and make changes to files based on your\nanswers. When complete, it will remove the `./src/LibraryStarterKit` and `./tests/LibraryStarterKit`\ndirectories, leaving everything else in place with an initial commit.\n\n### Using An Existing Answers File\n\nWhen executing `create-project`, if you exit the program while in the middle of\nthe question prompts, you might notice it creates a `.starter-kit-answers` file\nin the project directory. When you return later and run `composer starter-kit`,\nit will use this file to pre-fill any questions you've already answered. Once\nfinished, the starter kit removes this file.\n\nYou may also use an existing answers file to provide all your answers to the\nprompts, including skipping the question prompts. To do this, set an environment\nvariable with the path to your answers file:\n\n```shell\nSTARTER_KIT_ANSWERS_FILE=/path/to/starter-kit-answers.json\n```\n\nTo skip the question prompts, make sure you include the `skipPrompts` property\nin the answers file, and set it to `true`.\n\nThe answers file is a JSON object, consisting of all the public properties found\nin `Ramsey\\Dev\\LibraryStarterKit\\Answers`.\n\nFor example:\n\n```json\n{\n    \"authorEmail\": \"author@example.com\",\n    \"authorHoldsCopyright\": true,\n    \"authorName\": \"Author Smith\",\n    \"authorUrl\": \"https://example.com/\",\n    \"codeOfConduct\": \"Contributor-2.0\",\n    \"codeOfConductCommittee\": null,\n    \"codeOfConductEmail\": \"conduct@example.com\",\n    \"codeOfConductPoliciesUrl\": null,\n    \"codeOfConductReportingUrl\": null,\n    \"copyrightEmail\": \"author@example.com\",\n    \"copyrightHolder\": \"Acme, Inc.\",\n    \"copyrightUrl\": \"https://example.com/acme\",\n    \"copyrightYear\": \"2021\",\n    \"githubUsername\": \"example\",\n    \"license\": \"MIT\",\n    \"packageDescription\": \"An awesome library that does stuff.\",\n    \"packageKeywords\": [\n        \"awesome\",\n        \"stuff\"\n    ],\n    \"packageName\": \"acme/awesome\",\n    \"packageNamespace\": \"Acme\\\\Awesome\",\n    \"projectName\": \"My Awesome Library\",\n    \"securityPolicy\": true,\n    \"securityPolicyContactEmail\": \"security@example.com\",\n    \"securityPolicyContactFormUrl\": null,\n    \"skipPrompts\": true,\n    \"vendorName\": \"acme\"\n}\n```\n<!-- USAGE_END -->\n\n## Contributing\n\nContributions are welcome! To contribute, please familiarize yourself with\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\n<!-- SECURITY_START -->\n## Coordinated Disclosure\n\nKeeping user information safe and secure is a top priority, and we welcome the\ncontribution of external security researchers. If you believe you've found a\nsecurity issue in software that is maintained in this repository, please read\n[SECURITY.md](SECURITY.md) for instructions on submitting a vulnerability report.\n<!-- SECURITY_END -->\n\n<!-- FAQ_START -->\n## FAQs\n\n### Why did you include package/tool *x* and not *y*?\n\nI created this project starter kit for my own uses, and these are the\ncommon files, packages, and tools I use in my PHP libraries. If you like what\nyou see, feel free to use it. If you like some of it but not all, fork it and\ncustomize it to fit your needs. I hope you find it helpful!\n<!-- FAQ_END -->\n\n<!-- COPYRIGHT_START -->\n## Copyright and License\n\nramsey/php-library-starter-kit is copyright © [Ben Ramsey](https://benramsey.com)\nand licensed for use under the terms of the\nMIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n<!-- COPYRIGHT_END -->\n"
  },
  {
    "path": "SECURITY.md",
    "content": "<!--\n    This policy template was created using the HackerOne Policy Builder [1],\n    with guidance from the National Telecommunications and Information\n    Administration Coordinated Vulnerability Disclosure Template [2].\n -->\n\n# Vulnerability Disclosure Policy (VDP)\n\n## Brand Promise\n\n<!--\n    This is your brand promise. Its objective is to \"demonstrate a clear, good\n    faith commitment to customers and other stakeholders potentially impacted by\n    security vulnerabilities\" [2].\n-->\n\nKeeping user information safe and secure is a top priority, and we welcome the\ncontribution of external security researchers.\n\n## Scope\n\n<!--\n    This is your initial scope. It tells vulnerability finders and reporters\n    \"which systems and capabilities are 'fair game' versus 'off limits'\" [2].\n    For software packages, this is often a list of currently maintained versions\n    of the package.\n-->\n\nIf you believe you've found a security issue in software that is maintained in\nthis repository, we encourage you to notify us.\n\n| Version | In scope | Source code |\n| ------- | :------: | ----------- |\n| latest  | ✅        | https://github.com/ramsey/php-library-starter-kit |\n\n## How to Submit a Report\n\n<!--\n    This is your communication process. It tells security researchers how to\n    contact you to report a vulnerability. It may be a link to a web form that\n    uses HTTPS for secure communication, or it may be an email address.\n    Optionally, you may choose to include a PGP public key, so that researchers\n    may send you encrypted messages.\n-->\n\nTo submit a vulnerability report, please contact us at security@ramsey.dev.\nYour submission will be reviewed and validated by a member of our team.\n\n## Safe Harbor\n\n<!--\n    This section assures vulnerability finders and reporters that they will\n    receive good faith responses to their good faith acts. In other words,\n    \"we will not take legal action if...\" [2].\n-->\n\nWe support safe harbor for security researchers who:\n\n* Make a good faith effort to avoid privacy violations, destruction of data, and\n  interruption or degradation of our services.\n* Only interact with accounts you own or with explicit permission of the account\n  holder. If you do encounter Personally Identifiable Information (PII) contact\n  us immediately, do not proceed with access, and immediately purge any local\n  information.\n* Provide us with a reasonable amount of time to resolve vulnerabilities prior\n  to any disclosure to the public or a third party.\n\nWe will consider activities conducted consistent with this policy to constitute\n\"authorized\" conduct and will not pursue civil action or initiate a complaint to\nlaw enforcement. We will help to the extent we can if legal action is initiated\nby a third party against you.\n\nPlease submit a report to us before engaging in conduct that may be inconsistent\nwith or unaddressed by this policy.\n\n## Preferences\n\n<!--\n    The preferences section sets expectations based on priority and submission\n    volume, rather than legal objection or restriction [2].\n\n    According to the NTIA [2]:\n\n        This section is a living document that sets expectations for preferences\n        and priorities, typically maintained by the support and engineering\n        team. This can outline classes of vulnerabilities, reporting style\n        (crash dumps, CVSS scoring, proof-of-concept, etc.), tools, etc. Too\n        many preferences can set the wrong tone or make reporting findings\n        difficult to navigate. This section also sets expectations to the\n        researcher community for what types of issues are considered important\n        or not.\n-->\n\n* Please provide detailed reports with reproducible steps and a clearly defined\n  impact.\n* Include the version number of the vulnerable package in your report\n* Social engineering (e.g. phishing, vishing, smishing) is prohibited.\n\n<!--\n    References\n\n    [1] HackerOne. Policy builder. Retrieved from https://hackerone.com/policy-builder/\n\n    [2] NTIA Safety Working Group. 2016. \"Early stage\" coordinated vulnerability\n    disclosure template: Version 1.1. (15 December 2016). Retrieved from\n    https://www.ntia.doc.gov/files/ntia/publications/ntia_vuln_disclosure_early_stage_template.pdf\n-->\n\n## Encryption Key for security@ramsey.dev\n\nFor increased privacy when reporting sensitive issues, you may encrypt your\nmessage using the following public key:\n\n```\n-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBF+Z9gEBEACbT/pIx8RR0K18t8Z2rDnmEV44YdT7HNsMdq+D6SAlx8UUb6AU\njGIbV9dgBgGNtOLU1pxloaJwL9bWIRbj+X/Qb2WNIP//Vz1Y40ox1dSpfCUrizXx\nkb4p58Xml0PsB8dg3b4RDUgKwGC37ne5xmDnigyJPbiB2XJ6Xc46oPCjh86XROTK\nwEBB2lY67ClBlSlvC2V9KmbTboRQkLdQDhOaUosMb99zRb0EWqDLaFkZVjY5HI7i\n0pTveE6dI12NfHhTwKjZ5pUiAZQGlKA6J1dMjY2unxHZkQj5MlMfrLSyJHZxccdJ\nxD94T6OTcTHt/XmMpI2AObpewZDdChDQmcYDZXGfAhFoJmbvXsmLMGXKgzKoZ/ls\nRmLsQhh7+/r8E+Pn5r+A6Hh4uAc14ApyEP0ckKeIXw1C6pepHM4E8TEXVr/IA6K/\nz6jlHORixIFX7iNOnfHh+qwOgZw40D6JnBfEzjFi+T2Cy+JzN2uy7I8UnecTMGo3\n5t6astPy6xcH6kZYzFTV7XERR6LIIVyLAiMFd8kF5MbJ8N5ElRFsFHPW+82N2HDX\nc60iSaTB85k6R6xd8JIKDiaKE4sSuw2wHFCKq33d/GamYezp1wO+bVUQg88efljC\n2JNFyD+vl30josqhw1HcmbE1TP3DlYeIL5jQOlxCMsgai6JtTfHFM/5MYwARAQAB\ntBNzZWN1cml0eUByYW1zZXkuZGV2iQJUBBMBCAA+FiEE4drPD+/ofZ570fAYq0bv\nvXQCywIFAl+Z9gECGwMFCQeGH4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ\nq0bvvXQCywIkEA//Qcwv8MtTCy01LHZd9c7VslwhNdXQDYymcTyjcYw8x7O22m4B\n3hXE6vqAplFhVxxkqXB2ef0tQuzxhPHNJgkCE4Wq4i+V6qGpaSVHQT2W6DN/NIhL\nvS8OdScc6zddmIbIkSrzVVAtjwehFNEIrX3DnbbbK+Iku7vsKT5EclOluIsjlYoX\ngoW8IeReyDBqOe2H3hoCGw6EA0D/NYV2bJnfy53rXVIyarsXXeOLp7eNEH6Td7aW\nPVSrMZJe1t+knrEGnEdrXWzlg4lCJJCtemGv+pKBUomnyISXSdqyoRCCzvQjqyig\n2kRebUX8BXPW33p4OXPj9sIboUOjZwormWwqqbFMO+J4TiVCUoEoheI7emPFRcNN\nQtPJrjbY1++OznBc0GRpfeUkGoU1cbRl1bnepnFIZMTDLkrVW6I1Y4q8ZVwX3BkE\nN81ctFrRpHBlU36EdHvjPQmGtuiL77Qq3fWmMv7yTvK1wHJAXfEb0ZJWHZCbck3w\nl0CVq0Z+UUAOM8Rp1N0N8m92xtapav0qCFU9qzf2J5qX6GRmWv+d29wPgFHzDWBm\nnnrYYIA4wJLx00U6SMcVBSnNe91B+RfGY5XQhbWPjQQecOGCSDsxaFAq2MeOVJyZ\nbIjLYfG9GxoLKr5R7oLRJvZI4nKKBc1Kci/crZbdiSdQhSQGlDz88F1OHeCIdQQQ\nEQgAHRYhBOhdAxHd+lus86YQ57Atl5icjAcbBQJfmfdIAAoJELAtl5icjAcbFVcA\n/1LqB3ZjsnXDAvvAXZVjSPqofSlpMLeRQP6IM/A9Odq0AQCZrtZc1knOMGEcjppK\nRk+sy/R0Mshy8TDuaZIRgh2Ux7kCDQRfmfYBARAAmchKzzVz7IaEq7PnZDb3szQs\nT/+E9F3m39yOpV4fEB1YzObonFakXNT7Gw2tZEx0eitUMqQ/13jjfu3UdzlKl2bR\nqA8LrSQRhB+PTC9A1XvwxCUYhhjGiLzJ9CZL6hBQB43qHOmE9XJPme90geLsF+gK\nu39Waj1SNWzwGg+Gy1Gl5f2AJoDTxznreCuFGj+Vfaczt/hlfgqpOdb9jsmdoE7t\n3DSWppA9dRHWwQSgE6J28rR4QySBcqyXS6IMykqaJn7Z26yNIaITLnHCZOSY8zhP\nha7GFsN549EOCgECbrnPt9dmI2+hQE0RO0e7SOBNsIf5sz/i7urhwuj0CbOqhjc2\nX1AEVNFCVcb6HPi/AWefdFCRu0gaWQxn5g+9nkq5slEgvzCCiKYzaBIcr8qR6Hb4\nFaOPVPxO8vndRouq57Ws8XpAwbPttioFuCqF4u9K+tK/8e2/R8QgRYJsE3Cz/Fu8\n+pZFpMnqbDEbK3DL3ss+1ed1sky+mDV8qXXeI33XW5hMFnk1JWshUjHNlQmE6ftC\nU0xSTMVUtwJhzH2zDp8lEdu7qi3EsNULOl68ozDr6soWAvCbHPeTdTOnFySGCleG\n/3TonsoZJs/sSPPJnxFQ1DtgQL6EbhIwa0ZwU4eKYVHZ9tjxuMX3teFzRvOrJjgs\n+ywGlsIURtEckT5Y6nMAEQEAAYkCPAQYAQgAJhYhBOHazw/v6H2ee9HwGKtG7710\nAssCBQJfmfYBAhsMBQkHhh+AAAoJEKtG7710AssC8NcP/iDAcy1aZFvkA0EbZ85p\ni7/+ywtE/1wF4U4/9OuLcoskqGGnl1pJNPooMOSBCfreoTB8HimT0Fln0CoaOm4Q\npScNq39JXmf4VxauqUJVARByP6zUfgYarqoaZNeuFF0S4AZJ2HhGzaQPjDz1uKVM\nPE6tQSgQkFzdZ9AtRA4vElTH6yRAgmepUsOihk0b0gUtVnwtRYZ8e0Qt3ie97a73\nDxLgAgedFRUbLRYiT0vNaYbainBsLWKpN/T8odwIg/smP0Khjp/ckV60cZTdBiPR\nszBTPJESMUTu0VPntc4gWwGsmhZJg/Tt/qP08XYo3VxNYBegyuWwNR66zDWvwvGH\nmuMv5UchuDxp6Rt3JkIO4voMT1JSjWy9p8krkPEE4V6PxAagLjdZSkt92wVLiK5x\ny5gNrtPhU45YdRAKHr36OvJBJQ42CDaZ6nzrzghcIp9CZ7ANHrI+QLRM/csz+AGA\nszSp6S4mc1lnxxfbOhPPpebZPn0nIAXoZnnoVKdrxBVedPQHT59ZFvKTQ9Fs7gd3\nsYNuc7tJGFGC2CxBH4ANDpOQkc5q9JJ1HSGrXU3juxIiRgfA26Q22S9c71dXjElw\nRi584QH+bL6kkYmm8xpKF6TVwhwu5xx/jBPrbWqFrtbvLNrnfPoapTihBfdIhkT6\nnmgawbBHA02D5xEqB5SU3WJu\n=eJNx\n-----END PGP PUBLIC KEY BLOCK-----\n```\n"
  },
  {
    "path": "bin/.gitkeep",
    "content": ""
  },
  {
    "path": "build/.gitignore",
    "content": "\n*\n!.gitignore\n\ncache/*\n!cache\n!cache/.gitkeep\n\ncoverage/*\n!coverage\n!coverage/.gitkeep\n\nlogs/*\n!logs\n!logs/.gitkeep\n"
  },
  {
    "path": "build/cache/.gitkeep",
    "content": ""
  },
  {
    "path": "build/coverage/.gitkeep",
    "content": ""
  },
  {
    "path": "build/logs/.gitkeep",
    "content": ""
  },
  {
    "path": "captainhook.json",
    "content": "{\n    \"config\": {\n        \"ansi-colors\": true,\n        \"fail-on-first-error\": false,\n        \"plugins\": [],\n        \"verbosity\": \"normal\"\n    },\n    \"commit-msg\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"\\\\Ramsey\\\\CaptainHook\\\\ValidateConventionalCommit\"\n            }\n        ]\n    },\n    \"pre-push\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"composer test\"\n            }\n        ]\n    },\n    \"pre-commit\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"composer validate\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileStaged\\\\Any\",\n                        \"args\": [[\"composer.json\"]]\n                    }\n                ]\n            },\n            {\n                \"action\": \"composer normalize --dry-run\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileStaged\\\\Any\",\n                        \"args\": [[\"composer.json\"]]\n                    }\n                ]\n            },\n            {\n                \"action\": \"composer dev:lint:syntax -- {$STAGED_FILES|of-type:php}\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileStaged\\\\OfType\",\n                        \"args\": [\"php\"]\n                    }\n                ]\n            },\n            {\n                \"action\": \"composer dev:lint:style -- {$STAGED_FILES|of-type:php}\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileStaged\\\\OfType\",\n                        \"args\": [\"php\"]\n                    }\n                ]\n            }\n        ]\n    },\n    \"prepare-commit-msg\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"\\\\Ramsey\\\\CaptainHook\\\\PrepareConventionalCommit\"\n            }\n        ]\n    },\n    \"post-commit\": {\n        \"enabled\": false,\n        \"actions\": []\n    },\n    \"post-merge\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"composer install --ansi\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileChanged\\\\Any\",\n                        \"args\": [[\"composer.json\", \"composer.lock\"]]\n                    }\n                ]\n            }\n        ]\n    },\n    \"post-checkout\": {\n        \"enabled\": true,\n        \"actions\": [\n            {\n                \"action\": \"composer install --ansi\",\n                \"conditions\": [\n                    {\n                        \"exec\": \"\\\\CaptainHook\\\\App\\\\Hook\\\\Condition\\\\FileChanged\\\\Any\",\n                        \"args\": [[\"composer.json\", \"composer.lock\"]]\n                    }\n                ]\n            }\n        ]\n    },\n    \"post-rewrite\": {\n        \"enabled\": false,\n        \"actions\": []\n    },\n    \"post-change\": {\n        \"enabled\": false,\n        \"actions\": []\n    }\n}\n"
  },
  {
    "path": "codecov.yml",
    "content": "codecov:\n  require_ci_to_pass: yes\n\ncoverage:\n  precision: 2\n  round: down\n  range: \"70...100\"\n  status:\n    project:\n      default:\n        target: auto\n        threshold: 0%\n    patch:\n      default:\n        target: auto\n        threshold: 0%\n\nparsers:\n  gcov:\n    branch_detection:\n      conditional: yes\n      loop: yes\n      method: no\n      macro: no\n\ncomment:\n  layout: \"reach,diff,flags,tree\"\n  behavior: default\n  require_changes: false\n"
  },
  {
    "path": "composer.json",
    "content": "{\n    \"name\": \"ramsey/php-library-starter-kit\",\n    \"description\": \"A starter kit for quickly setting up a new PHP library package.\",\n    \"license\": \"MIT\",\n    \"type\": \"project\",\n    \"keywords\": [\n        \"builder\",\n        \"library\",\n        \"package\",\n        \"skeleton\",\n        \"template\"\n    ],\n    \"authors\": [\n        {\n            \"name\": \"Ben Ramsey\",\n            \"email\": \"ben@benramsey.com\",\n            \"homepage\": \"https://benramsey.com\"\n        }\n    ],\n    \"require\": {\n        \"php\": \"^8.1\",\n        \"symfony/finder\": \"^6.4 || ^7.2\",\n        \"twig/twig\": \"^3.20\"\n    },\n    \"require-dev\": {\n        \"ramsey/devtools\": \"^2.1\",\n        \"spatie/phpunit-snapshot-assertions\": \"^5.1\"\n    },\n    \"suggest\": {\n        \"ext-pcntl\": \"Provides the ability to quit and resume the starter kit wizard on POSIX systems\"\n    },\n    \"minimum-stability\": \"dev\",\n    \"prefer-stable\": true,\n    \"autoload\": {\n        \"psr-4\": {\n            \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\\": \"src/LibraryStarterKit/\",\n            \"Vendor\\\\SubNamespace\\\\\": \"src/\"\n        }\n    },\n    \"autoload-dev\": {\n        \"psr-4\": {\n            \"Ramsey\\\\Test\\\\Dev\\\\LibraryStarterKit\\\\\": \"tests/LibraryStarterKit/\",\n            \"Vendor\\\\Test\\\\SubNamespace\\\\\": \"tests/\"\n        }\n    },\n    \"config\": {\n        \"allow-plugins\": {\n            \"captainhook/plugin-composer\": true,\n            \"dealerdirect/phpcodesniffer-composer-installer\": true,\n            \"ergebnis/composer-normalize\": true,\n            \"php-http/discovery\": true,\n            \"phpstan/extension-installer\": true,\n            \"ramsey/composer-repl\": true,\n            \"ramsey/devtools\": true\n        },\n        \"sort-packages\": true\n    },\n    \"extra\": {\n        \"captainhook\": {\n            \"force-install\": true\n        },\n        \"ramsey/conventional-commits\": {\n            \"configFile\": \"conventional-commits.json\"\n        },\n        \"ramsey/devtools\": {\n            \"command-prefix\": \"dev\",\n            \"memory-limit\": \"-1\"\n        }\n    },\n    \"scripts\": {\n        \"post-root-package-install\": \"git init\",\n        \"post-create-project-cmd\": \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\Wizard::start\",\n        \"starter-kit\": \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\Wizard::start\"\n    },\n    \"scripts-descriptions\": {\n        \"starter-kit\": \"Runs the PHP Library Starter Kit wizard.\"\n    }\n}\n"
  },
  {
    "path": "conventional-commits.json",
    "content": "{\n    \"typeCase\": \"kebab\",\n    \"types\": [\n        \"chore\",\n        \"ci\",\n        \"docs\",\n        \"feat\",\n        \"fix\",\n        \"refactor\",\n        \"security\",\n        \"style\",\n        \"test\"\n    ],\n    \"scopeCase\": \"kebab\",\n    \"scopeRequired\": false,\n    \"scopes\": [],\n    \"descriptionCase\": null,\n    \"descriptionEndMark\": \"\",\n    \"bodyRequired\": false,\n    \"bodyWrapWidth\": 72,\n    \"requiredFooters\": []\n}\n"
  },
  {
    "path": "docs/.gitkeep",
    "content": ""
  },
  {
    "path": "phpcs.xml.dist",
    "content": "<?xml version=\"1.0\"?>\n<ruleset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"vendor/squizlabs/php_codesniffer/phpcs.xsd\">\n\n    <arg name=\"extensions\" value=\"php\"/>\n    <arg name=\"colors\"/>\n    <arg value=\"sp\"/>\n\n    <file>./src</file>\n    <file>./tests</file>\n\n    <rule ref=\"Ramsey\"/>\n\n</ruleset>\n"
  },
  {
    "path": "phpstan.neon.dist",
    "content": "parameters:\n    tmpDir: ./build/cache/phpstan\n    treatPhpDocTypesAsCertain: false\n    level: max\n    paths:\n        - ./src\n        - ./tests\n"
  },
  {
    "path": "phpunit.xml.dist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n         xsi:noNamespaceSchemaLocation=\"./vendor/phpunit/phpunit/phpunit.xsd\"\n         bootstrap=\"./vendor/autoload.php\"\n         colors=\"true\"\n         cacheDirectory=\"./build/cache/phpunit\">\n\n    <testsuites>\n        <testsuite name=\"unit-tests\">\n            <directory>./tests</directory>\n        </testsuite>\n    </testsuites>\n\n    <coverage/>\n\n    <php>\n        <ini name=\"memory_limit\" value=\"1G\"/>\n    </php>\n\n    <source>\n        <include>\n            <directory suffix=\".php\">./src</directory>\n        </include>\n    </source>\n\n</phpunit>\n"
  },
  {
    "path": "psalm.xml",
    "content": "<?xml version=\"1.0\"?>\n<psalm xmlns=\"https://getpsalm.org/schema/config\"\n       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n       xsi:schemaLocation=\"https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd\"\n       cacheDirectory=\"./build/cache/psalm\"\n       errorLevel=\"1\"\n       findUnusedBaselineEntry=\"true\"\n       findUnusedCode=\"false\"\n       resolveFromConfigFile=\"true\">\n\n    <projectFiles>\n        <directory name=\"./src\"/>\n        <ignoreFiles>\n            <directory name=\"./tests\"/>\n            <directory name=\"./vendor\"/>\n        </ignoreFiles>\n    </projectFiles>\n\n    <plugins>\n        <pluginClass class=\"Psalm\\MockeryPlugin\\Plugin\"/>\n        <pluginClass class=\"Psalm\\PhpUnitPlugin\\Plugin\"/>\n    </plugins>\n\n    <issueHandlers>\n        <ClassMustBeFinal errorLevel=\"info\"/>\n        <MissingOverrideAttribute errorLevel=\"info\"/>\n    </issueHandlers>\n\n</psalm>\n"
  },
  {
    "path": "resources/.gitkeep",
    "content": ""
  },
  {
    "path": "resources/templates/CHANGELOG.md.twig",
    "content": "# {{ packageName }} Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## 0.1.0 - TBD\n\n### Added\n\n- Nothing.\n\n### Changed\n\n- Nothing.\n\n### Deprecated\n\n- Nothing.\n\n### Removed\n\n- Nothing.\n\n### Fixed\n\n- Nothing.\n"
  },
  {
    "path": "resources/templates/CONTRIBUTING.md.twig",
    "content": "# Contributing\n\nContributions are welcome. This project accepts pull requests on [GitHub][].\n\n{% if codeOfConduct != 'None' %}\nThis project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By\nparticipating in this project and its community, you are expected to uphold this\ncode.\n{% endif %}\n\n## Communication Channels\n\nYou can find help and discussion in the following places:\n\n* GitHub Issues: <https://github.com/{{ packageName }}/issues>\n\n## Reporting Bugs\n\nReport bugs using the project's [issue tracker][issues].\n\n⚠️ _**ATTENTION!!!** DO NOT include passwords or other sensitive information in\nyour bug report._\n\nWhen submitting a bug report, please include enough information to reproduce the\nbug. A good bug report includes the following sections:\n\n* **Description**\n\n  Provide a short and clear description of the bug.\n\n* **Steps to reproduce**\n\n  Provide steps to reproduce the behavior you are experiencing. Please try to\n  keep this as short as possible. If able, create a reproducible script outside\n  of any framework you are using. This will help us to quickly debug the issue.\n\n* **Expected behavior**\n\n  Provide a short and clear description of what you expect to happen.\n\n* **Screenshots or output**\n\n  If applicable, add screenshots or program output to help explain your problem.\n\n* **Environment details**\n\n  Provide details about the system where you're using this package, such as PHP\n  version and operating system.\n\n* **Additional context**\n\n  Provide any additional context that may help us debug the problem.\n\n## Fixing Bugs\n\nThis project welcomes pull requests to fix bugs!\n\nIf you see a bug report that you'd like to fix, please feel free to do so.\nFollowing the directions and guidelines described in the \"Adding New Features\"\nsection below, you may create bugfix branches and send pull requests.\n\n## Adding New Features\n\nIf you have an idea for a new feature, it's a good idea to check out the\n[issues][] or active [pull requests][] first to see if anyone is already working\non the feature. If not, feel free to submit an issue first, asking whether the\nfeature is beneficial to the project. This will save you from doing a lot of\ndevelopment work only to have your feature rejected. We don't enjoy rejecting\nyour hard work, but some features don't fit with the goals of the project.\n\nWhen you do begin working on your feature, here are some guidelines to consider:\n\n* Your pull request description should clearly detail the changes you have made.\n  We will use this description to update the CHANGELOG. If there is no\n  description, or it does not adequately describe your feature, we may ask you\n  to update the description.\n* {{ packageName }} follows a superset of **[PSR-12 coding standard][psr-12]**.\n  Please ensure your code does, too. _Hint: run `composer dev:lint` to check._\n* Please **write tests** for any new features you add.\n* Please **ensure that tests pass** before submitting your pull request.\n  {{ packageName }} automatically runs tests for pull requests. However,\n  running the tests locally will help save time. _Hint: run `composer test`._\n* **Use topic/feature branches.** Please do not ask to pull from your main branch.\n  * For more information, see \"[Understanding the GitHub flow][gh-flow].\"\n* **Submit one feature per pull request.** If you have multiple features you\n  wish to submit, please break them into separate pull requests.\n* **Write good commit messages.** This project follows the\n  [Conventional Commits][] specification and uses Git hooks to ensure all\n  commits follow this standard. Running `composer install` will set up the Git\n  hooks, so when you run `git commit`, you'll be prompted to create a commit\n  using the Conventional Commits rules.\n\n## Developing\n\nTo develop this project, you will need [PHP](https://www.php.net) 7.4 or greater\nand [Composer](https://getcomposer.org).\n\nAfter cloning this repository locally, execute the following commands:\n\n``` bash\ncd /path/to/repository\ncomposer install\n```\n\nNow, you are ready to develop!\n\n### Tooling\n\nThis project uses [CaptainHook](https://github.com/CaptainHookPhp/captainhook)\nto validate all staged changes prior to commit.\n\n### Commands\n\nTo see all the commands available for contributing to this project:\n\n``` bash\ncomposer list dev\n```\n\n### Coding Standards\n\nThis project follows a superset of [PSR-12](https://www.php-fig.org/psr/psr-12/)\ncoding standards, enforced by [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer).\n\nCaptainHook will run coding standards checks before committing.\n\nYou may lint the codebase manually using the following commands:\n\n``` bash\n# Lint\ncomposer dev:lint\n\n# Attempt to auto-fix coding standards issues\ncomposer dev:lint:fix\n```\n\n### Static Analysis\n\nThis project uses a combination of [PHPStan](https://github.com/phpstan/phpstan)\nand [Psalm](https://github.com/vimeo/psalm) to provide static analysis of PHP\ncode.\n\nCaptainHook will run static analysis checks before committing.\n\nYou may run static analysis manually across the whole codebase with the\nfollowing command:\n\n``` bash\n# Static analysis\ncomposer dev:analyze\n```\n\n### Project Structure\n\nThis project uses [pds/skeleton](https://github.com/php-pds/skeleton) as its\nbase folder structure and layout.\n\n### Running Tests\n\nThe following must pass before we will accept a pull request. If this does not\npass, it will result in a complete build failure. Before you can run this, be\nsure to `composer install`.\n\nTo run all the tests and coding standards checks, execute the following from the\ncommand line, while in the project root directory:\n\n```\ncomposer test\n```\n\nCaptainHook will automatically run all tests before pushing to the remote\nrepository.\n\n[github]: https://github.com/{{ packageName }}\n[issues]: https://github.com/{{ packageName }}/issues\n[pull requests]: https://github.com/{{ packageName }}/pulls\n[psr-12]: https://www.php-fig.org/psr/psr-12/\n[gh-flow]: https://guides.github.com/introduction/flow/\n[conventional commits]: https://www.conventionalcommits.org/\n"
  },
  {
    "path": "resources/templates/FUNDING.yml.twig",
    "content": ""
  },
  {
    "path": "resources/templates/code-of-conduct/Citizen-2.3.md.twig",
    "content": "# Citizen Code of Conduct\n\n## 1. Purpose\n\nA primary goal of {{ packageName }} is to be inclusive to the largest number of\ncontributors, with the most varied and diverse backgrounds possible. As such, we\nare committed to providing a friendly, safe and welcoming environment for all,\nregardless of gender, sexual orientation, ability, ethnicity, socioeconomic\nstatus, and religion (or lack thereof).\n\nThis code of conduct outlines our expectations for all those who participate in\nour community, as well as the consequences for unacceptable behavior.\n\nWe invite all those who participate in {{ packageName }} to help us create safe and\npositive experiences for everyone.\n\n## 2. Open \\[Source/Culture/Tech\\] Citizenship\n\nA supplemental goal of this Code of Conduct is to increase open\n\\[source/culture/tech\\] citizenship by encouraging participants to recognize and\nstrengthen the relationships between our actions and their effects on our\ncommunity.\n\nCommunities mirror the societies in which they exist and positive action is\nessential to counteract the many forms of inequality and abuses of power that\nexist in society.\n\nIf you see someone who is making an extra effort to ensure our community is\nwelcoming, friendly, and encourages all participants to contribute to the\nfullest extent, we want to know.\n\n## 3. Expected Behavior\n\nThe following behaviors are expected and requested of all community members:\n\n  * Participate in an authentic and active way. In doing so, you contribute to\n    the health and longevity of this community.\n  * Exercise consideration and respect in your speech and actions.\n  * Attempt collaboration before conflict.\n  * Refrain from demeaning, discriminatory, or harassing behavior and speech.\n  * Be mindful of your surroundings and of your fellow participants. Alert\n    community leaders if you notice a dangerous situation, someone in distress,\n    or violations of this Code of Conduct, even if they seem inconsequential.\n  * Remember that community event venues may be shared with members of the\n    public; please be respectful to all patrons of these locations.\n\n## 4. Unacceptable Behavior\n\nThe following behaviors are considered harassment and are unacceptable within\nour community:\n\n  * Violence, threats of violence or violent language directed against another\n    person.\n  * Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory\n    jokes and language.\n  * Posting or displaying sexually explicit or violent material.\n  * Posting or threatening to post other people's personally identifying\n    information (\"doxing\").\n  * Personal insults, particularly those related to gender, sexual orientation,\n    race, religion, or disability.\n  * Inappropriate photography or recording.\n  * Inappropriate physical contact. You should have someone's consent before\n    touching them.\n  * Unwelcome sexual attention. This includes, sexualized comments or jokes;\n    inappropriate touching, groping, and unwelcomed sexual advances.\n  * Deliberate intimidation, stalking or following (online or in person).\n  * Advocating for, or encouraging, any of the above behavior.\n  * Sustained disruption of community events, including talks and presentations.\n\n## 5. Weapons Policy\n\nNo weapons will be allowed at {{ packageName }} events, community spaces, or in other\nspaces covered by the scope of this Code of Conduct. Weapons include but are not\nlimited to guns, explosives (including fireworks), and large knives such as\nthose used for hunting or display, as well as any other item used for the\npurpose of causing injury or harm to others. Anyone seen in possession of one of\nthese items will be asked to leave immediately, and will only be allowed to\nreturn without the weapon. Community members are further expected to comply with\nall state and local laws on this matter.\n\n## 6. Consequences of Unacceptable Behavior\n\nUnacceptable behavior from any community member, including sponsors and those\nwith decision-making authority, will not be tolerated.\n\nAnyone asked to stop unacceptable behavior is expected to comply immediately.\n\nIf a community member engages in unacceptable behavior, the community organizers\nmay take any action they deem appropriate, up to and including a temporary ban\nor permanent expulsion from the community without warning (and without refund in\nthe case of a paid event).\n\n## 7. Reporting Guidelines\n\nIf you are subject to or witness unacceptable behavior, or have any other\nconcerns, please notify a community organizer as soon as possible.\n{{ codeOfConductEmail }}\n\n{% if codeOfConductReportingUrl %}\n{{ codeOfConductReportingUrl }}\n{% else %}\n<!-- Provide a URL or instructions for reporting code of conduct issues. -->\n{% endif %}\n\nAdditionally, community organizers are available to help community members\nengage with local law enforcement or to otherwise help those experiencing\nunacceptable behavior feel safe. In the context of in-person events, organizers\nwill also provide escorts as desired by the person experiencing distress.\n\n## 8. Addressing Grievances\n\nIf you feel you have been falsely or unfairly accused of violating this Code of\nConduct, you should notify {% if codeOfConductCommittee %}{{ codeOfConductCommittee }}{% else %}the {{ packageName }} project lead(s) <!-- Provide the name of your code of conduct committee. -->{% endif %} with\na concise description of your grievance. Your grievance will be handled in\naccordance with our existing governing policies.\n\n{% if codeOfConductPoliciesUrl %}\n{{ codeOfConductPoliciesUrl }}\n{% else %}\n<!-- Provide a URL or details for governing polcies. -->\n{% endif %}\n\n<!--\nNOTE: Every organization's governing policies should dictate how you handle\nwarnings and expulsions of community members. It is strongly recommended that\nyou mention those policies here or in Section 7 and that you include a mechanism\nfor addressing grievances.\n-->\n\n## 9. Scope\n\nWe expect all community participants (contributors, paid or otherwise; sponsors;\nand other guests) to abide by this Code of Conduct in all community\nvenues--online and in-person--as well as in all one-on-one communications\npertaining to community business.\n\nThis code of conduct and its related procedures also applies to unacceptable\nbehavior occurring outside the scope of community activities when such behavior\nhas the potential to adversely affect the safety and well-being of community\nmembers.\n\n## 10. Contact info\n\n{{ codeOfConductEmail }}\n\n## 11. License and attribution\n\nThe Citizen Code of Conduct is distributed by\n[Stumptown Syndicate](http://stumptownsyndicate.org) under a\n[Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).\n\nPortions of text derived from the\n[Django Code of Conduct](https://www.djangoproject.com/conduct/) and the\n[Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).\n\n*Revision 2.3. Posted 6 March 2017.*\n\n*Revision 2.2. Posted 4 February 2016.*\n\n*Revision 2.1. Posted 23 June 2014.*\n\n*Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org)\nboard on 10 January 2013. Posted 17 March 2013.*\n"
  },
  {
    "path": "resources/templates/code-of-conduct/Contributor-1.4.md.twig",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to make participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\n  advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic\n  address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned to this Code of Conduct, or to ban temporarily or\npermanently any contributor for other behaviors that they deem inappropriate,\nthreatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies within all project spaces, and it also applies when\nan individual is representing the project or its community in public spaces.\nExamples of representing a project or community include using an official\nproject e-mail address, posting via an official social media account, or acting\nas an appointed representative at an online or offline event. Representation of\na project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported by contacting the project team at {{ codeOfConductEmail }}. All\ncomplaints will be reviewed and investigated and will result in a response that\nis deemed necessary and appropriate to the circumstances. The project team is\nobligated to maintain confidentiality with regard to the reporter of an incident.\nFurther details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq\n"
  },
  {
    "path": "resources/templates/code-of-conduct/Contributor-2.0.md.twig",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, religion, or sexual identity\nand orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n* Demonstrating empathy and kindness toward other people\n* Being respectful of differing opinions, viewpoints, and experiences\n* Giving and gracefully accepting constructive feedback\n* Accepting responsibility and apologizing to those affected by our mistakes,\n  and learning from the experience\n* Focusing on what is best not just for us as individuals, but for the\n  overall community\n\nExamples of unacceptable behavior include:\n\n* The use of sexualized language or imagery, and sexual attention or\n  advances of any kind\n* Trolling, insulting or derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or email\n  address, without their explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n{{ codeOfConductEmail }}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series\nof actions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or\npermanent ban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior,  harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within\nthe community.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.0, available at\nhttps://www.contributor-covenant.org/version/2/0/code_of_conduct.html.\n\nCommunity Impact Guidelines were inspired by [Mozilla's code of conduct\nenforcement ladder](https://github.com/mozilla/diversity).\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see the FAQ at\nhttps://www.contributor-covenant.org/faq. Translations are available at\nhttps://www.contributor-covenant.org/translations.\n"
  },
  {
    "path": "resources/templates/code-of-conduct/Contributor-2.1.md.twig",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, caste, color, religion, or sexual\nidentity and orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n* Demonstrating empathy and kindness toward other people\n* Being respectful of differing opinions, viewpoints, and experiences\n* Giving and gracefully accepting constructive feedback\n* Accepting responsibility and apologizing to those affected by our mistakes,\n  and learning from the experience\n* Focusing on what is best not just for us as individuals, but for the overall\n  community\n\nExamples of unacceptable behavior include:\n\n* The use of sexualized language or imagery, and sexual attention or advances of\n  any kind\n* Trolling, insulting or derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or email address,\n  without their explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n{{ codeOfConductEmail }}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series of\nactions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or permanent\nban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior, harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within the\ncommunity.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.1, available at\n[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].\n\nCommunity Impact Guidelines were inspired by\n[Mozilla's code of conduct enforcement ladder][Mozilla CoC].\n\nFor answers to common questions about this code of conduct, see the FAQ at\n[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at\n[https://www.contributor-covenant.org/translations][translations].\n\n[homepage]: https://www.contributor-covenant.org\n[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html\n[Mozilla CoC]: https://github.com/mozilla/diversity\n[FAQ]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\n"
  },
  {
    "path": "resources/templates/header/AGPL-3.0-or-later.twig",
    "content": "{{ packageName }} is free software: you can redistribute it\nand/or modify it under the terms of the GNU Affero General Public\nLicense as published by the Free Software Foundation, either version\n3 of the License, or (at your option) any later version.\n\n{{ packageName }} is distributed in the hope that it will be\nuseful, but WITHOUT ANY WARRANTY; without even the implied warranty\nof MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public\nLicense along with {{ packageName }}.\nIf not, see <https://www.gnu.org/licenses/>.\n\n@copyright {{ copyright }}\n@license https://opensource.org/license/agpl-v3/ GNU Affero General Public License version 3 or later\n"
  },
  {
    "path": "resources/templates/header/Apache-2.0.twig",
    "content": "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\n@copyright {{ copyright }}\n@license https://opensource.org/license/apache-2-0/ Apache License, Version 2.0\n"
  },
  {
    "path": "resources/templates/header/BSD-2-Clause.twig",
    "content": "@copyright {{ copyright }}\n@license https://opensource.org/license/bsd-2-clause/ BSD 2-Clause \"Simplified\" License\n"
  },
  {
    "path": "resources/templates/header/BSD-3-Clause.twig",
    "content": "@copyright {{ copyright }}\n@license https://opensource.org/license/bsd-3-clause/ BSD 3-Clause \"New\" or \"Revised\" License\n"
  },
  {
    "path": "resources/templates/header/CC0-1.0.twig",
    "content": "To the extent possible under law, {{ copyrightHolder }}\nhas waived all copyright and related or neighboring rights to\n{{ packageName }}.\n\n@license https://creativecommons.org/publicdomain/zero/1.0/ CC0 1.0 Universal\n"
  },
  {
    "path": "resources/templates/header/GPL-3.0-or-later.twig",
    "content": "{{ packageName }} is free software: you can redistribute it\nand/or modify it under the terms of the GNU General Public License\nas published by the Free Software Foundation, either version 3 of\nthe License, or (at your option) any later version.\n\n{{ packageName }} is distributed in the hope that it will be\nuseful, but WITHOUT ANY WARRANTY; without even the implied warranty\nof MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with {{ packageName }}.\nIf not, see <https://www.gnu.org/licenses/>.\n\n@copyright {{ copyright }}\n@license https://opensource.org/license/gpl-3-0/ GNU General Public License version 3 or later\n"
  },
  {
    "path": "resources/templates/header/Hippocratic-2.1.twig",
    "content": "@copyright {{ copyright }}\n@license https://spdx.org/licenses/Hippocratic-2.1.html Hippocratic License 2.1\n"
  },
  {
    "path": "resources/templates/header/LGPL-3.0-or-later.twig",
    "content": "{{ packageName }} is free software: you can redistribute it\nand/or modify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation, either version\n3 of the License, or (at your option) any later version.\n\n{{ packageName }} is distributed in the hope that it will be\nuseful, but WITHOUT ANY WARRANTY; without even the implied warranty\nof MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with {{ packageName }}.\nIf not, see <https://www.gnu.org/licenses/>.\n\n@copyright {{ copyright }}\n@license https://opensource.org/license/lgpl-3-0/ GNU Lesser General Public License version 3 or later\n"
  },
  {
    "path": "resources/templates/header/MIT-0.twig",
    "content": "@copyright {{ copyright }}\n@license https://opensource.org/license/mit-0/ MIT No Attribution\n"
  },
  {
    "path": "resources/templates/header/MIT.twig",
    "content": "@copyright {{ copyright }}\n@license https://opensource.org/license/mit/ MIT License\n"
  },
  {
    "path": "resources/templates/header/MPL-2.0.twig",
    "content": "This Source Code Form is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\nfile, You can obtain one at https://mozilla.org/MPL/2.0/.\n\n@copyright {{ copyright }}\n@license https://opensource.org/license/mpl-2-0/ Mozilla Public License 2.0\n"
  },
  {
    "path": "resources/templates/header/Proprietary.twig",
    "content": "@copyright {{ copyright }}. All rights reserved.\n"
  },
  {
    "path": "resources/templates/header/Unlicense.twig",
    "content": "{{ packageName }} is free and unencumbered software released\ninto the public domain. For more information, please view the\nUNLICENSE file that was distributed with this source code.\n\n@license https://opensource.org/license/unlicense/ The Unlicense\n"
  },
  {
    "path": "resources/templates/header/source-file-header.twig",
    "content": "{% set headerTemplate %}header/{{ license }}.twig{% endset %}\n{% set copyright %}Copyright (c) {{ copyrightHolder }}{% if copyrightEmail %} <{{ copyrightEmail }}>{% elseif copyrightUrl %} <{{ copyrightUrl }}>{% endif %}{% endset %}\n{% set licenseStatement %}{{ include(headerTemplate) }}{% endset %}\n\n/**\n * This file is part of {{ packageName }}\n *\n {{ licenseStatement|preg_replace('/^/m', ' * ')|preg_replace('/\\\\s+$/m', '')|trim }}\n */\n"
  },
  {
    "path": "resources/templates/license/AGPL-3.0-or-later-NOTICE.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "resources/templates/license/AGPL-3.0-or-later.twig",
    "content": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nour General Public Licenses are intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  Developers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\n  A secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate.  Many developers of free software are heartened and\nencouraged by the resulting cooperation.  However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\n  The GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community.  It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server.  Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\n  An older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals.  This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU Affero General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Remote Network Interaction; Use with the GNU General Public License.\n\n  Notwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software.  This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time.  Such new versions\nwill be similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU Affero General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU Affero General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU Affero General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published\n    by the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source.  For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code.  There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU AGPL, see\n<https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "resources/templates/license/Apache-2.0-NOTICE.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this software except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
  },
  {
    "path": "resources/templates/license/Apache-2.0.twig",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "resources/templates/license/BSD-2-Clause.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "resources/templates/license/BSD-3-Clause.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "resources/templates/license/CC0-1.0.twig",
    "content": "Creative Commons Legal Code\n\nCC0 1.0 Universal\n\n    CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE\n    LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN\n    ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS\n    INFORMATION ON AN \"AS-IS\" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES\n    REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS\n    PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM\n    THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED\n    HEREUNDER.\n\nStatement of Purpose\n\nThe laws of most jurisdictions throughout the world automatically confer\nexclusive Copyright and Related Rights (defined below) upon the creator\nand subsequent owner(s) (each and all, an \"owner\") of an original work of\nauthorship and/or a database (each, a \"Work\").\n\nCertain owners wish to permanently relinquish those rights to a Work for\nthe purpose of contributing to a commons of creative, cultural and\nscientific works (\"Commons\") that the public can reliably and without fear\nof later claims of infringement build upon, modify, incorporate in other\nworks, reuse and redistribute as freely as possible in any form whatsoever\nand for any purposes, including without limitation commercial purposes.\nThese owners may contribute to the Commons to promote the ideal of a free\nculture and the further production of creative, cultural and scientific\nworks, or to gain reputation or greater distribution for their Work in\npart through the use and efforts of others.\n\nFor these and/or other purposes and motivations, and without any\nexpectation of additional consideration or compensation, the person\nassociating CC0 with a Work (the \"Affirmer\"), to the extent that he or she\nis an owner of Copyright and Related Rights in the Work, voluntarily\nelects to apply CC0 to the Work and publicly distribute the Work under its\nterms, with knowledge of his or her Copyright and Related Rights in the\nWork and the meaning and intended legal effect of CC0 on those rights.\n\n1. Copyright and Related Rights. A Work made available under CC0 may be\nprotected by copyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but are not\nlimited to, the following:\n\n  i. the right to reproduce, adapt, distribute, perform, display,\n     communicate, and translate a Work;\n ii. moral rights retained by the original author(s) and/or performer(s);\niii. publicity and privacy rights pertaining to a person's image or\n     likeness depicted in a Work;\n iv. rights protecting against unfair competition in regards to a Work,\n     subject to the limitations in paragraph 4(a), below;\n  v. rights protecting the extraction, dissemination, use and reuse of data\n     in a Work;\n vi. database rights (such as those arising under Directive 96/9/EC of the\n     European Parliament and of the Council of 11 March 1996 on the legal\n     protection of databases, and under any national implementation\n     thereof, including any amended or successor version of such\n     directive); and\nvii. other similar, equivalent or corresponding rights throughout the\n     world based on applicable law or treaty, and any national\n     implementations thereof.\n\n2. Waiver. To the greatest extent permitted by, but not in contravention\nof, applicable law, Affirmer hereby overtly, fully, permanently,\nirrevocably and unconditionally waives, abandons, and surrenders all of\nAffirmer's Copyright and Related Rights and associated claims and causes\nof action, whether now known or unknown (including existing as well as\nfuture claims and causes of action), in the Work (i) in all territories\nworldwide, (ii) for the maximum duration provided by applicable law or\ntreaty (including future time extensions), (iii) in any current or future\nmedium and for any number of copies, and (iv) for any purpose whatsoever,\nincluding without limitation commercial, advertising or promotional\npurposes (the \"Waiver\"). Affirmer makes the Waiver for the benefit of each\nmember of the public at large and to the detriment of Affirmer's heirs and\nsuccessors, fully intending that such Waiver shall not be subject to\nrevocation, rescission, cancellation, termination, or any other legal or\nequitable action to disrupt the quiet enjoyment of the Work by the public\nas contemplated by Affirmer's express Statement of Purpose.\n\n3. Public License Fallback. Should any part of the Waiver for any reason\nbe judged legally invalid or ineffective under applicable law, then the\nWaiver shall be preserved to the maximum extent permitted taking into\naccount Affirmer's express Statement of Purpose. In addition, to the\nextent the Waiver is so judged Affirmer hereby grants to each affected\nperson a royalty-free, non transferable, non sublicensable, non exclusive,\nirrevocable and unconditional license to exercise Affirmer's Copyright and\nRelated Rights in the Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty (including future\ntime extensions), (iii) in any current or future medium and for any number\nof copies, and (iv) for any purpose whatsoever, including without\nlimitation commercial, advertising or promotional purposes (the\n\"License\"). The License shall be deemed effective as of the date CC0 was\napplied by Affirmer to the Work. Should any part of the License for any\nreason be judged legally invalid or ineffective under applicable law, such\npartial invalidity or ineffectiveness shall not invalidate the remainder\nof the License, and in such case Affirmer hereby affirms that he or she\nwill not (i) exercise any of his or her remaining Copyright and Related\nRights in the Work or (ii) assert any associated claims and causes of\naction with respect to the Work, in either case contrary to Affirmer's\nexpress Statement of Purpose.\n\n4. Limitations and Disclaimers.\n\n a. No trademark or patent rights held by Affirmer are waived, abandoned,\n    surrendered, licensed or otherwise affected by this document.\n b. Affirmer offers the Work as-is and makes no representations or\n    warranties of any kind concerning the Work, express, implied,\n    statutory or otherwise, including without limitation warranties of\n    title, merchantability, fitness for a particular purpose, non\n    infringement, or the absence of latent or other defects, accuracy, or\n    the present or absence of errors, whether or not discoverable, all to\n    the greatest extent permissible under applicable law.\n c. Affirmer disclaims responsibility for clearing rights of other persons\n    that may apply to the Work or any use thereof, including without\n    limitation any person's Copyright and Related Rights in the Work.\n    Further, Affirmer disclaims responsibility for obtaining any necessary\n    consents, permissions or other rights required for any use of the\n    Work.\n d. Affirmer understands and acknowledges that Creative Commons is not a\n    party to this document and has no duty or obligation with respect to\n    this CC0 or use of the Work.\n"
  },
  {
    "path": "resources/templates/license/GPL-3.0-or-later-NOTICE.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "resources/templates/license/GPL-3.0-or-later.twig",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "resources/templates/license/Hippocratic-2.1.twig",
    "content": "{{ include('license/copyright-statement.twig') }} (“Licensor”)\n\nHippocratic License Version Number: 2.1.\n\nPurpose. The purpose of this License is for the Licensor named above to permit\nthe Licensee (as defined below) broad permission, if consistent with Human\nRights Laws and Human Rights Principles (as each is defined below), to use and\nwork with the Software (as defined below) within the full scope of Licensor’s\ncopyright and patent rights, if any, in the Software, while ensuring\nattribution and protecting the Licensor from liability.\n\nPermission and Conditions. The Licensor grants permission by this license\n(“License”), free of charge, to the extent of Licensor’s rights under applicable\ncopyright and patent law, to any person or entity (the “Licensee”) obtaining a\ncopy of this software and associated documentation files (the “Software”), to do\neverything with the Software that would otherwise infringe (i) the Licensor’s\ncopyright in the Software or (ii) any patent claims to the Software that the\nLicensor can license or becomes able to license, subject to all of the\nfollowing terms and conditions:\n\n* Acceptance. This License is automatically offered to every person and entity\nsubject to its terms and conditions. Licensee accepts this License and agrees\nto its terms and conditions by taking any action with the Software that, absent\nthis License, would infringe any intellectual property right held by Licensor.\n\n* Notice. Licensee must ensure that everyone who gets a copy of any part of\nthis Software from Licensee, with or without changes, also receives the License\nand the above copyright notice (and if included by the Licensor, patent,\ntrademark and attribution notice). Licensee must cause any modified versions of\nthe Software to carry prominent notices stating that Licensee changed the\nSoftware. For clarity, although Licensee is free to create modifications of the\nSoftware and distribute only the modified portion created by Licensee with\nadditional or different terms, the portion of the Software not modified must be\ndistributed pursuant to this License. If anyone notifies Licensee in writing\nthat Licensee has not complied with this Notice section, Licensee can keep this\nLicense by taking all practical steps to comply within 30 days after the\nnotice. If Licensee does not do so, Licensee’s License (and all rights licensed\nhereunder) shall end immediately.\n\n* Compliance with Human Rights Principles and Human Rights Laws.\n\n    1. Human Rights Principles.\n\n        (a) Licensee is advised to consult the articles of the United Nations\nUniversal Declaration of Human Rights and the United Nations Global Compact\nthat define recognized principles of international human rights (the “Human\nRights Principles”). Licensee shall use the Software in a manner consistent with\nHuman Rights Principles.\n\n        (b) Unless the Licensor and Licensee agree otherwise, any dispute,\ncontroversy, or claim arising out of or relating to (i) Section 1(a) regarding\nHuman Rights Principles, including the breach of Section 1(a), termination of\nthis License for breach of the Human Rights Principles, or invalidity of\nSection 1(a) or (ii) a determination of whether any Law is consistent or in\nconflict with Human Rights Principles pursuant to Section 2, below, shall be\nsettled by arbitration in accordance with the Hague Rules on Business and Human\nRights Arbitration (the “Rules”); provided, however, that Licensee may elect not\nto participate in such arbitration, in which event this License (and all rights\nlicensed hereunder) shall end immediately. The number of arbitrators shall be\none unless the Rules require otherwise.\n\n        Unless both the Licensor and Licensee agree to the contrary: (1) All\ndocuments and information concerning the arbitration shall be public and may be\ndisclosed by any party; (2) The repository referred to under Article 43 of the\nRules shall make available to the public in a timely manner all documents\nconcerning the arbitration which are communicated to it, including all\nsubmissions of the parties, all evidence admitted into the record of the\nproceedings, all transcripts or other recordings of hearings and all orders,\ndecisions and awards of the arbitral tribunal, subject only to the arbitral\ntribunal's powers to take such measures as may be necessary to safeguard the\nintegrity of the arbitral process pursuant to Articles 18, 33, 41 and 42 of the\nRules; and (3) Article 26(6) of the Rules shall not apply.\n\n    2. Human Rights Laws. The Software shall not be used by any person or\nentity for any systems, activities, or other uses that violate any Human Rights\nLaws.  “Human Rights Laws” means any applicable laws, regulations, or rules\n(collectively, “Laws”) that protect human, civil, labor, privacy, political,\nenvironmental, security, economic, due process, or similar rights; provided,\nhowever, that such Laws are consistent and not in conflict with Human Rights\nPrinciples (a dispute over the consistency or a conflict between Laws and Human\nRights Principles shall be determined by arbitration as stated above).  Where\nthe Human Rights Laws of more than one jurisdiction are applicable or in\nconflict with respect to the use of the Software, the Human Rights Laws that\nare most protective of the individuals or groups harmed shall apply.\n\n    3. Indemnity. Licensee shall hold harmless and indemnify Licensor (and any\nother contributor) against all losses, damages, liabilities, deficiencies,\nclaims, actions, judgments, settlements, interest, awards, penalties, fines,\ncosts, or expenses of whatever kind, including Licensor’s reasonable attorneys’\nfees, arising out of or relating to Licensee’s use of the Software in violation\nof Human Rights Laws or Human Rights Principles.\n\n* Failure to Comply. Any failure of Licensee to act according to the terms and\nconditions of this License is both a breach of the License and an infringement\nof the intellectual property rights of the Licensor (subject to exceptions\nunder Laws, e.g., fair use). In the event of a breach or infringement, the\nterms and conditions of this License may be enforced by Licensor under the Laws\nof any jurisdiction to which Licensee is subject. Licensee also agrees that the\nLicensor may enforce the terms and conditions of this License against Licensee\nthrough specific performance (or similar remedy under Laws) to the extent\npermitted by Laws. For clarity, except in the event of a breach of this\nLicense, infringement, or as otherwise stated in this License, Licensor may not\nterminate this License with Licensee.\n\n* Enforceability and Interpretation. If any term or provision of this License\nis determined to be invalid, illegal, or unenforceable by a court of competent\njurisdiction, then such invalidity, illegality, or unenforceability shall not\naffect any other term or provision of this License or invalidate or render\nunenforceable such term or provision in any other jurisdiction; provided,\nhowever, subject to a court modification pursuant to the immediately following\nsentence, if any term or provision of this License pertaining to Human Rights\nLaws or Human Rights Principles is deemed invalid, illegal, or unenforceable\nagainst Licensee by a court of competent jurisdiction, all rights in the\nSoftware granted to Licensee shall be deemed null and void as between Licensor\nand Licensee. Upon a determination that any term or provision is invalid,\nillegal, or unenforceable, to the extent permitted by Laws, the court may\nmodify this License to affect the original purpose that the Software be used in\ncompliance with Human Rights Principles and Human Rights Laws as closely as\npossible. The language in this License shall be interpreted as to its fair\nmeaning and not strictly for or against any party.\n\n* Disclaimer. TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES “AS IS,”\nWITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR AND ANY OTHER\nCONTRIBUTOR SHALL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES OR OTHER LIABILITY\nARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THIS LICENSE, UNDER\nANY KIND OF LEGAL CLAIM.\n\nThis Hippocratic License is an Ethical Source license\n(https://ethicalsource.dev) and is offered for use by licensors and licensees\nat their own risk, on an “AS IS” basis, and with no warranties express or\nimplied, to the maximum extent permitted by Laws.\n"
  },
  {
    "path": "resources/templates/license/LGPL-3.0-or-later-NOTICE.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "resources/templates/license/LGPL-3.0-or-later.twig",
    "content": "                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n  This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n  0. Additional Definitions.\n\n  As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n  \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n  An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n  A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library.  The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n  The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n  The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n  1. Exception to Section 3 of the GNU GPL.\n\n  You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n  2. Conveying Modified Versions.\n\n  If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n   a) under this License, provided that you make a good faith effort to\n   ensure that, in the event an Application does not supply the\n   function or data, the facility still operates, and performs\n   whatever part of its purpose remains meaningful, or\n\n   b) under the GNU GPL, with none of the additional permissions of\n   this License applicable to that copy.\n\n  3. Object Code Incorporating Material from Library Header Files.\n\n  The object code form of an Application may incorporate material from\na header file that is part of the Library.  You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n   a) Give prominent notice with each copy of the object code that the\n   Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the object code with a copy of the GNU GPL and this license\n   document.\n\n  4. Combined Works.\n\n  You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n   a) Give prominent notice with each copy of the Combined Work that\n   the Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n   document.\n\n   c) For a Combined Work that displays copyright notices during\n   execution, include the copyright notice for the Library among\n   these notices, as well as a reference directing the user to the\n   copies of the GNU GPL and this license document.\n\n   d) Do one of the following:\n\n       0) Convey the Minimal Corresponding Source under the terms of this\n       License, and the Corresponding Application Code in a form\n       suitable for, and under terms that permit, the user to\n       recombine or relink the Application with a modified version of\n       the Linked Version to produce a modified Combined Work, in the\n       manner specified by section 6 of the GNU GPL for conveying\n       Corresponding Source.\n\n       1) Use a suitable shared library mechanism for linking with the\n       Library.  A suitable mechanism is one that (a) uses at run time\n       a copy of the Library already present on the user's computer\n       system, and (b) will operate properly with a modified version\n       of the Library that is interface-compatible with the Linked\n       Version.\n\n   e) Provide Installation Information, but only if you would otherwise\n   be required to provide such information under section 6 of the\n   GNU GPL, and only to the extent that such information is\n   necessary to install and execute a modified version of the\n   Combined Work produced by recombining or relinking the\n   Application with a modified version of the Linked Version. (If\n   you use option 4d0, the Installation Information must accompany\n   the Minimal Corresponding Source and Corresponding Application\n   Code. If you use option 4d1, you must provide the Installation\n   Information in the manner specified by section 6 of the GNU GPL\n   for conveying Corresponding Source.)\n\n  5. Combined Libraries.\n\n  You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n   a) Accompany the combined library with a copy of the same work based\n   on the Library, uncombined with any other library facilities,\n   conveyed under the terms of this License.\n\n   b) Give prominent notice with the combined library that part of it\n   is a work based on the Library, and explaining where to find the\n   accompanying uncombined form of the same work.\n\n  6. Revised Versions of the GNU Lesser General Public License.\n\n  The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n  Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n  If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n"
  },
  {
    "path": "resources/templates/license/MIT-0.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "resources/templates/license/MIT.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "resources/templates/license/MPL-2.0-NOTICE.twig",
    "content": "{{ include('license/copyright-statement.twig') }}\n\nThis Source Code Form is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\nfile, You can obtain one at http://mozilla.org/MPL/2.0/.\n"
  },
  {
    "path": "resources/templates/license/MPL-2.0.twig",
    "content": "Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n    means each individual or legal entity that creates, contributes to\n    the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n    means the combination of the Contributions of others (if any) used\n    by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n    means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n    means Source Code Form to which the initial Contributor has attached\n    the notice in Exhibit A, the Executable Form of such Source Code\n    Form, and Modifications of such Source Code Form, in each case\n    including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n    means\n\n    (a) that the initial Contributor has attached the notice described\n        in Exhibit B to the Covered Software; or\n\n    (b) that the Covered Software was made available under the terms of\n        version 1.1 or earlier of the License, but not also under the\n        terms of a Secondary License.\n\n1.6. \"Executable Form\"\n    means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n    means a work that combines Covered Software with other material, in\n    a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n    means this document.\n\n1.9. \"Licensable\"\n    means having the right to grant, to the maximum extent possible,\n    whether at the time of the initial grant or subsequently, any and\n    all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n    means any of the following:\n\n    (a) any file in Source Code Form that results from an addition to,\n        deletion from, or modification of the contents of Covered\n        Software; or\n\n    (b) any new file in Source Code Form that contains any Covered\n        Software.\n\n1.11. \"Patent Claims\" of a Contributor\n    means any patent claim(s), including without limitation, method,\n    process, and apparatus claims, in any patent Licensable by such\n    Contributor that would be infringed, but for the grant of the\n    License, by the making, using, selling, offering for sale, having\n    made, import, or transfer of either its Contributions or its\n    Contributor Version.\n\n1.12. \"Secondary License\"\n    means either the GNU General Public License, Version 2.0, the GNU\n    Lesser General Public License, Version 2.1, the GNU Affero General\n    Public License, Version 3.0, or any later versions of those\n    licenses.\n\n1.13. \"Source Code Form\"\n    means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n    means an individual or a legal entity exercising rights under this\n    License. For legal entities, \"You\" includes any entity that\n    controls, is controlled by, or is under common control with You. For\n    purposes of this definition, \"control\" means (a) the power, direct\n    or indirect, to cause the direction or management of such entity,\n    whether by contract or otherwise, or (b) ownership of more than\n    fifty percent (50%) of the outstanding shares or beneficial\n    ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n    Licensable by such Contributor to use, reproduce, make available,\n    modify, display, perform, distribute, and otherwise exploit its\n    Contributions, either on an unmodified basis, with Modifications, or\n    as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n    for sale, have made, import, and otherwise transfer either its\n    Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n    or\n\n(b) for infringements caused by: (i) Your and any other third party's\n    modifications of Covered Software, or (ii) the combination of its\n    Contributions with other software (except as part of its Contributor\n    Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n    its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n    Form, as described in Section 3.1, and You must inform recipients of\n    the Executable Form how they can obtain a copy of such Source Code\n    Form by reasonable means in a timely manner, at a charge no more\n    than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n    License, or sublicense it under different terms, provided that the\n    license for the Executable Form does not attempt to limit or alter\n    the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n*                                                                      *\n*  6. Disclaimer of Warranty                                           *\n*  -------------------------                                           *\n*                                                                      *\n*  Covered Software is provided under this License on an \"as is\"       *\n*  basis, without warranty of any kind, either expressed, implied, or  *\n*  statutory, including, without limitation, warranties that the       *\n*  Covered Software is free of defects, merchantable, fit for a        *\n*  particular purpose or non-infringing. The entire risk as to the     *\n*  quality and performance of the Covered Software is with You.        *\n*  Should any Covered Software prove defective in any respect, You     *\n*  (not any Contributor) assume the cost of any necessary servicing,   *\n*  repair, or correction. This disclaimer of warranty constitutes an   *\n*  essential part of this License. No use of any Covered Software is   *\n*  authorized under this License except under this disclaimer.         *\n*                                                                      *\n************************************************************************\n\n************************************************************************\n*                                                                      *\n*  7. Limitation of Liability                                          *\n*  --------------------------                                          *\n*                                                                      *\n*  Under no circumstances and under no legal theory, whether tort      *\n*  (including negligence), contract, or otherwise, shall any           *\n*  Contributor, or anyone who distributes Covered Software as          *\n*  permitted above, be liable to You for any direct, indirect,         *\n*  special, incidental, or consequential damages of any character      *\n*  including, without limitation, damages for lost profits, loss of    *\n*  goodwill, work stoppage, computer failure or malfunction, or any    *\n*  and all other commercial damages or losses, even if such party      *\n*  shall have been informed of the possibility of such damages. This   *\n*  limitation of liability shall not apply to liability for death or   *\n*  personal injury resulting from such party's negligence to the       *\n*  extent applicable law prohibits such limitation. Some               *\n*  jurisdictions do not allow the exclusion or limitation of           *\n*  incidental or consequential damages, so this exclusion and          *\n*  limitation may not apply to You.                                    *\n*                                                                      *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n  This Source Code Form is subject to the terms of the Mozilla Public\n  License, v. 2.0. If a copy of the MPL was not distributed with this\n  file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n  This Source Code Form is \"Incompatible With Secondary Licenses\", as\n  defined by the Mozilla Public License, v. 2.0.\n"
  },
  {
    "path": "resources/templates/license/Proprietary.twig",
    "content": "{{ include('license/copyright-statement.twig') }}. All rights reserved.\n"
  },
  {
    "path": "resources/templates/license/Unlicense.twig",
    "content": "This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org>\n"
  },
  {
    "path": "resources/templates/license/copyright-statement.twig",
    "content": "Copyright (c) {{ 'now'|date('Y') }} {{ copyrightHolder }}{% if copyrightEmail %} <{{ copyrightEmail }}>{% elseif copyrightUrl %} <{{ copyrightUrl }}>{% endif %}\n"
  },
  {
    "path": "resources/templates/readme/badges.md.twig",
    "content": "{% if packageDescription %}\n<p align=\"center\">\n    <strong>{{ packageDescription }}</strong>\n</p>\n{% endif %}\n\n<!--\nTODO: Make sure the following URLs are correct and working for your project.\n      Then, remove these comments to display the badges, giving users a quick\n      overview of your package.\n\n<p align=\"center\">\n    <a href=\"https://github.com/{{ githubUsername }}/{{ projectName }}\"><img src=\"https://img.shields.io/badge/source-{{ packageName|replace({'-': '--'}) }}-blue.svg?style=flat-square\" alt=\"Source Code\"></a>\n    <a href=\"https://packagist.org/packages/{{ packageName }}\"><img src=\"https://img.shields.io/packagist/v/{{ packageName }}.svg?style=flat-square&label=release\" alt=\"Download Package\"></a>\n    <a href=\"https://php.net\"><img src=\"https://img.shields.io/packagist/php-v/{{ packageName }}.svg?style=flat-square&colorB=%238892BF\" alt=\"PHP Programming Language\"></a>\n    <a href=\"https://github.com/{{ githubUsername }}/{{ projectName }}/blob/main/LICENSE\"><img src=\"https://img.shields.io/packagist/l/{{ packageName }}.svg?style=flat-square&colorB=darkcyan\" alt=\"Read License\"></a>\n    <a href=\"https://github.com/{{ githubUsername }}/{{ projectName }}/actions/workflows/continuous-integration.yml\"><img src=\"https://img.shields.io/github/actions/workflow/status/{{ githubUsername }}/{{ projectName }}/continuous-integration.yml?branch=main&style=flat-square&logo=github\" alt=\"Build Status\"></a>\n    <a href=\"https://codecov.io/gh/{{ githubUsername }}/{{ projectName }}\"><img src=\"https://img.shields.io/codecov/c/gh/{{ githubUsername }}/{{ projectName }}?label=codecov&logo=codecov&style=flat-square\" alt=\"Codecov Code Coverage\"></a>\n    <a href=\"https://shepherd.dev/github/{{ githubUsername }}/{{ projectName }}\"><img src=\"https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fshepherd.dev%2Fgithub%2F{{ githubUsername|url_encode }}%2F{{ projectName|url_encode }}%2Fcoverage\" alt=\"Psalm Type Coverage\"></a>\n</p>\n-->\n"
  },
  {
    "path": "resources/templates/readme/code-of-conduct.md.twig",
    "content": "This project adheres to a [code of conduct](CODE_OF_CONDUCT.md).\nBy participating in this project and its community, you are expected to\nuphold this code.\n"
  },
  {
    "path": "resources/templates/readme/copyright.md.twig",
    "content": "{% set copyright %}{% if copyrightUrl %}[{{ copyrightHolder }}]({{ copyrightUrl }}){% elseif copyrightEmail %}[{{ copyrightHolder }}](mailto:{{ copyrightEmail }}){% else %}{{ copyrightHolder }}{% endif %}{% endset %}\n\n{% set licenseStatement %}\n{% if license == 'AGPL-3.0-or-later' %}\nGNU Affero General Public License (AGPL-3.0-or-later) as published by the Free\nSoftware Foundation. Please see [COPYING](COPYING) and [NOTICE](NOTICE) for more\ninformation.\n{% elseif license == 'Apache-2.0' %}\nApache License, Version 2.0 (Apache-2.0). Please see [LICENSE](LICENSE) and\n[NOTICE](NOTICE) for more information.\n{% elseif license == 'BSD-2-Clause' %}\nBSD 2-Clause \"Simplified\" License (BSD-2-Clause). Please see [LICENSE](LICENSE)\nfor more information.\n{% elseif license == 'BSD-3-Clause' %}\nBSD 3-Clause \"New\" or \"Revised\" License (BSD-3-Clause). Please see\n[LICENSE](LICENSE) for more information.\n{% elseif license == 'GPL-3.0-or-later' %}\nGNU General Public License (GPL-3.0-or-later) as published by the Free Software\nFoundation. Please see [COPYING](COPYING) and [NOTICE](NOTICE) for more\ninformation.\n{% elseif license == 'LGPL-3.0-or-later' %}\nGNU Lesser General Public License (LGPL-3.0-or-later) as published by the Free\nSoftware Foundation. Please see [COPYING.LESSER](COPYING.LESSER),\n[COPYING](COPYING), and [NOTICE](NOTICE) for more information.\n{% elseif license == 'MIT' %}\nMIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n{% elseif license == 'MIT-0' %}\nMIT No Attribution (MIT-0) license. Please see [LICENSE](LICENSE) for more\ninformation.\n{% elseif license == 'MPL-2.0' %}\nMozilla Public License 2.0 (MPL-2.0). Please see [LICENSE](LICENSE) and\n[NOTICE](NOTICE) for more information.\n{% endif %}\n{% endset %}\n\n## Copyright and License\n\n{% if license == 'Unlicense' %}\n{{ packageName }} is free and unencumbered software released into the\npublic domain. Please see [UNLICENSE](UNLICENSE) for more information.\n{% elseif license == 'CC0-1.0' %}\nTo the extent possible under law, {{ copyright }} has waived\nall copyright and related or neighboring rights to {{ packageName }}.\nPlease see [LICENSE](LICENSE) for more information.\n\n<a rel=\"license\" href=\"http://creativecommons.org/publicdomain/zero/1.0/\"><img src=\"https://licensebuttons.net/p/zero/1.0/88x31.png\" style=\"border-style: none;\" alt=\"CC0\" /></a>\n{% elseif license == 'Proprietary' %}\n{{ packageName }} is copyright © {{ copyright }}.\nAll rights reserved.\n{% else %}\n{{ packageName }} is copyright © {{ copyright }}\nand licensed for use under the terms of the\n{{ licenseStatement }}\n{% endif %}\n"
  },
  {
    "path": "resources/templates/readme/description.md.twig",
    "content": "## About\n\n<!--\nTODO: Use this space to provide more details about your package. Try to be\n      concise. This is the introduction to your package. Let others know what\n      your package does and how it can help them build applications.\n-->\n"
  },
  {
    "path": "resources/templates/readme/security.md.twig",
    "content": "## Coordinated Disclosure\n\nKeeping user information safe and secure is a top priority, and we welcome the\ncontribution of external security researchers. If you believe you've found a\nsecurity issue in software that is maintained in this repository, please read\n[SECURITY.md](SECURITY.md) for instructions on submitting a vulnerability report.\n"
  },
  {
    "path": "resources/templates/readme/usage.md.twig",
    "content": "## Installation\n\nInstall this package as a dependency using [Composer](https://getcomposer.org).\n\n``` bash\ncomposer require {{ packageName }}\n```\n\n<!--\n## Usage\n\nProvide a brief description or short example of how to use this library.\nIf you need to provide more detailed examples, use the `docs/` directory\nand provide a link here to the documentation.\n\n``` php\nuse {{ packageNamespace }}\\Example;\n\n$example = new Example();\necho $example->greet('fellow human');\n```\n-->\n"
  },
  {
    "path": "resources/templates/security-policy/HackerOne.md.twig",
    "content": "<!--\n    This policy template was created using the HackerOne Policy Builder [1],\n    with guidance from the National Telecommunications and Information\n    Administration Coordinated Vulnerability Disclosure Template [2].\n -->\n\n# Vulnerability Disclosure Policy (VDP)\n\n## Brand Promise\n\n<!--\n    This is your brand promise. Its objective is to \"demonstrate a clear, good\n    faith commitment to customers and other stakeholders potentially impacted by\n    security vulnerabilities\" [2].\n-->\n\nKeeping user information safe and secure is a top priority, and we welcome the\ncontribution of external security researchers.\n\n## Scope\n\n<!--\n    This is your initial scope. It tells vulnerability finders and reporters\n    \"which systems and capabilities are 'fair game' versus 'off limits'\" [2].\n    For software packages, this is often a list of currently maintained versions\n    of the package.\n-->\n\nIf you believe you've found a security issue in software that is maintained in\nthis repository, we encourage you to notify us.\n\n| Version | In scope | Source code |\n| ------- | :------: | ----------- |\n| latest  | ✅        | https://github.com/{{ packageName }} |\n\n## How to Submit a Report\n\n<!--\n    This is your communication process. It tells security researchers how to\n    contact you to report a vulnerability. It may be a link to a web form that\n    uses HTTPS for secure communication, or it may be an email address.\n    Optionally, you may choose to include a PGP public key, so that researchers\n    may send you encrypted messages.\n-->\n\nTo submit a vulnerability report, please {% if securityPolicyContactFormUrl %}fill out this [form]({{ securityPolicyContactFormUrl }}){% endif %}{% if securityPolicyContactFormUrl and securityPolicyContactFormUrl %} or {% endif %}{% if securityPolicyContactEmail %}contact us at {{ securityPolicyContactEmail }}{% endif %}{% if not securityPolicyContactFormUrl and not securityPolicyContactEmail %}contact us{% endif %}.\nYour submission will be reviewed and validated by a member of our team.\n\n## Safe Harbor\n\n<!--\n    This section assures vulnerability finders and reporters that they will\n    receive good faith responses to their good faith acts. In other words,\n    \"we will not take legal action if...\" [2].\n-->\n\nWe support safe harbor for security researchers who:\n\n* Make a good faith effort to avoid privacy violations, destruction of data, and\n  interruption or degradation of our services.\n* Only interact with accounts you own or with explicit permission of the account\n  holder. If you do encounter Personally Identifiable Information (PII) contact\n  us immediately, do not proceed with access, and immediately purge any local\n  information.\n* Provide us with a reasonable amount of time to resolve vulnerabilities prior\n  to any disclosure to the public or a third party.\n\nWe will consider activities conducted consistent with this policy to constitute\n\"authorized\" conduct and will not pursue civil action or initiate a complaint to\nlaw enforcement. We will help to the extent we can if legal action is initiated\nby a third party against you.\n\nPlease submit a report to us before engaging in conduct that may be inconsistent\nwith or unaddressed by this policy.\n\n## Preferences\n\n<!--\n    The preferences section sets expectations based on priority and submission\n    volume, rather than legal objection or restriction [2].\n\n    According to the NTIA [2]:\n\n        This section is a living document that sets expectations for preferences\n        and priorities, typically maintained by the support and engineering\n        team. This can outline classes of vulnerabilities, reporting style\n        (crash dumps, CVSS scoring, proof-of-concept, etc.), tools, etc. Too\n        many preferences can set the wrong tone or make reporting findings\n        difficult to navigate. This section also sets expectations to the\n        researcher community for what types of issues are considered important\n        or not.\n-->\n\n* Please provide detailed reports with reproducible steps and a clearly defined\n  impact.\n* Include the version number of the vulnerable package in your report\n* Social engineering (e.g. phishing, vishing, smishing) is prohibited.\n\n<!--\n    References\n\n    [1] HackerOne. Policy builder. Retrieved from https://hackerone.com/policy-builder/\n\n    [2] NTIA Safety Working Group. 2016. \"Early stage\" coordinated vulnerability\n    disclosure template: Version 1.1. (15 December 2016). Retrieved from\n    https://www.ntia.doc.gov/files/ntia/publications/ntia_vuln_disclosure_early_stage_template.pdf\n-->\n"
  },
  {
    "path": "src/Example.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Vendor\\SubNamespace;\n\n/**\n * An example class to act as a starting point for developing your library\n */\nclass Example\n{\n    /**\n     * Returns a greeting statement using the provided name\n     */\n    public function greet(string $name = 'World'): string\n    {\n        return \"Hello, {$name}!\";\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Answers.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\License;\nuse ReflectionObject;\nuse ReflectionProperty;\n\nuse function array_keys;\nuse function array_values;\nuse function json_decode;\nuse function json_encode;\nuse function property_exists;\n\nuse const JSON_PRETTY_PRINT;\nuse const JSON_UNESCAPED_SLASHES;\nuse const JSON_UNESCAPED_UNICODE;\n\n/**\n * Answers to questions prompted to the user building a library\n */\nfinal class Answers\n{\n    public ?string $authorEmail = null;\n    public bool $authorHoldsCopyright = true;\n    public ?string $authorName = null;\n    public ?string $authorUrl = null;\n    public string $codeOfConduct = CodeOfConduct::DEFAULT;\n    public ?string $codeOfConductCommittee = null;\n    public ?string $codeOfConductEmail = null;\n    public ?string $codeOfConductPoliciesUrl = null;\n    public ?string $codeOfConductReportingUrl = null;\n    public ?string $copyrightEmail = null;\n    public ?string $copyrightHolder = null;\n    public ?string $copyrightUrl = null;\n    public ?string $copyrightYear = null;\n    public ?string $githubUsername = null;\n    public ?string $license = License::DEFAULT;\n    public ?string $packageDescription = null;\n\n    /** @var string[] */\n    public array $packageKeywords = [];\n\n    public ?string $packageName = null;\n    public ?string $packageNamespace = null;\n    public ?string $projectName = null;\n    public bool $securityPolicy = true;\n    public ?string $securityPolicyContactEmail = null;\n    public ?string $securityPolicyContactFormUrl = null;\n    public bool $skipPrompts = false;\n    public ?string $vendorName = null;\n\n    public function __construct(\n        private readonly string $saveToPath,\n        private readonly Filesystem $filesystem,\n    ) {\n        $this->loadFile();\n    }\n\n    /**\n     * Returns the property names a tokens to use in templates\n     *\n     * @return string[]\n     */\n    public function getTokens(): array\n    {\n        return array_keys($this->getArrayCopy());\n    }\n\n    /**\n     * Returns the property values to replace tokens in template\n     *\n     * @return array<string | string[] | bool | null>\n     */\n    public function getValues(): array\n    {\n        return array_values($this->getArrayCopy());\n    }\n\n    /**\n     * Returns an array of key-value pairs of token names and values\n     *\n     * @return array<string, string | string[] | bool | null>\n     */\n    public function getArrayCopy(): array\n    {\n        $answers = [];\n\n        $reflected = new ReflectionObject($this);\n        foreach ($reflected->getProperties(ReflectionProperty::IS_PUBLIC) as $property) {\n            /** @var string | string[] | bool | null $value */\n            $value = $property->getValue($this);\n            $answers[$property->getName()] = $value;\n        }\n\n        return $answers;\n    }\n\n    /**\n     * Stores the answers to a JSON file on local disk\n     */\n    public function saveToFile(): void\n    {\n        $this->filesystem->dumpFile(\n            $this->saveToPath,\n            (string) json_encode(\n                $this->getArrayCopy(),\n                JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,\n            ),\n        );\n    }\n\n    /**\n     * If an answers file already exists, loads the file and hydrates this\n     * answers instance with the values\n     */\n    private function loadFile(): void\n    {\n        if (!$this->filesystem->exists($this->saveToPath)) {\n            return;\n        }\n\n        $file = $this->filesystem->getFile($this->saveToPath);\n\n        /** @var array<string, mixed> $answers */\n        $answers = json_decode($file->getContents(), true);\n\n        /** @var mixed $value */\n        foreach ($answers as $propertyName => $value) {\n            if (property_exists($this, $propertyName)) {\n                $this->{$propertyName} = $value;\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/InstallQuestions.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorEmail;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorHoldsCopyright;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorName;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorUrl;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductCommittee;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductEmail;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductPoliciesUrl;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductReportingUrl;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightEmail;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightHolder;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightUrl;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightYear;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\GithubUsername;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\License;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageDescription;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageKeywords;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageName;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageNamespace;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicy;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicyContactEmail;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicyContactFormUrl;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\StarterKitQuestion;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\VendorName;\nuse Symfony\\Component\\Console\\Question\\Question as SymfonyQuestion;\n\n/**\n * A list of questions to ask the user upon installation\n */\nclass InstallQuestions\n{\n    /**\n     * @return list<StarterKitQuestion & SymfonyQuestion>\n     */\n    public function getQuestions(Answers $answers): array\n    {\n        return [\n            new GithubUsername($answers),\n            new VendorName($answers),\n            new PackageName($answers),\n            new PackageDescription($answers),\n            new AuthorName($answers),\n            new AuthorEmail($answers),\n            new AuthorUrl($answers),\n            new AuthorHoldsCopyright($answers),\n            new CopyrightHolder($answers),\n            new CopyrightEmail($answers),\n            new CopyrightUrl($answers),\n            new CopyrightYear($answers),\n            new License($answers),\n            new SecurityPolicy($answers),\n            new SecurityPolicyContactEmail($answers),\n            new SecurityPolicyContactFormUrl($answers),\n            new CodeOfConduct($answers),\n            new CodeOfConductEmail($answers),\n            new CodeOfConductCommittee($answers),\n            new CodeOfConductPoliciesUrl($answers),\n            new CodeOfConductReportingUrl($answers),\n            new PackageKeywords($answers),\n            new PackageNamespace($answers),\n        ];\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/AnswersTool.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\n\ntrait AnswersTool\n{\n    private Answers $answers;\n\n    public function getAnswers(): Answers\n    {\n        return $this->answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/AuthorEmail.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the email address of the library author\n */\nclass AuthorEmail extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n    use EmailValidatorTool;\n\n    public function getName(): string\n    {\n        return 'authorEmail';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What is your email address?',\n            $answers->authorEmail,\n        );\n\n        $this->answers = $answers;\n\n        // Require the author's email address.\n        $this->isOptional = false;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/AuthorHoldsCopyright.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\n\n/**\n * Asks whether the author is the same person as the copyright holder\n */\nclass AuthorHoldsCopyright extends ConfirmationQuestion implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'authorHoldsCopyright';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Are you the copyright holder?',\n            $answers->authorHoldsCopyright,\n        );\n\n        $this->answers = $answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/AuthorName.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the name of the library author\n */\nclass AuthorName extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'authorName';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What is your name?',\n            $answers->authorName,\n        );\n\n        $this->answers = $answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/AuthorUrl.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the URL of the library author\n */\nclass AuthorUrl extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n    use UrlValidatorTool;\n\n    public function getName(): string\n    {\n        return 'authorUrl';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What is your website address?',\n            $answers->authorUrl,\n        );\n\n        $this->answers = $answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CodeOfConduct.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\n\nuse function array_combine;\nuse function array_search;\nuse function ctype_digit;\nuse function in_array;\nuse function sprintf;\nuse function trim;\n\n/**\n * Asks for the creator to select a code of conduct for the project\n */\nclass CodeOfConduct extends ChoiceQuestion implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public const DEFAULT = 'None';\n\n    public const CHOICES = [\n        1 => self::DEFAULT,\n        2 => 'Contributor Covenant Code of Conduct, version 1.4',\n        3 => 'Contributor Covenant Code of Conduct, version 2.0',\n        4 => 'Contributor Covenant Code of Conduct, version 2.1',\n        5 => 'Citizen Code of Conduct, version 2.3',\n    ];\n\n    public const CHOICE_IDENTIFIER_MAP = [\n        1 => self::DEFAULT,\n        2 => 'Contributor-1.4',\n        3 => 'Contributor-2.0',\n        4 => 'Contributor-2.1',\n        5 => 'Citizen-2.3',\n    ];\n\n    public function getName(): string\n    {\n        return 'codeOfConduct';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Choose a code of conduct for your project',\n            self::CHOICES,\n            array_search($answers->codeOfConduct, self::CHOICE_IDENTIFIER_MAP) ?: 1,\n        );\n\n        $this->answers = $answers;\n    }\n\n    /**\n     * @return callable(string | null): string\n     */\n    public function getNormalizer(): callable\n    {\n        $choiceMap = array_combine(self::CHOICES, self::CHOICE_IDENTIFIER_MAP);\n\n        return function (?string $value) use ($choiceMap): string {\n            if (ctype_digit((string) $value)) {\n                return (string) (self::CHOICE_IDENTIFIER_MAP[(int) $value] ?? $value);\n            }\n\n            return (string) ($choiceMap[trim((string) $value)] ?? $value);\n        };\n    }\n\n    /**\n     * @return callable(string | null): (string | null)\n     */\n    public function getValidator(): callable\n    {\n        return function (?string $value): ?string {\n            if (!in_array($value, self::CHOICE_IDENTIFIER_MAP)) {\n                throw new InvalidConsoleInput(sprintf(\n                    '\"%s\" is not a valid code of conduct choice.',\n                    (string) $value,\n                ));\n            }\n\n            return $value;\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CodeOfConductCommittee.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the name of the committee responsible for handling code of conduct issues\n */\nclass CodeOfConductCommittee extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'codeOfConductCommittee';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What is the name of your group or committee who oversees code of conduct issues?',\n            $answers->codeOfConductCommittee,\n        );\n\n        $this->answers = $answers;\n    }\n\n    /**\n     * @return callable(string | null): (string | null)\n     */\n    public function getValidator(): callable\n    {\n        return fn (?string $data): ?string => $data;\n    }\n\n    public function shouldSkip(): bool\n    {\n        // This question is only applicable for the Citizen-2.3 code of conduct.\n        return $this->getAnswers()->codeOfConduct !== CodeOfConduct::CHOICE_IDENTIFIER_MAP[5];\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CodeOfConductEmail.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the email address to which code of conduct issues should be submitted\n */\nclass CodeOfConductEmail extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use EmailValidatorTool;\n\n    public function getName(): string\n    {\n        return 'codeOfConductEmail';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What email address should people use to report code of conduct issues?',\n            $answers->codeOfConductEmail,\n        );\n\n        $this->answers = $answers;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->codeOfConduct === CodeOfConduct::DEFAULT;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CodeOfConductPoliciesUrl.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for a URL that describes governing policies for the code of conduct\n */\nclass CodeOfConductPoliciesUrl extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use UrlValidatorTool;\n\n    public function getName(): string\n    {\n        return 'codeOfConductPoliciesUrl';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'At what URL are your committee\\'s governing policies described?',\n            $answers->codeOfConductPoliciesUrl,\n        );\n\n        $this->answers = $answers;\n    }\n\n    public function shouldSkip(): bool\n    {\n        // This question is only applicable for the Citizen-2.3 code of conduct.\n        return $this->getAnswers()->codeOfConduct !== CodeOfConduct::CHOICE_IDENTIFIER_MAP[5];\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CodeOfConductReportingUrl.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for a URL that describes guidelines for reporting code of conduct issues\n */\nclass CodeOfConductReportingUrl extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use UrlValidatorTool;\n\n    public function getName(): string\n    {\n        return 'codeOfConductReportingUrl';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'At what URL are your code of conduct reporting guidelines described?',\n            $answers->codeOfConductReportingUrl,\n        );\n\n        $this->answers = $answers;\n    }\n\n    public function shouldSkip(): bool\n    {\n        // This question is only applicable for the Citizen-2.3 code of conduct.\n        return $this->getAnswers()->codeOfConduct !== CodeOfConduct::CHOICE_IDENTIFIER_MAP[5];\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CopyrightEmail.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the email address of the copyright holder\n */\nclass CopyrightEmail extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use EmailValidatorTool;\n\n    public function getName(): string\n    {\n        return 'copyrightEmail';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is the copyright holder\\'s email address?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        return $this->getAnswers()->copyrightEmail ?? $this->getAnswers()->authorEmail;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->authorHoldsCopyright === true;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CopyrightHolder.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the name of the copyright holder\n */\nclass CopyrightHolder extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'copyrightHolder';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('Who is the copyright holder?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        return $this->getAnswers()->copyrightHolder ?? $this->getAnswers()->authorName;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->authorHoldsCopyright === true;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CopyrightUrl.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the URL of the copyright holder\n */\nclass CopyrightUrl extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use UrlValidatorTool;\n\n    public function getName(): string\n    {\n        return 'copyrightUrl';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is the copyright holder\\'s website address?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        return $this->getAnswers()->copyrightUrl ?? $this->getAnswers()->authorUrl;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->authorHoldsCopyright === true;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/CopyrightYear.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nuse function date;\nuse function preg_match;\nuse function trim;\n\n/**\n * Asks for the initial copyright year\n */\nclass CopyrightYear extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    private const VALID_PATTERN = '/^\\d{4}$/';\n\n    public function getName(): string\n    {\n        return 'copyrightYear';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is the copyright year?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        return $this->getAnswers()->copyrightYear ?? date('Y');\n    }\n\n    /**\n     * @return callable(string | null): string\n     */\n    public function getValidator(): callable\n    {\n        return function (?string $data): string {\n            if (preg_match(self::VALID_PATTERN, trim((string) $data)) === 1) {\n                return (string) $data;\n            }\n\n            throw new InvalidConsoleInput('You must enter a valid, 4-digit year.');\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/EmailValidatorTool.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nuse function filter_var;\nuse function trim;\n\nuse const FILTER_VALIDATE_EMAIL;\n\n/**\n * Common question email validation functionality\n */\ntrait EmailValidatorTool\n{\n    private bool $isOptional = true;\n\n    /**\n     * @return callable(string | null): (string | null)\n     */\n    public function getValidator(): callable\n    {\n        return function (?string $data): ?string {\n            if ($this->isOptional && ($data === null || trim($data) === '')) {\n                return null;\n            }\n\n            if (filter_var($data, FILTER_VALIDATE_EMAIL)) {\n                return $data;\n            }\n\n            throw new InvalidConsoleInput('You must enter a valid email address.');\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/GithubUsername.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the GitHub username or org name of the project owner\n */\nclass GithubUsername extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'githubUsername';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What is the GitHub username or org name for your package?',\n            $answers->githubUsername,\n        );\n\n        $this->answers = $answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/License.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\n\nuse function array_combine;\nuse function array_search;\nuse function ctype_digit;\nuse function in_array;\nuse function sprintf;\nuse function trim;\n\n/**\n * Asks the user what license they wish to use for this project\n */\nclass License extends ChoiceQuestion implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public const DEFAULT = 'Proprietary';\n\n    public const CHOICES = [\n        1 => self::DEFAULT,\n        2 => 'Apache License 2.0',\n        3 => 'BSD 2-Clause \"Simplified\" License',\n        4 => 'BSD 3-Clause \"New\" or \"Revised\" License',\n        5 => 'Creative Commons Zero v1.0 Universal',\n        6 => 'GNU Affero General Public License v3.0 or later',\n        7 => 'GNU General Public License v3.0 or later',\n        8 => 'GNU Lesser General Public License v3.0 or later',\n        9 => 'Hippocratic License 2.1',\n        10 => 'MIT License',\n        11 => 'MIT No Attribution',\n        12 => 'Mozilla Public License 2.0',\n        13 => 'Unlicense',\n    ];\n\n    public const CHOICE_IDENTIFIER_MAP = [\n        1 => self::DEFAULT,\n        2 => 'Apache-2.0',\n        3 => 'BSD-2-Clause',\n        4 => 'BSD-3-Clause',\n        5 => 'CC0-1.0',\n        6 => 'AGPL-3.0-or-later',\n        7 => 'GPL-3.0-or-later',\n        8 => 'LGPL-3.0-or-later',\n        9 => 'Hippocratic-2.1',\n        10 => 'MIT',\n        11 => 'MIT-0',\n        12 => 'MPL-2.0',\n        13 => 'Unlicense',\n    ];\n\n    public function getName(): string\n    {\n        return 'license';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Choose a license for your project',\n            self::CHOICES,\n            array_search($answers->license, self::CHOICE_IDENTIFIER_MAP) ?: 1,\n        );\n\n        $this->answers = $answers;\n    }\n\n    /**\n     * @return callable(string | null): string\n     */\n    public function getNormalizer(): callable\n    {\n        $choiceMap = array_combine(self::CHOICES, self::CHOICE_IDENTIFIER_MAP);\n\n        return function (?string $value) use ($choiceMap): string {\n            if (ctype_digit((string) $value)) {\n                return (string) (self::CHOICE_IDENTIFIER_MAP[(int) $value] ?? $value);\n            }\n\n            return (string) ($choiceMap[trim((string) $value)] ?? $value);\n        };\n    }\n\n    /**\n     * @return callable(string | null): string\n     */\n    public function getValidator(): callable\n    {\n        return function (?string $value): string {\n            if (!in_array($value, self::CHOICE_IDENTIFIER_MAP)) {\n                throw new InvalidConsoleInput(sprintf(\n                    '\"%s\" is not a valid license choice.',\n                    (string) $value,\n                ));\n            }\n\n            return (string) $value;\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/PackageDescription.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for a brief description of the library\n */\nclass PackageDescription extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'packageDescription';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Enter a brief description of your library',\n            $answers->packageDescription,\n        );\n\n        $this->answers = $answers;\n    }\n\n    /**\n     * @return callable(string | null): (string | null)\n     */\n    public function getValidator(): callable\n    {\n        return fn (?string $data): ?string => $data;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/PackageKeywords.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nuse function array_filter;\nuse function array_map;\nuse function array_values;\nuse function explode;\nuse function implode;\nuse function trim;\n\n/**\n * Asks for keywords to associate with the library\n */\nclass PackageKeywords extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'packageKeywords';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Enter a set of comma-separated keywords describing your library',\n            implode(',', $answers->packageKeywords) ?: null,\n        );\n\n        $this->answers = $answers;\n    }\n\n    /**\n     * @return callable(string | null): list<string>\n     */\n    public function getNormalizer(): callable\n    {\n        return function (?string $answer): array {\n            if ($answer === null || trim($answer) === '') {\n                return [];\n            }\n\n            return array_values(\n                array_filter(\n                    array_map(\n                        fn ($v) => trim($v),\n                        explode(',', $answer),\n                    ),\n                ),\n            );\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/PackageName.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nuse function preg_match;\nuse function str_starts_with;\nuse function strtolower;\nuse function trim;\n\n/**\n * Asks for the package name (i.e., the name to use for this package on Packagist.org)\n */\nclass PackageName extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    private const VALID_PATTERN = '/^[a-z0-9]([_.-]?[a-z0-9]+)*\\/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$/';\n\n    public function getName(): string\n    {\n        return 'packageName';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is your package name?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        if ($this->getAnswers()->packageName !== null) {\n            return $this->getAnswers()->packageName;\n        }\n\n        $packageName = (string) $this->getAnswers()->vendorName\n            . '/'\n            . (string) $this->getAnswers()->projectName;\n\n        if (trim($packageName) === '/') {\n            return null;\n        }\n\n        return $packageName;\n    }\n\n    public function getValidator(): callable\n    {\n        return function (?string $data): string {\n            $vendorPrefix = '';\n            if ($this->getAnswers()->vendorName !== null) {\n                $vendorPrefix = strtolower((string) $this->getAnswers()->vendorName) . '/';\n            }\n\n            $data = strtolower((string) $data);\n\n            if ($vendorPrefix !== '' && !str_starts_with($data, $vendorPrefix)) {\n                $data = $vendorPrefix . $data;\n            }\n\n            if (preg_match(self::VALID_PATTERN, $data)) {\n                return $data;\n            }\n\n            throw new InvalidConsoleInput(\n                'You must enter a valid package name.',\n            );\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/PackageNamespace.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nuse function array_map;\nuse function explode;\nuse function implode;\nuse function preg_match;\nuse function preg_replace;\nuse function str_replace;\nuse function substr;\nuse function trim;\nuse function ucwords;\n\n/**\n * Asks for the namespace to use for this package\n */\nclass PackageNamespace extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    private const VALID_PATTERN = '/^[a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*$/';\n\n    public function getName(): string\n    {\n        return 'packageNamespace';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is the library\\'s root namespace?');\n\n        $this->answers = $answers;\n    }\n\n    public function getQuestion(): string\n    {\n        $question = parent::getQuestion();\n\n        if ($this->getDefault() === null) {\n            $question .= ' (e.g., Foo\\\\Bar\\\\Baz)';\n        }\n\n        return $question;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        if ($this->getAnswers()->packageNamespace !== null) {\n            return $this->getAnswers()->packageNamespace;\n        }\n\n        $packageName = $this->getAnswers()->packageName;\n\n        if ($packageName === null || trim($packageName) === '') {\n            return null;\n        }\n\n        $packageName = str_replace('/', '\\\\', $packageName);\n        $packageNameParts = explode('\\\\', $packageName);\n\n        /** @var string[] $packageNameParts */\n        $packageNameParts = array_map($this->namify(), $packageNameParts);\n\n        return implode('\\\\', $packageNameParts);\n    }\n\n    public function getValidator(): callable\n    {\n        return function (?string $data): string {\n            $packageNameParts = explode('\\\\', (string) $data);\n\n            foreach ($packageNameParts as $namePart) {\n                if (!preg_match(self::VALID_PATTERN, $namePart)) {\n                    throw new InvalidConsoleInput(\n                        'You must enter a valid library namespace.',\n                    );\n                }\n            }\n\n            return (string) $data;\n        };\n    }\n\n    private function namify(): callable\n    {\n        return function (string $value): string {\n            // Replace any invalid characters with a space.\n            $value = preg_replace('/[^a-zA-Z0-9_\\x80-\\xff]/', ' ', $value);\n            $valueParts = explode(' ', (string) $value);\n\n            foreach ($valueParts as &$part) {\n                // Check the first character to make sure it's valid.\n                if (preg_match('/[^a-zA-Z_\\x80-\\xff]/', $part[0]) === 1) {\n                    $part = substr($part, 1);\n                }\n            }\n\n            // Upper-case the words and separate with namespaces.\n            return str_replace(' ', '\\\\', ucwords(implode(' ', $valueParts)));\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/SecurityPolicy.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\n\n/**\n * Asks whether the library creator wishes to include a security policy\n */\nclass SecurityPolicy extends ConfirmationQuestion implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    public function getName(): string\n    {\n        return 'securityPolicy';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'Do you want to include a security policy?',\n            $answers->securityPolicy,\n        );\n\n        $this->answers = $answers;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/SecurityPolicyContactEmail.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for the email address to which researchers should submit vulnerability reports\n */\nclass SecurityPolicyContactEmail extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use EmailValidatorTool;\n\n    public function getName(): string\n    {\n        return 'securityPolicyContactEmail';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'What email address should researchers use to submit vulnerability reports?',\n            $answers->securityPolicyContactEmail,\n        );\n\n        $this->answers = $answers;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->securityPolicy === false;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/SecurityPolicyContactFormUrl.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n/**\n * Asks for a URL that where security researchers may submit reports\n */\nclass SecurityPolicyContactFormUrl extends Question implements SkippableQuestion, StarterKitQuestion\n{\n    use AnswersTool;\n    use UrlValidatorTool;\n\n    public function getName(): string\n    {\n        return 'securityPolicyContactFormUrl';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct(\n            'At what URL should researchers submit vulnerability reports?',\n            $answers->securityPolicyContactFormUrl,\n        );\n\n        $this->answers = $answers;\n    }\n\n    public function shouldSkip(): bool\n    {\n        return $this->getAnswers()->securityPolicy === false;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/SkippableQuestion.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\ninterface SkippableQuestion\n{\n    public function shouldSkip(): bool;\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/StarterKitQuestion.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\n\ninterface StarterKitQuestion\n{\n    public function getAnswers(): Answers;\n\n    public function getName(): string;\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/UrlValidatorTool.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nuse function filter_var;\nuse function str_starts_with;\nuse function trim;\n\nuse const FILTER_VALIDATE_URL;\n\n/**\n * Common URL validation functionality\n */\ntrait UrlValidatorTool\n{\n    private bool $isOptional = true;\n\n    /**\n     * @return callable(string | null): (string | null)\n     */\n    public function getValidator(): callable\n    {\n        return function (?string $data): ?string {\n            if ($this->isOptional && ($data === null || trim($data) === '')) {\n                return null;\n            }\n\n            if (\n                filter_var((string) $data, FILTER_VALIDATE_URL)\n                && str_starts_with((string) $data, 'http')\n            ) {\n                return $data;\n            }\n\n            throw new InvalidConsoleInput(\n                'You must enter a valid URL, beginning with \"http://\" or \"https://\".',\n            );\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Question/VendorName.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nuse function preg_match;\nuse function strtolower;\n\n/**\n * Asks for the vendor name to use for this package\n */\nclass VendorName extends Question implements StarterKitQuestion\n{\n    use AnswersTool;\n\n    private const VALID_PATTERN = '/^[a-z0-9]([_.-]?[a-z0-9]+)*$/';\n\n    public function getName(): string\n    {\n        return 'vendorName';\n    }\n\n    public function __construct(Answers $answers)\n    {\n        parent::__construct('What is your package vendor name?');\n\n        $this->answers = $answers;\n    }\n\n    public function getDefault(): float | bool | int | string | null\n    {\n        return $this->getAnswers()->vendorName ?? $this->getAnswers()->githubUsername;\n    }\n\n    public function getValidator(): callable\n    {\n        return function (?string $data): string {\n            $data = strtolower((string) $data);\n\n            if (preg_match(self::VALID_PATTERN, $data)) {\n                return $data;\n            }\n\n            throw new InvalidConsoleInput(\n                'You must enter a valid vendor name.',\n            );\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/Style.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console;\n\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nclass Style extends SymfonyStyle\n{\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Console/StyleFactory.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Console;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * A factory useful for creating a Style instance\n */\nclass StyleFactory\n{\n    public function factory(InputInterface $input, OutputInterface $output): Style\n    {\n        return new Style($input, $output);\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Exception/InvalidConsoleInput.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Exception;\n\nuse RuntimeException;\n\nclass InvalidConsoleInput extends RuntimeException implements StarterKitException\n{\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Exception/StarterKitException.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Exception;\n\nuse Throwable as PhpThrowable;\n\ninterface StarterKitException extends PhpThrowable\n{\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Filesystem.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit;\n\nuse Symfony\\Component\\Filesystem\\Filesystem as SymfonyFilesystem;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\n/**\n * Wraps the Symfony Filesystem class to provide additional file operations\n */\nclass Filesystem extends SymfonyFilesystem\n{\n    /**\n     * Returns an instance of a file\n     */\n    public function getFile(string $path): SplFileInfo\n    {\n        return new SplFileInfo($path, '', '');\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Project.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit;\n\nclass Project\n{\n    public function __construct(\n        private readonly string $name,\n        private readonly string $path,\n    ) {\n    }\n\n    public function getName(): string\n    {\n        return $this->name;\n    }\n\n    public function getPath(): string\n    {\n        return $this->path;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Setup.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit;\n\nuse Composer\\Script\\Event;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Process\\Process;\nuse Twig\\Environment as TwigEnvironment;\nuse Twig\\Loader\\FilesystemLoader;\nuse Twig\\TwigFilter;\n\nuse function preg_replace;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass Setup\n{\n    /**\n     * @phpstan-param OutputInterface::VERBOSITY_* $verbosity\n     */\n    public function __construct(\n        private readonly Project $project,\n        private readonly Event $event,\n        private readonly Filesystem $filesystem,\n        private readonly Finder $finder,\n        private readonly int $verbosity,\n    ) {\n    }\n\n    /**\n     * Returns the absolute path to the directory for the application\n     */\n    public function getAppPath(): string\n    {\n        return $this->project->getPath();\n    }\n\n    /**\n     * Returns the Composer event that triggered this action\n     */\n    public function getEvent(): Event\n    {\n        return $this->event;\n    }\n\n    /**\n     * Returns a filesystem object to use when executing filesystem commands\n     */\n    public function getFilesystem(): Filesystem\n    {\n        return $this->filesystem;\n    }\n\n    /**\n     * Returns an object used to search for files or directories\n     */\n    public function getFinder(): Finder\n    {\n        return $this->finder::create();\n    }\n\n    /**\n     * Returns the project name\n     */\n    public function getProjectName(): string\n    {\n        return $this->project->getName();\n    }\n\n    /**\n     * Returns the project we are setting up\n     */\n    public function getProject(): Project\n    {\n        return $this->project;\n    }\n\n    /**\n     * Returns the verbosity level\n     *\n     * @return OutputInterface::VERBOSITY_*\n     */\n    public function getVerbosity(): int\n    {\n        return $this->verbosity;\n    }\n\n    /**\n     * Returns an instance used for executing a system command\n     *\n     * @param string[] $command\n     */\n    public function getProcess(array $command): Process\n    {\n        return new Process($command, $this->getProject()->getPath());\n    }\n\n    /**\n     * Given a project-relative directory or filename, constructs an absolute path\n     */\n    public function path(string $fileName): string\n    {\n        return $this->getProject()->getPath() . DIRECTORY_SEPARATOR . $fileName;\n    }\n\n    /**\n     * Returns a Build object used to process all the user inputs\n     */\n    public function getBuild(SymfonyStyle $console, Answers $answers): Build\n    {\n        return new Build(\n            $this,\n            $console,\n            $answers,\n        );\n    }\n\n    /**\n     * Returns a Twig environment object for rendering Twig templates\n     */\n    public function getTwigEnvironment(): TwigEnvironment\n    {\n        $pregReplaceFilter = new TwigFilter(\n            'preg_replace',\n            /**\n             * @param non-empty-string $p\n             */\n            fn (string $s, string $p, string $r): string => (string) preg_replace($p, $r, $s),\n        );\n\n        $twig = new TwigEnvironment(\n            new FilesystemLoader($this->getProject()->getPath() . '/resources/templates'),\n            [\n                'debug' => true,\n                'strict_variables' => true,\n                'autoescape' => false,\n            ],\n        );\n\n        $twig->addFilter($pregReplaceFilter);\n\n        return $twig;\n    }\n\n    /**\n     * Runs the steps to set up the project\n     */\n    public function run(SymfonyStyle $console, Answers $answers): void\n    {\n        $this->getBuild($console, $answers)->run();\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Build.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\Cleanup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\FixStyle;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\InstallDependencies;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\RenameTemplates;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\RunTests;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\SetupRepository;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateChangelog;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateCodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateComposerJson;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateContributing;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateFunding;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateLicense;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateNamespace;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateReadme;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateSecurityPolicy;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateSourceFileHeaders;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * The Build task executes all the builders used to build the library\n */\nclass Build\n{\n    public function __construct(\n        private readonly Setup $setup,\n        private readonly SymfonyStyle $console,\n        private readonly Answers $answers,\n    ) {\n    }\n\n    public function getAnswers(): Answers\n    {\n        return $this->answers;\n    }\n\n    public function getConsole(): SymfonyStyle\n    {\n        return $this->console;\n    }\n\n    public function getSetup(): Setup\n    {\n        return $this->setup;\n    }\n\n    /**\n     * Executes each builder\n     */\n    public function run(): void\n    {\n        foreach ($this->getBuilders() as $builder) {\n            $builder->build();\n        }\n    }\n\n    /**\n     * Returns a list of builders to use for creating a library\n     *\n     * @return Builder[]\n     */\n    public function getBuilders(): array\n    {\n        return [\n            new RenameTemplates($this),\n            new UpdateComposerJson($this),\n            new UpdateReadme($this),\n            new UpdateLicense($this),\n            new UpdateSourceFileHeaders($this),\n            new UpdateNamespace($this),\n            new UpdateSecurityPolicy($this),\n            new UpdateCodeOfConduct($this),\n            new UpdateChangelog($this),\n            new UpdateContributing($this),\n            new UpdateFunding($this),\n            new InstallDependencies($this),\n            new Cleanup($this),\n            new FixStyle($this),\n            new SetupRepository($this),\n            new RunTests($this),\n        ];\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/Cleanup.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse function sprintf;\n\nuse const DIRECTORY_SEPARATOR;\n\n/**\n * Removes files that we don't want to include in the newly-created project\n */\nclass Cleanup extends Builder\n{\n    /**\n     * The files and directories listed here are relative to the project root.\n     */\n    private const CLEANUP_FILES = [\n        'resources' . DIRECTORY_SEPARATOR . 'templates',\n        'src' . DIRECTORY_SEPARATOR . 'LibraryStarterKit',\n        'tests' . DIRECTORY_SEPARATOR . 'LibraryStarterKit',\n        '.git',\n        '.starter-kit-answers',\n    ];\n\n    public function build(): void\n    {\n        $this->getConsole()->section('Cleaning up...');\n\n        foreach (self::CLEANUP_FILES as $file) {\n            $this->getEnvironment()->getFilesystem()->remove(\n                $this->getEnvironment()->path($file),\n            );\n\n            $this->getConsole()->text(sprintf(\n                '<comment>  - Deleted \\'%s\\'.</comment>',\n                $this->getEnvironment()->path($file),\n            ));\n        }\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/FixStyle.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Fixes any style issues we might encounter (e.g., use statements sorting, etc.)\n */\nclass FixStyle extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Fixing style issues...');\n\n        $this\n            ->getEnvironment()\n            ->getProcess(['composer', 'dev:lint:fix'])\n            ->mustRun($this->streamProcessOutput());\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/InstallDependencies.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Installs project dependencies after building a new library\n */\nclass InstallDependencies extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Installing dependencies');\n\n        // Remove lock files and vendor directories to start fresh.\n        $this->getEnvironment()->getFilesystem()->remove([\n            $this->getEnvironment()->path('composer.lock'),\n            $this->getEnvironment()->path('vendor'),\n        ]);\n\n        $process = $this->getEnvironment()->getProcess([\n            'composer',\n            'update',\n            '--no-interaction',\n            '--ansi',\n            '--no-progress',\n        ]);\n\n        $process->mustRun($this->streamProcessOutput());\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/RenameTemplates.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function basename;\nuse function dirname;\nuse function sprintf;\n\nuse const DIRECTORY_SEPARATOR;\n\n/**\n * Removes the .template suffix from any files in the project\n */\nclass RenameTemplates extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Renaming template files');\n\n        foreach ($this->getTemplatesFinder() as $template) {\n            $this->removeTemplateExtension($template);\n        }\n    }\n\n    private function getTemplatesFinder(): Finder\n    {\n        $finder = $this->getEnvironment()->getFinder();\n\n        $finder\n            ->ignoreDotFiles(false)\n            ->exclude([\n                'build',\n                'vendor',\n            ])\n            ->in($this->getEnvironment()->getAppPath())\n            ->name('*.template')\n            ->name('.*.template');\n\n        return $finder;\n    }\n\n    private function removeTemplateExtension(SplFileInfo $file): void\n    {\n        $path = (string) $file->getRealPath();\n        $dirName = dirname($path);\n        $baseName = basename($path, '.template');\n        $newPath = $dirName . DIRECTORY_SEPARATOR . $baseName;\n\n        $this->getConsole()->text(sprintf(\n            '<comment>  - Renaming \\'%s\\' to \\'%s\\'.</comment>',\n            $path,\n            $newPath,\n        ));\n\n        $this->getEnvironment()->getFilesystem()->rename($path, $newPath);\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/RunTests.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Runs all tests for the newly-created project\n */\nclass RunTests extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Running project tests...');\n\n        $this\n            ->getEnvironment()\n            ->getProcess(['composer', 'dev:test:all'])\n            ->mustRun($this->streamProcessOutput());\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/SetupRepository.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Symfony\\Component\\Process\\Process;\n\nuse function sprintf;\nuse function trim;\n\n/**\n * Initializes a local Git repository for the newly-created project\n */\nclass SetupRepository extends Builder\n{\n    private const COMMIT_MSG = 'chore: initialize project using ramsey/php-library-starter-kit';\n    private const DEFAULT_BRANCH = 'main';\n\n    public function build(): void\n    {\n        $this->getConsole()->section('Setting up Git repository');\n\n        $this\n            ->initializeRepository()\n            ->gitConfigUser()\n            ->cleanBuildDir()\n            ->gitAddAllFiles()\n            ->gitInitialCommit()\n            ->setGitBranchName()\n            ->installHooks();\n    }\n\n    private function getDefaultBranch(): string\n    {\n        $process = $this->getEnvironment()->getProcess(\n            ['git', 'config', 'init.defaultBranch'],\n        );\n\n        $process->run();\n\n        $defaultBranch = trim($process->getOutput());\n\n        return $defaultBranch ?: self::DEFAULT_BRANCH;\n    }\n\n    private function getUserName(): string\n    {\n        $process = $this->getEnvironment()->getProcess(\n            ['git', 'config', 'user.name'],\n        );\n\n        $process->run();\n\n        return trim($process->getOutput());\n    }\n\n    private function getUserEmail(): string\n    {\n        $process = $this->getEnvironment()->getProcess(\n            ['git', 'config', 'user.email'],\n        );\n\n        $process->run();\n\n        return trim($process->getOutput());\n    }\n\n    private function initializeRepository(): self\n    {\n        $this\n            ->getEnvironment()\n            ->getProcess(['git', 'init'])\n            ->mustRun(function (string $type, string $buffer): void {\n                if ($type === Process::OUT) {\n                    $this->getConsole()->write($buffer);\n                }\n            });\n\n        return $this;\n    }\n\n    private function installHooks(): self\n    {\n        $captainHookPath = $this->getEnvironment()->path('vendor') . '/bin/captainhook';\n\n        $this\n            ->getEnvironment()\n            ->getProcess([$captainHookPath, 'install', '--force', '--skip-existing'])\n            ->mustRun($this->streamProcessOutput());\n\n        return $this;\n    }\n\n    private function cleanBuildDir(): self\n    {\n        $this\n            ->getEnvironment()\n            ->getProcess(['composer', 'dev:build:clean'])\n            ->mustRun();\n\n        return $this;\n    }\n\n    private function gitAddAllFiles(): self\n    {\n        $this\n            ->getEnvironment()\n            ->getProcess(['git', 'add', '--all'])\n            ->mustRun($this->streamProcessOutput());\n\n        return $this;\n    }\n\n    private function gitInitialCommit(): self\n    {\n        $author = sprintf(\n            '%s <%s>',\n            (string) $this->getAnswers()->authorName,\n            (string) $this->getAnswers()->authorEmail,\n        );\n\n        $this\n            ->getEnvironment()\n            ->getProcess(['git', 'commit', '-n', '-m', self::COMMIT_MSG, '--author', $author])\n            ->mustRun($this->streamProcessOutput());\n\n        return $this;\n    }\n\n    private function setGitBranchName(): self\n    {\n        $this\n            ->getEnvironment()\n            ->getProcess(['git', 'branch', '-M', $this->getDefaultBranch()])\n            ->mustRun($this->streamProcessOutput());\n\n        return $this;\n    }\n\n    private function gitConfigUser(): self\n    {\n        $userName = $this->getUserName();\n        $userEmail = $this->getUserEmail();\n\n        if ($userName !== $this->getAnswers()->authorName) {\n            $this\n                ->getEnvironment()\n                ->getProcess(['git', 'config', 'user.name', (string) $this->getAnswers()->authorName])\n                ->mustRun($this->streamProcessOutput());\n        }\n\n        if ($userEmail !== $this->getAnswers()->authorEmail) {\n            $this\n                ->getEnvironment()\n                ->getProcess(['git', 'config', 'user.email', (string) $this->getAnswers()->authorEmail])\n                ->mustRun($this->streamProcessOutput());\n        }\n\n        return $this;\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateChangelog.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Updates the project's CHANGELOG using the CHANGELOG template\n */\nclass UpdateChangelog extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating CHANGELOG.md');\n\n        $changelog = $this->getEnvironment()->getTwigEnvironment()->render(\n            'CHANGELOG.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('CHANGELOG.md'),\n            $changelog,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateCodeOfConduct.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse const DIRECTORY_SEPARATOR;\n\n/**\n * Updates the project's Code of Conduct using the one selected during setup\n */\nclass UpdateCodeOfConduct extends Builder\n{\n    public function build(): void\n    {\n        if ($this->getAnswers()->codeOfConduct === CodeOfConduct::DEFAULT) {\n            $this->getConsole()->section('Removing CODE_OF_CONDUCT.md');\n            $this->getEnvironment()->getFilesystem()->remove(\n                $this->getEnvironment()->path('CODE_OF_CONDUCT.md'),\n            );\n\n            return;\n        }\n\n        $this->getConsole()->section('Updating CODE_OF_CONDUCT.md');\n\n        $codeOfConductTemplate = 'code-of-conduct' . DIRECTORY_SEPARATOR;\n        $codeOfConductTemplate .= $this->getAnswers()->codeOfConduct;\n        $codeOfConductTemplate .= '.md.twig';\n\n        $codeOfConduct = $this->getEnvironment()->getTwigEnvironment()->render(\n            $codeOfConductTemplate,\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('CODE_OF_CONDUCT.md'),\n            $codeOfConduct,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateComposerJson.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse RuntimeException;\n\nuse function array_filter;\nuse function in_array;\nuse function json_decode;\nuse function json_encode;\nuse function trim;\n\nuse const ARRAY_FILTER_USE_KEY;\nuse const JSON_PRETTY_PRINT;\nuse const JSON_UNESCAPED_SLASHES;\nuse const JSON_UNESCAPED_UNICODE;\n\n/**\n * Updates values in the composer.json file\n *\n * @psalm-type ComposerAuthorType = array{name: string, email?: string | null, homepage?: string | null}\n * @psalm-type ComposerAutoloadType = array{\"psr-4\"?: array<string, string>}\n * @psalm-type ComposerType = array{name: string, description: string, type: string, keywords: string[], license: string | null, authors: ComposerAuthorType[], require?: array<string, string>, require-dev?: array<string, string>, autoload?: ComposerAutoloadType, autoload-dev?: ComposerAutoloadType, scripts?: array<string, string | string[]>, scripts-descriptions?: array<string, string>, suggest?: array<string, string>}\n */\nclass UpdateComposerJson extends Builder\n{\n    private const ALLOWLIST_REQUIRE = [\n        'php',\n    ];\n\n    private const ALLOWLIST_REQUIRE_DEV = [\n        'ramsey/devtools',\n    ];\n\n    private const ALLOWLIST_AUTOLOAD = [\n        'Vendor\\\\SubNamespace\\\\',\n    ];\n\n    private const ALLOWLIST_AUTOLOAD_DEV = [\n        'Vendor\\\\Test\\\\SubNamespace\\\\',\n    ];\n\n    private const JSON_OPTIONS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;\n\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating composer.json');\n\n        /**\n         * @psalm-var ComposerType|null $composer\n         */\n        $composer = json_decode($this->getComposerContents(), true);\n        if ($composer === null) {\n            throw new RuntimeException('Unable to decode contents of composer.json');\n        }\n\n        $composer['name'] = (string) $this->getAnswers()->packageName;\n        $composer['description'] = (string) $this->getAnswers()->packageDescription;\n        $composer['type'] = 'library';\n        $composer['keywords'] = $this->getAnswers()->packageKeywords;\n        $composer['license'] = $this->getAnswers()->license;\n\n        $this->buildAuthors($composer);\n        $this->buildRequire($composer);\n        $this->buildRequireDev($composer);\n        $this->buildAutoload($composer);\n        $this->buildAutoloadDev($composer);\n\n        unset($composer['scripts']);\n        unset($composer['scripts-descriptions']);\n        unset($composer['suggest']);\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('composer.json'),\n            (string) json_encode($composer, self::JSON_OPTIONS) . \"\\n\",\n        );\n    }\n\n    /**\n     * @param array<string, string> $data\n     * @param string[] $allowlist\n     *\n     * @return array<string, string>\n     */\n    private function filterPropertiesByAllowlist(array $data, array $allowlist): array\n    {\n        return array_filter($data, fn ($property) => in_array($property, $allowlist), ARRAY_FILTER_USE_KEY);\n    }\n\n    private function getComposerContents(): string\n    {\n        $finder = $this->getEnvironment()->getFinder();\n        $finder\n            ->in($this->getEnvironment()->getAppPath())\n            ->files()\n            ->depth('== 0')\n            ->name('composer.json');\n\n        $composerContents = null;\n\n        foreach ($finder as $file) {\n            $composerContents = $file->getContents();\n\n            break;\n        }\n\n        if ($composerContents === null) {\n            throw new RuntimeException('Unable to get contents of composer.json');\n        }\n\n        return $composerContents;\n    }\n\n    /**\n     * @psalm-param ComposerType $composer\n     */\n    private function buildAuthors(array &$composer): void\n    {\n        /** @var ComposerAuthorType $author */\n        $author = ['name' => $this->getAnswers()->authorName];\n\n        if (trim((string) $this->getAnswers()->authorEmail) !== '') {\n            $author['email'] = $this->getAnswers()->authorEmail;\n        }\n\n        if (trim((string) $this->getAnswers()->authorUrl) !== '') {\n            $author['homepage'] = $this->getAnswers()->authorUrl;\n        }\n\n        $composer['authors'] = [$author];\n    }\n\n    /**\n     * @psalm-param ComposerType $composer\n     */\n    private function buildRequire(array &$composer): void\n    {\n        if (!isset($composer['require'])) {\n            return;\n        }\n\n        $composer['require'] = $this->filterPropertiesByAllowlist(\n            $composer['require'],\n            self::ALLOWLIST_REQUIRE,\n        );\n    }\n\n    /**\n     * @psalm-param ComposerType $composer\n     */\n    private function buildRequireDev(array &$composer): void\n    {\n        if (!isset($composer['require-dev'])) {\n            return;\n        }\n\n        $composer['require-dev'] = $this->filterPropertiesByAllowlist(\n            $composer['require-dev'],\n            self::ALLOWLIST_REQUIRE_DEV,\n        );\n    }\n\n    /**\n     * @psalm-param ComposerType $composer\n     */\n    private function buildAutoload(array &$composer): void\n    {\n        if (!isset($composer['autoload']['psr-4'])) {\n            return;\n        }\n\n        $composer['autoload']['psr-4'] = $this->filterPropertiesByAllowlist(\n            $composer['autoload']['psr-4'],\n            self::ALLOWLIST_AUTOLOAD,\n        );\n    }\n\n    /**\n     * @psalm-param ComposerType $composer\n     */\n    private function buildAutoloadDev(array &$composer): void\n    {\n        if (!isset($composer['autoload-dev']['psr-4'])) {\n            return;\n        }\n\n        $composer['autoload-dev']['psr-4'] = $this->filterPropertiesByAllowlist(\n            $composer['autoload-dev']['psr-4'],\n            self::ALLOWLIST_AUTOLOAD_DEV,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateContributing.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Updates the CONTRIBUTING.md file based on responses to setup questions\n */\nclass UpdateContributing extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating CONTRIBUTING.md');\n\n        $changelog = $this->getEnvironment()->getTwigEnvironment()->render(\n            'CONTRIBUTING.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('CONTRIBUTING.md'),\n            $changelog,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateFunding.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\n/**\n * Replaces this project's FUNDING.yml file with an empty one for the new project\n */\nclass UpdateFunding extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating .github/FUNDING.yml');\n\n        $funding = $this->getEnvironment()->getTwigEnvironment()->render(\n            'FUNDING.yml.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('.github/FUNDING.yml'),\n            $funding,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateLicense.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse function str_starts_with;\n\nuse const DIRECTORY_SEPARATOR;\n\n/**\n * Updates the license files with those chosen during the project setup\n */\nclass UpdateLicense extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating license and copyright information');\n\n        $licenseChoice = $this->getAnswers()->license ?? '';\n\n        // Remove the existing LICENSE file.\n        $this->getEnvironment()->getFilesystem()->remove('LICENSE');\n\n        $this->handleLicenseFile($licenseChoice);\n\n        if ($this->hasNoticeFile($licenseChoice)) {\n            $this->handleNoticeFile($licenseChoice);\n        }\n    }\n\n    private function hasNoticeFile(string $license): bool\n    {\n        switch ($license) {\n            case 'AGPL-3.0-or-later':\n            case 'Apache-2.0':\n            case 'GPL-3.0-or-later':\n            case 'LGPL-3.0-or-later':\n            case 'MPL-2.0':\n                return true;\n            default:\n                return false;\n        }\n    }\n\n    private function getLicenseFilename(string $license): string\n    {\n        switch ($license) {\n            case 'AGPL-3.0-or-later':\n            case 'GPL-3.0-or-later':\n                return 'COPYING';\n            case 'LGPL-3.0-or-later':\n                return 'COPYING.LESSER';\n            case 'Proprietary':\n                return 'COPYRIGHT';\n            case 'Unlicense':\n                return 'UNLICENSE';\n            default:\n                return 'LICENSE';\n        }\n    }\n\n    private function handleLicenseFile(string $license): void\n    {\n        $licenseContents = $this->getEnvironment()->getTwigEnvironment()->render(\n            'license' . DIRECTORY_SEPARATOR . $license . '.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path($this->getLicenseFilename($license)),\n            $licenseContents,\n        );\n\n        if (str_starts_with($license, 'LGPL-3.0')) {\n            $this->includeGplWithLesserGpl();\n        }\n    }\n\n    private function handleNoticeFile(string $license): void\n    {\n        $noticeContents = $this->getEnvironment()->getTwigEnvironment()->render(\n            'license' . DIRECTORY_SEPARATOR . $license . '-NOTICE.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('NOTICE'),\n            $noticeContents,\n        );\n    }\n\n    private function includeGplWithLesserGpl(): void\n    {\n        $gplContents = $this->getEnvironment()->getTwigEnvironment()->render(\n            'license' . DIRECTORY_SEPARATOR . 'GPL-3.0-or-later.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('COPYING'),\n            $gplContents,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateNamespace.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function array_filter;\nuse function array_keys;\nuse function array_shift;\nuse function array_values;\nuse function explode;\nuse function implode;\nuse function iterator_to_array;\nuse function str_replace;\n\n/**\n * Updates the namespace according to the one provided during project setup\n */\nclass UpdateNamespace extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating namespace');\n\n        $packageName = (string) $this->getAnswers()->packageName;\n        $namespaceParts = explode(\n            '\\\\',\n            (string) $this->getAnswers()->packageNamespace,\n        );\n        $vendor = array_shift($namespaceParts);\n        $subNamespace = implode('\\\\', $namespaceParts);\n\n        $namespace = implode('\\\\', array_filter([$vendor, $subNamespace]));\n        $testNamespace = implode('\\\\', array_filter([$vendor, 'Test', $subNamespace]));\n\n        $replacements = [\n            'Vendor\\\\SubNamespace' => $namespace,\n            'Vendor\\\\Test\\\\SubNamespace' => $testNamespace,\n            'Vendor\\\\\\\\SubNamespace' => str_replace('\\\\', '\\\\\\\\', $namespace),\n            'Vendor\\\\\\\\Test\\\\\\\\SubNamespace' => str_replace('\\\\', '\\\\\\\\', $testNamespace),\n            'ramsey/php-library-starter-kit' => $packageName,\n        ];\n\n        foreach ($this->getSourceFiles() as $file) {\n            $this->replaceNamespace($file, $replacements);\n        }\n    }\n\n    /**\n     * @return SplFileInfo[]\n     */\n    private function getSourceFiles(): array\n    {\n        $finder = $this->getEnvironment()->getFinder();\n\n        $finder\n            ->exclude(['LibraryStarterKit'])\n            ->in([\n                $this->getEnvironment()->path('bin'),\n                $this->getEnvironment()->path('src'),\n                $this->getEnvironment()->path('tests'),\n            ])\n            ->files()\n            ->name('*.php');\n\n        /** @var SplFileInfo[] $files */\n        $files = iterator_to_array($finder, false);\n\n        // Find composer.json and add it to the array of files to return.\n        $composerFinder = $this->getEnvironment()->getFinder();\n        $composerFinder\n            ->in([$this->getEnvironment()->getAppPath()])\n            ->files()\n            ->depth('== 0')\n            ->name('composer.json');\n\n        foreach ($composerFinder as $file) {\n            $files[] = $file;\n\n            break;\n        }\n\n        return $files;\n    }\n\n    /**\n     * @param array<string, string> $replacements\n     */\n    private function replaceNamespace(SplFileInfo $file, array $replacements): void\n    {\n        $path = (string) $file->getRealPath();\n        $contents = $file->getContents();\n\n        $updatedContents = str_replace(\n            array_keys($replacements),\n            array_values($replacements),\n            $contents,\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile($path, $updatedContents);\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateReadme.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse RuntimeException;\n\nuse function array_keys;\nuse function array_values;\nuse function preg_replace;\n\n/**\n * Updates the README.md file based on answers obtained during project setup\n */\nclass UpdateReadme extends Builder\n{\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating README.md');\n\n        $readmeContents = $this->getReadmeContents();\n\n        $replacements = [\n            '/<!-- NAME_START -->(.*)<!-- NAME_END -->/s' => $this->getAnswers()->packageName,\n            '/<!-- BADGES_START -->(.*)<!-- BADGES_END -->/s' => $this->getBadges(),\n            '/<!-- DESC_START -->(.*)<!-- DESC_END -->/s' => $this->getDescription(),\n            '/<!-- COC_START -->(.*)<!-- COC_END -->/s' => $this->getCodeOfConduct(),\n            '/<!-- USAGE_START -->(.*)<!-- USAGE_END -->/s' => $this->getUsage(),\n            '/<!-- FAQ_START -->(.*)<!-- FAQ_END -->/s' => '',\n            '/<!-- COPYRIGHT_START -->(.*)<!-- COPYRIGHT_END -->/s' => $this->getCopyright(),\n            '/<!-- SECURITY_START -->(.*)<!-- SECURITY_END -->/s' => $this->getSecurityStatement(),\n        ];\n\n        /** @var non-empty-string[] $searches */\n        $searches = array_keys($replacements);\n\n        /** @var string[] $replaces */\n        $replaces = array_values($replacements);\n\n        $readme = (string) preg_replace(\n            $searches,\n            $replaces,\n            $readmeContents,\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('README.md'),\n            $readme,\n        );\n    }\n\n    private function getReadmeContents(): string\n    {\n        $finder = $this->getEnvironment()->getFinder();\n        $finder\n            ->in($this->getEnvironment()->getAppPath())\n            ->files()\n            ->depth('== 0')\n            ->name('README.md');\n\n        $readmeContents = null;\n\n        foreach ($finder as $file) {\n            $readmeContents = $file->getContents();\n\n            break;\n        }\n\n        if ($readmeContents === null) {\n            throw new RuntimeException('Unable to get contents of README.md');\n        }\n\n        return $readmeContents;\n    }\n\n    private function getBadges(): string\n    {\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/badges.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n\n    private function getDescription(): string\n    {\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/description.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n\n    private function getCodeOfConduct(): string\n    {\n        if ($this->getAnswers()->codeOfConduct === CodeOfConduct::DEFAULT) {\n            return '';\n        }\n\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/code-of-conduct.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n\n    private function getUsage(): string\n    {\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/usage.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n\n    private function getCopyright(): string\n    {\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/copyright.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n\n    private function getSecurityStatement(): string\n    {\n        if ($this->getAnswers()->securityPolicy === false) {\n            return '';\n        }\n\n        return $this->getEnvironment()->getTwigEnvironment()->render(\n            'readme/security.md.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateSecurityPolicy.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse const DIRECTORY_SEPARATOR;\n\n/**\n * Updates the project's security policy using the one selected during setup\n */\nclass UpdateSecurityPolicy extends Builder\n{\n    public function build(): void\n    {\n        if ($this->getAnswers()->securityPolicy === false) {\n            $this->getConsole()->section('Removing SECURITY.md');\n            $this->getEnvironment()->getFilesystem()->remove(\n                $this->getEnvironment()->path('SECURITY.md'),\n            );\n\n            return;\n        }\n\n        $this->getConsole()->section('Updating SECURITY.md');\n\n        $securityPolicyTemplate = 'security-policy' . DIRECTORY_SEPARATOR;\n        $securityPolicyTemplate .= 'HackerOne.md.twig';\n\n        $securityPolicy = $this->getEnvironment()->getTwigEnvironment()->render(\n            $securityPolicyTemplate,\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile(\n            $this->getEnvironment()->path('SECURITY.md'),\n            $securityPolicy,\n        );\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder/UpdateSourceFileHeaders.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function array_filter;\nuse function explode;\nuse function implode;\nuse function preg_replace;\n\n/**\n * Updates the source file headers to include license information, based on\n * responses received during project setup\n */\nclass UpdateSourceFileHeaders extends Builder\n{\n    private const HEADER_PATTERN = '%/\\*\\*.* \\*/%sU';\n\n    public function build(): void\n    {\n        $this->getConsole()->section('Updating source file headers');\n\n        $newFileHeader = $this->getEnvironment()->getTwigEnvironment()->render(\n            'header/source-file-header.twig',\n            $this->getAnswers()->getArrayCopy(),\n        );\n\n        $headerLines = explode(\"\\n\", $newFileHeader);\n        $headerLines = array_filter($headerLines);\n        $newFileHeader = implode(\"\\n\", $headerLines);\n\n        foreach ($this->getSourceFilesFinder() as $file) {\n            $this->replaceSourceFileHeader($file, $newFileHeader);\n        }\n    }\n\n    private function getSourceFilesFinder(): Finder\n    {\n        $finder = $this->getEnvironment()->getFinder();\n\n        $finder\n            ->exclude(['LibraryStarterKit'])\n            ->in([\n                $this->getEnvironment()->path('src'),\n            ])\n            ->files()\n            ->name('*.php');\n\n        return $finder;\n    }\n\n    private function replaceSourceFileHeader(SplFileInfo $file, string $newFileHeader): void\n    {\n        $path = (string) $file->getRealPath();\n        $contents = $file->getContents();\n\n        $updatedContents = (string) preg_replace(\n            self::HEADER_PATTERN,\n            $newFileHeader,\n            $contents,\n            1,\n        );\n\n        $this->getEnvironment()->getFilesystem()->dumpFile($path, $updatedContents);\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Task/Builder.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit\\Task;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Represents a builder that uses user responses to build some part of a library\n */\nabstract class Builder\n{\n    public function __construct(private readonly Build $buildTask)\n    {\n    }\n\n    /**\n     * Executes the build action for this particular builder\n     */\n    abstract public function build(): void;\n\n    public function getAnswers(): Answers\n    {\n        return $this->buildTask->getAnswers();\n    }\n\n    public function getEnvironment(): Setup\n    {\n        return $this->buildTask->getSetup();\n    }\n\n    public function getConsole(): SymfonyStyle\n    {\n        return $this->buildTask->getConsole();\n    }\n\n    /**\n     * Returns a callback that may be used to stream process output to stdout\n     *\n     * @return callable(string, string): void\n     */\n    public function streamProcessOutput(): callable\n    {\n        return function (string $_type, string $buffer): void {\n            $this->getConsole()->write($buffer);\n        };\n    }\n}\n"
  },
  {
    "path": "src/LibraryStarterKit/Wizard.php",
    "content": "<?php\n\n/**\n * This file is part of ramsey/php-library-starter-kit\n *\n * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>\n * @license https://opensource.org/licenses/MIT MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Dev\\LibraryStarterKit;\n\nuse Composer\\Script\\Event;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\InstallQuestions;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SkippableQuestion;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\StarterKitQuestion;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\StyleFactory;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Throwable;\n\nuse function basename;\nuse function dirname;\nuse function getenv;\nuse function preg_replace;\nuse function realpath;\nuse function sprintf;\nuse function strtolower;\nuse function trim;\n\nclass Wizard extends Command\n{\n    private const ANSWERS_FILE = '.starter-kit-answers';\n\n    public static ?Application $application = null;\n\n    private Answers $answers;\n\n    public function __construct(\n        private readonly Setup $setup,\n        private readonly StyleFactory $styleFactory = new StyleFactory(),\n    ) {\n        parent::__construct('starter-kit');\n\n        $this->answers = new Answers(\n            $this->getAnswersFile(),\n            $this->setup->getFilesystem(),\n        );\n\n        if ($this->answers->projectName === null) {\n            $this->answers->projectName = $this->setup->getProject()->getName();\n        }\n\n        if ($this->answers->authorName === null) {\n            $this->answers->authorName = $this->getGitUserName();\n        }\n\n        if ($this->answers->authorEmail === null) {\n            $this->answers->authorEmail = $this->getGitUserEmail();\n        }\n    }\n\n    public function getSetup(): Setup\n    {\n        return $this->setup;\n    }\n\n    public function getAnswersFile(): string\n    {\n        /** @psalm-suppress RiskyTruthyFalsyComparison */\n        return getenv('STARTER_KIT_ANSWERS_FILE') ?: $this->setup->path(self::ANSWERS_FILE);\n    }\n\n    protected function execute(InputInterface $input, OutputInterface $output): int\n    {\n        $output->setVerbosity($this->getSetup()->getVerbosity());\n\n        $console = $this->styleFactory->factory($input, $output);\n        $console->title('Welcome to the PHP Library Starter Kit!');\n\n        if ($this->answers->skipPrompts === false) {\n            $console->block(\n                'I\\'ll ask you a series of questions about the library '\n                . 'you\\'re creating. When finished, I\\'ll set up a repository with '\n                . 'an initial set of files that you may customize to suit your '\n                . 'needs.',\n            );\n        } else {\n            $console->block(\n                'You\\'ve provided an answers file with \\'skipPrompts: true\\', '\n                . 'so I won\\'t ask any questions. Instead, I\\'ll go ahead and '\n                . 'start setting up a repository with an initial set of files '\n                . 'that you may customize to suit your needs.',\n            );\n        }\n\n        $this->registerInterruptHandler($console);\n\n        try {\n            if ($this->answers->skipPrompts === false) {\n                if (!$this->confirmStart($console)) {\n                    return 0;\n                }\n\n                $this->askQuestions($console);\n            }\n\n            $this->setup->run($console, $this->answers);\n        } catch (Throwable $throwable) {\n            return $this->handleException($throwable, $console);\n        }\n\n        $console->success([\n            sprintf('Congratulations! Your project, %s, is ready!', (string) $this->answers->packageName),\n            sprintf('Your project is available at %s.', $this->setup->getProject()->getPath()),\n        ]);\n\n        return 0;\n    }\n\n    private function getGitUserName(): ?string\n    {\n        $process = $this->getSetup()->getProcess(\n            ['git', 'config', 'user.name'],\n        );\n\n        $process->run();\n\n        return trim($process->getOutput()) ?: null;\n    }\n\n    private function getGitUserEmail(): ?string\n    {\n        $process = $this->getSetup()->getProcess(\n            ['git', 'config', 'user.email'],\n        );\n\n        $process->run();\n\n        return trim($process->getOutput()) ?: null;\n    }\n\n    private function confirmStart(SymfonyStyle $console): bool\n    {\n        $getStarted = new ConfirmationQuestion('Are you ready to get started?', false);\n\n        /** @var bool $confirmStart */\n        $confirmStart = $console->askQuestion($getStarted);\n\n        if ($confirmStart) {\n            return true;\n        }\n\n        $this->exitEarly($console);\n\n        return false;\n    }\n\n    private function askQuestions(SymfonyStyle $console): void\n    {\n        /**\n         * @var Question & StarterKitQuestion $question\n         */\n        foreach ((new InstallQuestions())->getQuestions($this->answers) as $question) {\n            if ($question instanceof SkippableQuestion && $question->shouldSkip()) {\n                $this->answers->{$question->getName()} = $question->getDefault();\n\n                continue;\n            }\n\n            $this->answers->{$question->getName()} = $console->askQuestion($question);\n        }\n    }\n\n    private function exitEarly(SymfonyStyle $console): void\n    {\n        $this->answers->saveToFile();\n\n        $console->block([\n            'I\\'ve saved your progress. When you\\'re ready to return to the '\n            . 'starter kit wizard, enter:',\n        ]);\n\n        $console->text([\n            '    <info>cd ' . $this->setup->getAppPath() . '</info>',\n            '    <info>composer starter-kit</info>',\n        ]);\n\n        $console->newLine();\n    }\n\n    /**\n     * @codeCoverageIgnore\n     */\n    private function registerInterruptHandler(SymfonyStyle $console): void\n    {\n        $interruptHandler = function () use ($console): void {\n            $this->exitEarly($console);\n            exit(0);\n        };\n\n        // phpcs:disable\n        if (\\function_exists('pcntl_signal')) {\n            \\pcntl_signal(\\SIGINT, $interruptHandler);\n            \\pcntl_signal(\\SIGTERM, $interruptHandler);\n        } elseif (\\function_exists('sapi_windows_set_ctrl_handler')) {\n            \\sapi_windows_set_ctrl_handler($interruptHandler);\n        }\n        // phpcs:enable\n    }\n\n    private function handleException(Throwable $throwable, SymfonyStyle $console): int\n    {\n        $errorMessages = [\n            $throwable->getMessage(),\n            sprintf('At line %d in %s', $throwable->getLine(), $throwable->getFile()),\n        ];\n\n        if ($console->getVerbosity() === OutputInterface::VERBOSITY_DEBUG) {\n            $errorMessages[] = $throwable->getTraceAsString();\n        }\n\n        $console->error($errorMessages);\n\n        $console->block([\n            'Oops! I encountered an error.',\n            'Please go here and click the \"New issue\" button to report this error: '\n                . 'https://github.com/ramsey/php-library-starter-kit/issues',\n        ]);\n\n        $console->newLine();\n\n        return (int) $throwable->getCode() ?: 1;\n    }\n\n    public static function newApplication(): Application\n    {\n        return self::$application ?? new Application();\n    }\n\n    public static function start(Event $event): void\n    {\n        /** @var string $vendorDir */\n        $vendorDir = $event->getComposer()->getConfig()->get('vendor-dir');\n\n        $appPath = dirname($vendorDir);\n\n        $projectName = strtolower(basename((string) realpath($appPath)));\n        $projectName = (string) preg_replace('/[^a-z0-9]/', '-', $projectName);\n\n        $project = new Project($projectName, $appPath);\n        $setup = new Setup($project, $event, new Filesystem(), new Finder(), self::determineVerbosityLevel($event));\n\n        $command = new self($setup);\n\n        $application = self::newApplication();\n        $application->add($command);\n        $application->setDefaultCommand((string) $command->getName(), true);\n\n        $application->run(new StringInput(''));\n    }\n\n    /**\n     * @return OutputInterface::VERBOSITY_*\n     */\n    public static function determineVerbosityLevel(Event $event): int\n    {\n        if ($event->getIO()->isDebug()) {\n            return OutputInterface::VERBOSITY_DEBUG;\n        } elseif ($event->getIO()->isVeryVerbose()) {\n            return OutputInterface::VERBOSITY_VERY_VERBOSE;\n        } elseif ($event->getIO()->isVerbose()) {\n            return OutputInterface::VERBOSITY_VERBOSE;\n        }\n\n        return OutputInterface::VERBOSITY_NORMAL;\n    }\n}\n"
  },
  {
    "path": "tests/ExampleTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Vendor\\Test\\SubNamespace;\n\nuse Vendor\\SubNamespace\\Example;\n\nclass ExampleTest extends TestCase\n{\n    public function testGreet(): void\n    {\n        $example = $this->mockery(Example::class);\n        $example->shouldReceive('greet')->passthru();\n\n        $this->assertSame('Hello, Friends!', $example->greet('Friends'));\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/AnswersTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\n\nuse function json_encode;\n\nclass AnswersTest extends TestCase\n{\n    private Filesystem & MockInterface $filesystem;\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n\n        $this->filesystem = $this->mockery(Filesystem::class);\n    }\n\n    public function testGetTokens(): void\n    {\n        $this->filesystem->expects()->exists('/path/to/file.json')->andReturnFalse();\n\n        $answers = new Answers('/path/to/file.json', $this->filesystem);\n\n        $this->assertSame(\n            [\n                'authorEmail',\n                'authorHoldsCopyright',\n                'authorName',\n                'authorUrl',\n                'codeOfConduct',\n                'codeOfConductCommittee',\n                'codeOfConductEmail',\n                'codeOfConductPoliciesUrl',\n                'codeOfConductReportingUrl',\n                'copyrightEmail',\n                'copyrightHolder',\n                'copyrightUrl',\n                'copyrightYear',\n                'githubUsername',\n                'license',\n                'packageDescription',\n                'packageKeywords',\n                'packageName',\n                'packageNamespace',\n                'projectName',\n                'securityPolicy',\n                'securityPolicyContactEmail',\n                'securityPolicyContactFormUrl',\n                'skipPrompts',\n                'vendorName',\n            ],\n            $answers->getTokens(),\n        );\n    }\n\n    public function testGetValues(): void\n    {\n        $this->filesystem->expects()->exists('/path/to/file.json')->andReturnFalse();\n\n        $answers = new Answers('/path/to/file.json', $this->filesystem);\n\n        $this->assertSame(\n            [\n                null,\n                true,\n                null,\n                null,\n                'None',\n                null,\n                null,\n                null,\n                null,\n                null,\n                null,\n                null,\n                null,\n                null,\n                'Proprietary',\n                null,\n                [],\n                null,\n                null,\n                null,\n                true,\n                null,\n                null,\n                false,\n                null,\n            ],\n            $answers->getValues(),\n        );\n    }\n\n    public function testGetArrayCopy(): void\n    {\n        $this->filesystem->expects()->exists('/path/to/file.json')->andReturnFalse();\n\n        $answers = new Answers('/path/to/file.json', $this->filesystem);\n\n        $this->assertSame(\n            [\n                'authorEmail' => null,\n                'authorHoldsCopyright' => true,\n                'authorName' => null,\n                'authorUrl' => null,\n                'codeOfConduct' => 'None',\n                'codeOfConductCommittee' => null,\n                'codeOfConductEmail' => null,\n                'codeOfConductPoliciesUrl' => null,\n                'codeOfConductReportingUrl' => null,\n                'copyrightEmail' => null,\n                'copyrightHolder' => null,\n                'copyrightUrl' => null,\n                'copyrightYear' => null,\n                'githubUsername' => null,\n                'license' => 'Proprietary',\n                'packageDescription' => null,\n                'packageKeywords' => [],\n                'packageName' => null,\n                'packageNamespace' => null,\n                'projectName' => null,\n                'securityPolicy' => true,\n                'securityPolicyContactEmail' => null,\n                'securityPolicyContactFormUrl' => null,\n                'skipPrompts' => false,\n                'vendorName' => null,\n            ],\n            $answers->getArrayCopy(),\n        );\n    }\n\n    public function testLoadsExistingFileUponInstantiation(): void\n    {\n        $filesystem = new Filesystem();\n        $answers = new Answers(__DIR__ . '/answers-test.json', $filesystem);\n\n        $this->assertSame(\n            [\n                'authorEmail' => 'frodo@example.com',\n                'authorHoldsCopyright' => true,\n                'authorName' => 'Frodo Baggins',\n                'authorUrl' => 'https://example.com/the-fellowship/frodo',\n                'codeOfConduct' => 'Citizen-2.3',\n                'codeOfConductCommittee' => 'Council of the Wise',\n                'codeOfConductEmail' => 'council@example.com',\n                'codeOfConductPoliciesUrl' => 'https://example.com/the-fellowship/conduct-policies',\n                'codeOfConductReportingUrl' => 'https://example.com/the-fellowship/conduct-reporting',\n                'copyrightEmail' => 'fellowship@example.com',\n                'copyrightHolder' => 'The Fellowship',\n                'copyrightUrl' => 'https://example.com/the-fellowship',\n                'copyrightYear' => '2021',\n                'githubUsername' => 'frodo',\n                'license' => 'BSD-2-Clause',\n                'packageDescription' => 'A package to help you on your journey.',\n                'packageKeywords' => ['foo', 'bar'],\n                'packageName' => 'fellowship/ring',\n                'packageNamespace' => 'Fellowship\\\\Ring',\n                'projectName' => 'The Fellowship of the Ring',\n                'securityPolicy' => true,\n                'securityPolicyContactEmail' => 'security@example.com',\n                'securityPolicyContactFormUrl' => 'https://example.com/security',\n                'skipPrompts' => true,\n                'vendorName' => 'fellowship',\n            ],\n            $answers->getArrayCopy(),\n        );\n    }\n\n    public function testSaveToFile(): void\n    {\n        $this->filesystem->expects()->exists('/path/to/file.json')->andReturnFalse();\n\n        $this->filesystem->shouldReceive('dumpFile')->withArgs(\n            function (string $filename, string $content) {\n                $this->assertSame('/path/to/file.json', $filename);\n                $this->assertJsonStringEqualsJsonString(\n                    (string) json_encode([\n                        'authorEmail' => 'frodo@example.com',\n                        'authorHoldsCopyright' => true,\n                        'authorName' => 'Frodo Baggins',\n                        'authorUrl' => 'https://example.com/the-fellowship/frodo',\n                        'codeOfConduct' => 'Citizen-2.3',\n                        'codeOfConductCommittee' => 'Council of the Wise',\n                        'codeOfConductEmail' => 'council@example.com',\n                        'codeOfConductPoliciesUrl' => 'https://example.com/the-fellowship/conduct-policies',\n                        'codeOfConductReportingUrl' => 'https://example.com/the-fellowship/conduct-reporting',\n                        'copyrightEmail' => 'fellowship@example.com',\n                        'copyrightHolder' => 'The Fellowship',\n                        'copyrightUrl' => 'https://example.com/the-fellowship',\n                        'copyrightYear' => '2021',\n                        'githubUsername' => 'frodo',\n                        'license' => 'BSD-2-Clause',\n                        'packageDescription' => 'A package to help you on your journey.',\n                        'packageKeywords' => ['foo', 'bar'],\n                        'packageName' => 'fellowship/ring',\n                        'packageNamespace' => 'Fellowship\\\\Ring',\n                        'projectName' => 'The Fellowship of the Ring',\n                        'securityPolicy' => true,\n                        'securityPolicyContactEmail' => 'security@example.com',\n                        'securityPolicyContactFormUrl' => 'https://example.com/security',\n                        'skipPrompts' => false,\n                        'vendorName' => 'fellowship',\n                    ]),\n                    $content,\n                );\n\n                return true;\n            },\n        );\n\n        $answers = new Answers('/path/to/file.json', $this->filesystem);\n        $answers->authorEmail = 'frodo@example.com';\n        $answers->authorHoldsCopyright = true;\n        $answers->authorName = 'Frodo Baggins';\n        $answers->authorUrl = 'https://example.com/the-fellowship/frodo';\n        $answers->codeOfConduct = 'Citizen-2.3';\n        $answers->codeOfConductCommittee = 'Council of the Wise';\n        $answers->codeOfConductEmail = 'council@example.com';\n        $answers->codeOfConductPoliciesUrl = 'https://example.com/the-fellowship/conduct-policies';\n        $answers->codeOfConductReportingUrl = 'https://example.com/the-fellowship/conduct-reporting';\n        $answers->copyrightEmail = 'fellowship@example.com';\n        $answers->copyrightHolder = 'The Fellowship';\n        $answers->copyrightUrl = 'https://example.com/the-fellowship';\n        $answers->copyrightYear = '2021';\n        $answers->githubUsername = 'frodo';\n        $answers->license = 'BSD-2-Clause';\n        $answers->packageDescription = 'A package to help you on your journey.';\n        $answers->packageKeywords = ['foo', 'bar'];\n        $answers->packageName = 'fellowship/ring';\n        $answers->packageNamespace = 'Fellowship\\\\Ring';\n        $answers->projectName = 'The Fellowship of the Ring';\n        $answers->securityPolicy = true;\n        $answers->securityPolicyContactEmail = 'security@example.com';\n        $answers->securityPolicyContactFormUrl = 'https://example.com/security';\n        $answers->vendorName = 'fellowship';\n\n        $answers->saveToFile();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/InstallQuestionsTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\InstallQuestions;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\StarterKitQuestion;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nclass InstallQuestionsTest extends TestCase\n{\n    public function testGetQuestions(): void\n    {\n        $questions = new InstallQuestions();\n        $receivedQuestions = $questions->getQuestions($this->answers);\n\n        $this->assertContainsOnlyInstancesOf(Question::class, $receivedQuestions);\n        $this->assertContainsOnlyInstancesOf(StarterKitQuestion::class, $receivedQuestions);\n        $this->assertCount(23, $receivedQuestions);\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/AuthorEmailTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorEmail;\n\nclass AuthorEmailTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return AuthorEmail::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'authorEmail';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is your email address?';\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/AuthorHoldsCopyrightTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorHoldsCopyright;\n\nclass AuthorHoldsCopyrightTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return AuthorHoldsCopyright::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'authorHoldsCopyright';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Are you the copyright holder?';\n    }\n\n    protected function getQuestionDefault(): bool\n    {\n        return true;\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->authorHoldsCopyright = false;\n\n        $question = new AuthorHoldsCopyright($this->answers);\n\n        $this->assertFalse($question->getDefault());\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/AuthorNameTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorName;\n\nclass AuthorNameTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return AuthorName::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'authorName';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is your name?';\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/AuthorUrlTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\AuthorUrl;\n\nclass AuthorUrlTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return AuthorUrl::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'authorUrl';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is your website address?';\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CodeOfConductCommitteeTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductCommittee;\n\nclass CodeOfConductCommitteeTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CodeOfConductCommittee::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'codeOfConductCommittee';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the name of your group or committee who oversees code of conduct issues?';\n    }\n\n    public function testValidator(): void\n    {\n        $validator = (new CodeOfConductCommittee($this->answers))->getValidator();\n\n        $this->assertSame('The Big Committee', $validator('The Big Committee'));\n        $this->assertNull($validator(null));\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(string $choice, bool $expected): void\n    {\n        $question = new CodeOfConductCommittee($this->answers);\n\n        $this->answers->codeOfConduct = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: string, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => 'None',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-1.4',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.0',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.1',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Citizen-2.3',\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CodeOfConductEmailTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductEmail;\n\nclass CodeOfConductEmailTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CodeOfConductEmail::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'codeOfConductEmail';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What email address should people use to report code of conduct issues?';\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(string $choice, bool $expected): void\n    {\n        $question = new CodeOfConductEmail($this->answers);\n\n        $this->answers->codeOfConduct = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: string, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => 'None',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-1.4',\n                'expected' => false,\n            ],\n            [\n                'choice' => 'Contributor-2.0',\n                'expected' => false,\n            ],\n            [\n                'choice' => 'Contributor-2.1',\n                'expected' => false,\n            ],\n            [\n                'choice' => 'Citizen-2.3',\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CodeOfConductPoliciesUrlTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductPoliciesUrl;\n\nclass CodeOfConductPoliciesUrlTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CodeOfConductPoliciesUrl::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'codeOfConductPoliciesUrl';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'At what URL are your committee\\'s governing policies described?';\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(string $choice, bool $expected): void\n    {\n        $question = new CodeOfConductPoliciesUrl($this->answers);\n\n        $this->answers->codeOfConduct = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: string, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => 'None',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-1.4',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.0',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.1',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Citizen-2.3',\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CodeOfConductReportingUrlTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConductReportingUrl;\n\nclass CodeOfConductReportingUrlTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CodeOfConductReportingUrl::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'codeOfConductReportingUrl';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'At what URL are your code of conduct reporting guidelines described?';\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(string $choice, bool $expected): void\n    {\n        $question = new CodeOfConductReportingUrl($this->answers);\n\n        $this->answers->codeOfConduct = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: string, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => 'None',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-1.4',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.0',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Contributor-2.1',\n                'expected' => true,\n            ],\n            [\n                'choice' => 'Citizen-2.3',\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CodeOfConductTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nclass CodeOfConductTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CodeOfConduct::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'codeOfConduct';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Choose a code of conduct for your project';\n    }\n\n    protected function getQuestionDefault(): int\n    {\n        return 1;\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->codeOfConduct = 'Contributor-2.0';\n\n        $question = new CodeOfConduct($this->answers);\n\n        $this->assertSame(3, $question->getDefault());\n    }\n\n    public function testGetChoices(): void\n    {\n        $question = new CodeOfConduct($this->answers);\n\n        $this->assertSame(\n            [\n                1 => 'None',\n                2 => 'Contributor Covenant Code of Conduct, version 1.4',\n                3 => 'Contributor Covenant Code of Conduct, version 2.0',\n                4 => 'Contributor Covenant Code of Conduct, version 2.1',\n                5 => 'Citizen Code of Conduct, version 2.3',\n            ],\n            $question->getChoices(),\n        );\n    }\n\n    #[DataProvider('provideNormalizerTestValues')]\n    public function testNormalizer(?string $value, string $expected): void\n    {\n        $normalizer = (new CodeOfConduct($this->answers))->getNormalizer();\n\n        $this->assertSame($expected, $normalizer($value));\n    }\n\n    /**\n     * @return list<array{value: string | null, expected: string}>\n     */\n    public static function provideNormalizerTestValues(): array\n    {\n        return [\n            ['value' => '1', 'expected' => 'None'],\n            ['value' => '2', 'expected' => 'Contributor-1.4'],\n            ['value' => '3', 'expected' => 'Contributor-2.0'],\n            ['value' => '4', 'expected' => 'Contributor-2.1'],\n            ['value' => '5', 'expected' => 'Citizen-2.3'],\n            ['value' => 'None', 'expected' => 'None'],\n            ['value' => 'Contributor Covenant Code of Conduct, version 1.4', 'expected' => 'Contributor-1.4'],\n            ['value' => 'Contributor Covenant Code of Conduct, version 2.0', 'expected' => 'Contributor-2.0'],\n            ['value' => 'Contributor Covenant Code of Conduct, version 2.1', 'expected' => 'Contributor-2.1'],\n            ['value' => 'Citizen Code of Conduct, version 2.3', 'expected' => 'Citizen-2.3'],\n            ['value' => '6', 'expected' => '6'],\n            ['value' => null, 'expected' => ''],\n            ['value' => 'foo', 'expected' => 'foo'],\n        ];\n    }\n\n    #[DataProvider('provideValidValues')]\n    public function testValidator(string $value, ?string $expected): void\n    {\n        $validator = (new CodeOfConduct($this->answers))->getValidator();\n\n        $this->assertSame($expected, $validator($value));\n    }\n\n    /**\n     * @return list<array{value: string, expected: string | null}>\n     */\n    public static function provideValidValues(): array\n    {\n        return [\n            [\n                'value' => 'None',\n                'expected' => 'None',\n            ],\n            [\n                'value' => 'Contributor-1.4',\n                'expected' => 'Contributor-1.4',\n            ],\n            [\n                'value' => 'Contributor-2.0',\n                'expected' => 'Contributor-2.0',\n            ],\n            [\n                'value' => 'Contributor-2.1',\n                'expected' => 'Contributor-2.1',\n            ],\n            [\n                'value' => 'Citizen-2.3',\n                'expected' => 'Citizen-2.3',\n            ],\n        ];\n    }\n\n    #[DataProvider('provideInvalidValues')]\n    public function testValidatorThrowsExceptionForInvalidValues(?string $value, string $message): void\n    {\n        $validator = (new CodeOfConduct($this->answers))->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage($message);\n\n        $validator($value);\n    }\n\n    /**\n     * @return list<array{value: string | null, message: string}>\n     */\n    public static function provideInvalidValues(): array\n    {\n        return [\n            [\n                'value' => null,\n                'message' => '\"\" is not a valid code of conduct choice.',\n            ],\n            [\n                'value' => '   ',\n                'message' => '\"   \" is not a valid code of conduct choice.',\n            ],\n            [\n                'value' => 'foo',\n                'message' => '\"foo\" is not a valid code of conduct choice.',\n            ],\n            [\n                'value' => '6',\n                'message' => '\"6\" is not a valid code of conduct choice.',\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CopyrightEmailTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightEmail;\n\nclass CopyrightEmailTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CopyrightEmail::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'copyrightEmail';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the copyright holder\\'s email address?';\n    }\n\n    public function testGetDefaultWhenAuthorEmailIsSet(): void\n    {\n        $question = new CopyrightEmail($this->answers);\n\n        $this->answers->authorEmail = 'samwise@example.com';\n\n        $this->assertSame('samwise@example.com', $question->getDefault());\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(bool $choice, bool $expected): void\n    {\n        $question = new CopyrightEmail($this->answers);\n\n        $this->answers->authorHoldsCopyright = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: bool, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => false,\n                'expected' => false,\n            ],\n            [\n                'choice' => true,\n                'expected' => true,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CopyrightHolderTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightHolder;\n\nclass CopyrightHolderTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CopyrightHolder::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'copyrightHolder';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Who is the copyright holder?';\n    }\n\n    public function testGetDefaultWhenAuthorNameIsSet(): void\n    {\n        $question = new CopyrightHolder($this->answers);\n\n        $this->answers->authorName = 'Samwise Gamgee';\n\n        $this->assertSame('Samwise Gamgee', $question->getDefault());\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(bool $choice, bool $expected): void\n    {\n        $question = new CopyrightHolder($this->answers);\n\n        $this->answers->authorHoldsCopyright = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: bool, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => false,\n                'expected' => false,\n            ],\n            [\n                'choice' => true,\n                'expected' => true,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CopyrightUrlTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightUrl;\n\nclass CopyrightUrlTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CopyrightUrl::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'copyrightUrl';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the copyright holder\\'s website address?';\n    }\n\n    public function testGetDefaultWhenAuthorNameIsSet(): void\n    {\n        $question = new CopyrightUrl($this->answers);\n\n        $this->answers->authorUrl = 'https://example.com/copyright';\n\n        $this->assertSame('https://example.com/copyright', $question->getDefault());\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(bool $choice, bool $expected): void\n    {\n        $question = new CopyrightUrl($this->answers);\n\n        $this->answers->authorHoldsCopyright = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: bool, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => false,\n                'expected' => false,\n            ],\n            [\n                'choice' => true,\n                'expected' => true,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/CopyrightYearTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CopyrightYear;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nuse function date;\n\nclass CopyrightYearTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return CopyrightYear::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'copyrightYear';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the copyright year?';\n    }\n\n    public function testGetDefault(): void\n    {\n        $yearNow = date('Y');\n        $question = new CopyrightYear($this->answers);\n\n        $this->assertSame($yearNow, $question->getDefault());\n    }\n\n    public function testValidatorReturnsValidValue(): void\n    {\n        $validator = (new CopyrightYear($this->answers))->getValidator();\n\n        $this->assertSame('2017', $validator('2017'));\n    }\n\n    #[DataProvider('provideInvalidDateValues')]\n    public function testValidatorThrowsExceptionForInvalidValue(?string $value): void\n    {\n        $validator = (new CopyrightYear($this->answers))->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid, 4-digit year.');\n\n        $validator($value);\n    }\n\n    /**\n     * @return list<array{value: string | null}>\n     */\n    public static function provideInvalidDateValues(): array\n    {\n        return [\n            ['value' => null],\n            ['value' => '19'],\n            ['value' => 'foo'],\n            ['value' => 'YEAR'],\n            ['value' => '997'],\n            ['value' => '21201'],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/EmailValidatorToolTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\EmailValidatorTool;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\n\nclass EmailValidatorToolTest extends TestCase\n{\n    #[DataProvider('provideNullableValues')]\n    public function testValidatorThrowsExceptionForEmptyValuesWhenQuestionIsNotOptional(?string $value): void\n    {\n        $question = new class () {\n            use EmailValidatorTool;\n\n            public function __construct()\n            {\n                $this->isOptional = false;\n            }\n        };\n\n        $validator = $question->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid email address.');\n\n        $validator($value);\n    }\n\n    #[DataProvider('provideNullableValues')]\n    public function testValidatorReturnsNullWhenQuestionIsOptional(?string $value): void\n    {\n        $question = new class () {\n            use EmailValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->assertNull($validator($value));\n    }\n\n    /**\n     * @return list<array{value: string | null}>\n     */\n    public static function provideNullableValues(): array\n    {\n        return [\n            ['value' => null],\n            ['value' => ''],\n            ['value' => '    '],\n        ];\n    }\n\n    public function testValidatorReturnsValueWhenValid(): void\n    {\n        $question = new class () {\n            use EmailValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->assertSame('jane@example.com', $validator('jane@example.com'));\n    }\n\n    public function testValidatorThrowsExceptionWhenNotValid(): void\n    {\n        $question = new class () {\n            use EmailValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid email address.');\n\n        $validator('not-a-valid-address');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/GithubUsernameTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\GithubUsername;\n\nclass GithubUsernameTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return GithubUsername::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'githubUsername';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the GitHub username or org name for your package?';\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/LicenseTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\License;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nuse function array_map;\n\nclass LicenseTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return License::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'license';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Choose a license for your project';\n    }\n\n    protected function getQuestionDefault(): int\n    {\n        return 1;\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->license = 'MIT-0';\n\n        $question = new License($this->answers);\n\n        $this->assertSame(11, $question->getDefault());\n    }\n\n    public function testGetChoices(): void\n    {\n        $question = new License($this->answers);\n\n        $this->assertSame(\n            [\n                1 => 'Proprietary',\n                2 => 'Apache License 2.0',\n                3 => 'BSD 2-Clause \"Simplified\" License',\n                4 => 'BSD 3-Clause \"New\" or \"Revised\" License',\n                5 => 'Creative Commons Zero v1.0 Universal',\n                6 => 'GNU Affero General Public License v3.0 or later',\n                7 => 'GNU General Public License v3.0 or later',\n                8 => 'GNU Lesser General Public License v3.0 or later',\n                9 => 'Hippocratic License 2.1',\n                10 => 'MIT License',\n                11 => 'MIT No Attribution',\n                12 => 'Mozilla Public License 2.0',\n                13 => 'Unlicense',\n            ],\n            $question->getChoices(),\n        );\n    }\n\n    #[DataProvider('provideNormalizerTestValues')]\n    public function testNormalizer(?string $value, string $expected): void\n    {\n        $normalizer = (new License($this->answers))->getNormalizer();\n\n        $this->assertSame($expected, $normalizer($value));\n    }\n\n    /**\n     * @return list<array{value: string | null, expected: string}>\n     */\n    public static function provideNormalizerTestValues(): array\n    {\n        return [\n            ['value' => '1', 'expected' => 'Proprietary'],\n            ['value' => '2', 'expected' => 'Apache-2.0'],\n            ['value' => '3', 'expected' => 'BSD-2-Clause'],\n            ['value' => '4', 'expected' => 'BSD-3-Clause'],\n            ['value' => '5', 'expected' => 'CC0-1.0'],\n            ['value' => '6', 'expected' => 'AGPL-3.0-or-later'],\n            ['value' => '7', 'expected' => 'GPL-3.0-or-later'],\n            ['value' => '8', 'expected' => 'LGPL-3.0-or-later'],\n            ['value' => '9', 'expected' => 'Hippocratic-2.1'],\n            ['value' => '10', 'expected' => 'MIT'],\n            ['value' => '11', 'expected' => 'MIT-0'],\n            ['value' => '12', 'expected' => 'MPL-2.0'],\n            ['value' => '13', 'expected' => 'Unlicense'],\n            ['value' => 'Proprietary', 'expected' => 'Proprietary'],\n            ['value' => 'Apache License 2.0', 'expected' => 'Apache-2.0'],\n            ['value' => 'BSD 2-Clause \"Simplified\" License', 'expected' => 'BSD-2-Clause'],\n            ['value' => 'BSD 3-Clause \"New\" or \"Revised\" License', 'expected' => 'BSD-3-Clause'],\n            ['value' => 'Creative Commons Zero v1.0 Universal', 'expected' => 'CC0-1.0'],\n            ['value' => 'GNU Affero General Public License v3.0 or later', 'expected' => 'AGPL-3.0-or-later'],\n            ['value' => 'GNU General Public License v3.0 or later', 'expected' => 'GPL-3.0-or-later'],\n            ['value' => 'GNU Lesser General Public License v3.0 or later', 'expected' => 'LGPL-3.0-or-later'],\n            ['value' => 'Hippocratic License 2.1', 'expected' => 'Hippocratic-2.1'],\n            ['value' => 'MIT License', 'expected' => 'MIT'],\n            ['value' => 'MIT No Attribution', 'expected' => 'MIT-0'],\n            ['value' => 'Mozilla Public License 2.0', 'expected' => 'MPL-2.0'],\n            ['value' => 'Unlicense', 'expected' => 'Unlicense'],\n            ['value' => '14', 'expected' => '14'],\n            ['value' => null, 'expected' => ''],\n            ['value' => 'foo', 'expected' => 'foo'],\n        ];\n    }\n\n    #[DataProvider('provideValidValues')]\n    public function testValidator(string $value): void\n    {\n        $validator = (new License($this->answers))->getValidator();\n\n        $this->assertSame($value, $validator($value));\n    }\n\n    /**\n     * @return array<array{0: string}>\n     */\n    public static function provideValidValues(): array\n    {\n        return array_map(fn (string $v): array => [$v], License::CHOICE_IDENTIFIER_MAP);\n    }\n\n    #[DataProvider('provideInvalidValues')]\n    public function testValidatorThrowsExceptionForInvalidValues(?string $value, string $message): void\n    {\n        $validator = (new License($this->answers))->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage($message);\n\n        $validator($value);\n    }\n\n    /**\n     * @return array<array{value: string | null, message: string}>\n     */\n    public static function provideInvalidValues(): array\n    {\n        return [\n            [\n                'value' => null,\n                'message' => '\"\" is not a valid license choice.',\n            ],\n            [\n                'value' => '   ',\n                'message' => '\"   \" is not a valid license choice.',\n            ],\n            [\n                'value' => 'foo',\n                'message' => '\"foo\" is not a valid license choice.',\n            ],\n            [\n                'value' => '14',\n                'message' => '\"14\" is not a valid license choice.',\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/PackageDescriptionTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageDescription;\n\nclass PackageDescriptionTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return PackageDescription::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'packageDescription';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Enter a brief description of your library';\n    }\n\n    public function testValidator(): void\n    {\n        $validator = (new PackageDescription($this->answers))->getValidator();\n\n        $this->assertSame(\n            'A brief description of my library.',\n            $validator('A brief description of my library.'),\n        );\n        $this->assertNull($validator(null));\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/PackageKeywordsTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageKeywords;\n\nclass PackageKeywordsTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return PackageKeywords::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'packageKeywords';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Enter a set of comma-separated keywords describing your library';\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->packageKeywords = ['foo', 'bar', 'baz'];\n\n        $question = new PackageKeywords($this->answers);\n\n        $this->assertSame('foo,bar,baz', $question->getDefault());\n    }\n\n    /**\n     * @param string[] $expected\n     */\n    #[DataProvider('provideNormalizerTestValues')]\n    public function testNormalizer(?string $value, array $expected): void\n    {\n        $normalizer = (new PackageKeywords($this->answers))->getNormalizer();\n\n        $this->assertSame($expected, $normalizer($value));\n    }\n\n    /**\n     * @return list<array{value: string | null, expected: string[]}>\n     */\n    public static function provideNormalizerTestValues(): array\n    {\n        return [\n            [\n                'value' => null,\n                'expected' => [],\n            ],\n            [\n                'value' => '    ',\n                'expected' => [],\n            ],\n            [\n                'value' => 'foo, bar , ,   ,,,,   ,baz ,,quux,,',\n                'expected' => [\n                    'foo',\n                    'bar',\n                    'baz',\n                    'quux',\n                ],\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/PackageNameTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageName;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nclass PackageNameTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return PackageName::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'packageName';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is your package name?';\n    }\n\n    public function testDefaultWithVendorAndProjectNames(): void\n    {\n        $question = new PackageName($this->answers);\n\n        $this->answers->vendorName = 'frodo';\n        $this->answers->projectName = 'fellowship';\n\n        $this->assertSame('frodo/fellowship', $question->getDefault());\n    }\n\n    public function testValidator(): void\n    {\n        $validator = (new PackageName($this->answers))->getValidator();\n\n        $this->assertSame('foo/bar', $validator('foo/bar'));\n    }\n\n    public function testValidatorWithVendorPrefix(): void\n    {\n        $validator = (new PackageName($this->answers))->getValidator();\n\n        $this->answers->vendorName = 'frodo';\n\n        $this->assertSame('frodo/fellowship-of-the-ring', $validator('frodo/fellowship-of-the-ring'));\n    }\n\n    public function testValidatorWithoutVendorPrefix(): void\n    {\n        $validator = (new PackageName($this->answers))->getValidator();\n\n        $this->answers->vendorName = 'frodo';\n\n        $this->assertSame('frodo/fellowship_ring', $validator('fellowship_ring'));\n    }\n\n    #[DataProvider('provideInvalidPackageNames')]\n    public function testValidatorThrowsExceptionForInvalidPackageNames(?string $value, ?string $vendorName): void\n    {\n        $validator = (new PackageName($this->answers))->getValidator();\n\n        $this->answers->vendorName = $vendorName;\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid package name.');\n\n        $validator($value);\n    }\n\n    /**\n     * @return list<array{value: string | null, vendorName: string | null}>\n     */\n    public static function provideInvalidPackageNames(): array\n    {\n        return [\n            [\n                'value' => null,\n                'vendorName' => null,\n            ],\n            [\n                'value' => '    ',\n                'vendorName' => null,\n            ],\n            [\n                'value' => 'foo/bar/baz',\n                'vendorName' => null,\n            ],\n            [\n                'value' => null,\n                'vendorName' => 'foo',\n            ],\n            [\n                'value' => 'bar/baz',\n                'vendorName' => 'foo',\n            ],\n            [\n                'value' => 'bar---baz',\n                'vendorName' => 'foo',\n            ],\n            [\n                'value' => '_bar',\n                'vendorName' => 'foo',\n            ],\n            [\n                'value' => 'bar',\n                'vendorName' => '-foo',\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/PackageNamespaceTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\PackageNamespace;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nclass PackageNamespaceTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return PackageNamespace::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'packageNamespace';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is the library\\'s root namespace? (e.g., Foo\\\\Bar\\\\Baz)';\n    }\n\n    public function testDefaultWithEmptyPackageName(): void\n    {\n        $question = new PackageNamespace($this->answers);\n\n        $this->answers->packageName = '    ';\n\n        $this->assertNull($question->getDefault());\n    }\n\n    public function testDefaultWithPackageName(): void\n    {\n        $question = new PackageNamespace($this->answers);\n\n        $this->answers->packageName = 'frodo/fellowship-of-the-ring';\n\n        $this->assertSame('Frodo\\\\Fellowship\\\\Of\\\\The\\\\Ring', $question->getDefault());\n        $this->assertSame('What is the library\\'s root namespace?', $question->getQuestion());\n    }\n\n    public function testDefaultWithOddlyNamedPackageName(): void\n    {\n        $question = new PackageNamespace($this->answers);\n\n        $this->answers->packageName = 'foo/1bar-2baz';\n\n        $this->assertSame('Foo\\\\Bar\\\\Baz', $question->getDefault());\n        $this->assertSame('What is the library\\'s root namespace?', $question->getQuestion());\n    }\n\n    public function testValidator(): void\n    {\n        $validator = (new PackageNamespace($this->answers))->getValidator();\n\n        $this->assertSame('Foo\\\\Bar\\\\Baz\\\\Quux', $validator('Foo\\\\Bar\\\\Baz\\\\Quux'));\n    }\n\n    public function testValidatorThrowsExceptionForInvalidNamespaceName(): void\n    {\n        $validator = (new PackageNamespace($this->answers))->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid library namespace.');\n\n        $validator('1Foo');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/QuestionTestCase.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\StarterKitQuestion;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nabstract class QuestionTestCase extends TestCase\n{\n    /**\n     * @return class-string<StarterKitQuestion & Question>\n     */\n    abstract protected function getTestClass(): string;\n\n    abstract protected function getQuestionName(): string;\n\n    abstract protected function getQuestionText(): string;\n\n    protected function getQuestionDefault(): mixed\n    {\n        return null;\n    }\n\n    public function testGetName(): void\n    {\n        $questionClass = $this->getTestClass();\n\n        /** @phpstan-ignore-next-line */\n        $question = new $questionClass($this->answers);\n\n        $this->assertSame($this->getQuestionName(), $question->getName());\n    }\n\n    public function testGetQuestion(): void\n    {\n        $questionClass = $this->getTestClass();\n\n        /** @phpstan-ignore-next-line */\n        $question = new $questionClass($this->answers);\n\n        $this->assertSame($this->getQuestionText(), $question->getQuestion());\n    }\n\n    public function testGetAnswers(): void\n    {\n        $questionClass = $this->getTestClass();\n\n        /** @phpstan-ignore-next-line */\n        $question = new $questionClass($this->answers);\n\n        $this->assertSame($this->answers, $question->getAnswers());\n    }\n\n    public function testGetDefault(): void\n    {\n        $questionClass = $this->getTestClass();\n\n        /** @phpstan-ignore-next-line */\n        $question = new $questionClass($this->answers);\n\n        $this->assertSame($this->getQuestionDefault(), $question->getDefault());\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->{$this->getQuestionName()} = 'foobar';\n\n        $questionClass = $this->getTestClass();\n\n        /** @phpstan-ignore-next-line */\n        $question = new $questionClass($this->answers);\n\n        $this->assertSame('foobar', $question->getDefault());\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/SecurityPolicyContactEmailTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicyContactEmail;\n\nclass SecurityPolicyContactEmailTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return SecurityPolicyContactEmail::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'securityPolicyContactEmail';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What email address should researchers use to submit vulnerability reports?';\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(bool $choice, bool $expected): void\n    {\n        $question = new SecurityPolicyContactEmail($this->answers);\n\n        $this->answers->securityPolicy = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: bool, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => false,\n                'expected' => true,\n            ],\n            [\n                'choice' => true,\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/SecurityPolicyContactFormUrlTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicyContactFormUrl;\n\nclass SecurityPolicyContactFormUrlTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return SecurityPolicyContactFormUrl::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'securityPolicyContactFormUrl';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'At what URL should researchers submit vulnerability reports?';\n    }\n\n    #[DataProvider('provideSkipValues')]\n    public function testShouldSkip(bool $choice, bool $expected): void\n    {\n        $question = new SecurityPolicyContactFormUrl($this->answers);\n\n        $this->answers->securityPolicy = $choice;\n\n        $this->assertSame($expected, $question->shouldSkip());\n    }\n\n    /**\n     * @return list<array{choice: bool, expected: bool}>\n     */\n    public static function provideSkipValues(): array\n    {\n        return [\n            [\n                'choice' => false,\n                'expected' => true,\n            ],\n            [\n                'choice' => true,\n                'expected' => false,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/SecurityPolicyTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SecurityPolicy;\n\nclass SecurityPolicyTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return SecurityPolicy::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'securityPolicy';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'Do you want to include a security policy?';\n    }\n\n    protected function getQuestionDefault(): bool\n    {\n        return true;\n    }\n\n    public function testGetDefaultWhenAnswerAlreadySet(): void\n    {\n        $this->answers->securityPolicy = false;\n\n        $question = new SecurityPolicy($this->answers);\n\n        $this->assertFalse($question->getDefault());\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/UrlValidatorToolTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\UrlValidatorTool;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\n\nclass UrlValidatorToolTest extends TestCase\n{\n    #[DataProvider('provideNullableValues')]\n    public function testValidatorThrowsExceptionForEmptyValuesWhenQuestionIsNotOptional(?string $value): void\n    {\n        $question = new class () {\n            use UrlValidatorTool;\n\n            public function __construct()\n            {\n                $this->isOptional = false;\n            }\n        };\n\n        $validator = $question->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid URL, beginning with \"http://\" or \"https://\".');\n\n        $validator($value);\n    }\n\n    #[DataProvider('provideNullableValues')]\n    public function testValidatorReturnsNullWhenQuestionIsOptional(?string $value): void\n    {\n        $question = new class () {\n            use UrlValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->assertNull($validator($value));\n    }\n\n    /**\n     * @return list<array{value: string | null}>\n     */\n    public static function provideNullableValues(): array\n    {\n        return [\n            ['value' => null],\n            ['value' => ''],\n            ['value' => '    '],\n        ];\n    }\n\n    public function testValidatorReturnsValueWhenValid(): void\n    {\n        $question = new class () {\n            use UrlValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->assertSame('https://example.com', $validator('https://example.com'));\n    }\n\n    public function testValidatorThrowsExceptionWhenNotValid(): void\n    {\n        $question = new class () {\n            use UrlValidatorTool;\n        };\n\n        $validator = $question->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid URL, beginning with \"http://\" or \"https://\".');\n\n        $validator('ftp://example.com');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/Question/VendorNameTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\VendorName;\nuse Ramsey\\Dev\\LibraryStarterKit\\Exception\\InvalidConsoleInput;\n\nclass VendorNameTest extends QuestionTestCase\n{\n    protected function getTestClass(): string\n    {\n        return VendorName::class;\n    }\n\n    protected function getQuestionName(): string\n    {\n        return 'vendorName';\n    }\n\n    protected function getQuestionText(): string\n    {\n        return 'What is your package vendor name?';\n    }\n\n    public function testGetDefaultWhenGitHubNameProvided(): void\n    {\n        $question = new VendorName($this->answers);\n\n        $this->answers->githubUsername = 'foobar';\n\n        $this->assertSame('foobar', $question->getDefault());\n    }\n\n    public function testValidatorReturnsValidValue(): void\n    {\n        $validator = (new VendorName($this->answers))->getValidator();\n\n        $this->assertSame('foo-bar-baz', $validator('foo-bar-baz'));\n    }\n\n    #[DataProvider('provideInvalidValues')]\n    public function testValidatorThrowsExceptionForInvalidValue(?string $value): void\n    {\n        $validator = (new VendorName($this->answers))->getValidator();\n\n        $this->expectException(InvalidConsoleInput::class);\n        $this->expectExceptionMessage('You must enter a valid vendor name.');\n\n        $validator($value);\n    }\n\n    /**\n     * @return list<array{value: string | null}>\n     */\n    public static function provideInvalidValues(): array\n    {\n        return [\n            ['value' => null],\n            ['value' => '   '],\n            ['value' => 'foo---bar'],\n            ['value' => 'foo/bar'],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Console/StyleFactoryTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Console;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\StyleFactory;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nclass StyleFactoryTest extends TestCase\n{\n    public function testFactory(): void\n    {\n        $input = new ArgvInput([]);\n        $output = new NullOutput();\n        $factory = new StyleFactory();\n        $style = $factory->factory($input, $output);\n\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(SymfonyStyle::class, $style);\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/FilesystemTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nclass FilesystemTest extends TestCase\n{\n    public function testGetFile(): void\n    {\n        $filesystem = new Filesystem();\n        $file = $filesystem->getFile(__FILE__);\n\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(SplFileInfo::class, $file);\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/ProjectTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Project;\n\nclass ProjectTest extends TestCase\n{\n    public function testProject(): void\n    {\n        $project = new Project('project-name', '/path/to/project');\n\n        $this->assertSame('project-name', $project->getName());\n        $this->assertSame('/path/to/project', $project->getPath());\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/SetupTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Composer\\IO\\IOInterface;\nuse Composer\\Script\\Event;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Project;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Process\\Process;\nuse Twig\\Environment as TwigEnvironment;\n\nuse function dirname;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass SetupTest extends TestCase\n{\n    private string $appPath;\n    private Setup $setup;\n\n    public function setUp(): void\n    {\n        parent::setUp();\n\n        $this->appPath = dirname(__FILE__, 3);\n\n        /** @var Event & MockInterface $event */\n        $event = $this->mockery(Event::class, [\n            'getIO' => $this->mockery(IOInterface::class),\n        ]);\n\n        /** @var Filesystem & MockInterface $filesystem */\n        $filesystem = $this->mockery(Filesystem::class);\n\n        /** @var Finder & MockInterface $finder */\n        $finder = $this->mockery(Finder::class);\n        $finder->shouldReceive('create')->andReturn(clone $finder);\n\n        $project = new Project('a-project-name', $this->appPath);\n\n        $this->setup = new Setup(\n            $project,\n            $event,\n            $filesystem,\n            $finder,\n            OutputInterface::VERBOSITY_NORMAL,\n        );\n    }\n\n    public function testGetAppPath(): void\n    {\n        $this->assertIsString($this->setup->getAppPath());\n    }\n\n    public function testGetEvent(): void\n    {\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(Event::class, $this->setup->getEvent());\n    }\n\n    public function testGetFilesystem(): void\n    {\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(Filesystem::class, $this->setup->getFilesystem());\n    }\n\n    public function testGetFinder(): void\n    {\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(Finder::class, $this->setup->getFinder());\n    }\n\n    public function testGetProjectName(): void\n    {\n        $this->assertSame('a-project-name', $this->setup->getProjectName());\n    }\n\n    public function testGetVerbosity(): void\n    {\n        $this->assertSame(OutputInterface::VERBOSITY_NORMAL, $this->setup->getVerbosity());\n    }\n\n    public function testGetBuild(): void\n    {\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = $this->setup->getBuild($console, $this->answers);\n\n        $this->assertSame($this->answers, $build->getAnswers());\n        $this->assertSame($console, $build->getConsole());\n        $this->assertSame($this->setup, $build->getSetup());\n    }\n\n    public function testGetTwigEnvironment(): void\n    {\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(TwigEnvironment::class, $this->setup->getTwigEnvironment());\n    }\n\n    public function testRun(): void\n    {\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = $this->mockery(Build::class);\n        $build->expects()->run();\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class, [\n            'getBuild' => $build,\n        ]);\n        $setup->shouldReceive('run')->passthru();\n\n        $setup->run($console, $this->answers);\n    }\n\n    public function testGetProcessForCommand(): void\n    {\n        $process = $this->setup->getProcess(['ls', '-la']);\n\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(Process::class, $process);\n    }\n\n    public function testPath(): void\n    {\n        $this->assertSame(\n            $this->appPath . DIRECTORY_SEPARATOR . 'foobar',\n            $this->setup->path('foobar'),\n        );\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/SnapshotsTool.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse ReflectionClass;\nuse Spatie\\Snapshots\\MatchesSnapshots;\n\nuse function preg_replace;\n\ntrait SnapshotsTool\n{\n    use MatchesSnapshots;\n\n    protected function getSnapshotId(): string\n    {\n        $snapshotId = (new ReflectionClass($this))->getShortName()\n            . '__'\n            . $this->nameWithDataSet()\n            . '__'\n            . $this->snapshotIncrementor;\n\n        return (string) preg_replace('/[^0-9a-z]/i', '_', $snapshotId);\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/BuildTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nclass BuildTest extends TestCase\n{\n    public function testGetAnswers(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = new Build($setup, $console, $this->answers);\n\n        $this->assertSame($this->answers, $build->getAnswers());\n    }\n\n    public function testGetSetup(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = new Build($setup, $console, $this->answers);\n\n        $this->assertSame($setup, $build->getSetup());\n    }\n\n    public function testGetConsole(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = new Build($setup, $console, $this->answers);\n\n        $this->assertSame($console, $build->getConsole());\n    }\n\n    public function testGetBuilders(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        /** @var SymfonyStyle & MockInterface $console */\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $build = new Build($setup, $console, $this->answers);\n\n        $builders = $build->getBuilders();\n\n        $this->assertContainsOnlyInstancesOf(Builder::class, $builders);\n        $this->assertCount(16, $builders);\n    }\n\n    public function testRun(): void\n    {\n        $builder1 = $this->mockery(Builder::class);\n        $builder1->expects()->build();\n\n        $builder2 = $this->mockery(Builder::class);\n        $builder2->expects()->build();\n\n        $builder3 = $this->mockery(Builder::class);\n        $builder3->expects()->build();\n\n        $build = $this->mockery(Build::class, [\n            'getBuilders' => [\n                $builder1,\n                $builder2,\n                $builder3,\n            ],\n        ]);\n\n        $build->shouldReceive('run')->passthru();\n\n        $build->run();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/CleanupTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\Cleanup;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass CleanupTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n\n        $console->expects()->section('Cleaning up...');\n        $console->expects()->text(\n            '<comment>  - Deleted \\'/path/to/app/resources' . DIRECTORY_SEPARATOR . 'templates\\'.</comment>',\n        );\n        $console->expects()->text(\n            '<comment>  - Deleted \\'/path/to/app/src' . DIRECTORY_SEPARATOR . 'LibraryStarterKit\\'.</comment>',\n        );\n        $console->expects()->text(\n            '<comment>  - Deleted \\'/path/to/app/tests' . DIRECTORY_SEPARATOR . 'LibraryStarterKit\\'.</comment>',\n        );\n        $console->expects()->text(\n            '<comment>  - Deleted \\'/path/to/app/.git\\'.</comment>',\n        );\n        $console->expects()->text(\n            '<comment>  - Deleted \\'/path/to/app/.starter-kit-answers\\'.</comment>',\n        );\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->remove('/path/to/app/resources' . DIRECTORY_SEPARATOR . 'templates');\n        $filesystem->expects()->remove('/path/to/app/src' . DIRECTORY_SEPARATOR . 'LibraryStarterKit');\n        $filesystem->expects()->remove('/path/to/app/tests' . DIRECTORY_SEPARATOR . 'LibraryStarterKit');\n        $filesystem->expects()->remove('/path/to/app/.git');\n        $filesystem->expects()->remove('/path/to/app/.starter-kit-answers');\n\n        $environment = $this->mockery(Setup::class, [\n            'getFilesystem' => $filesystem,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getSetup' => $environment,\n            'getConsole' => $console,\n        ]);\n\n        $builder = new Cleanup($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/FixStyleTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Hamcrest\\Type\\IsCallable;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\FixStyle;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Process\\Process;\n\nclass FixStyleTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Fixing style issues...');\n\n        $process = $this->mockery(Process::class);\n        $process->expects()->mustRun(new IsCallable());\n\n        $environment = $this->mockery(Setup::class);\n\n        $environment\n            ->expects()\n            ->getProcess(['composer', 'dev:lint:fix'])\n            ->andReturn($process);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new FixStyle($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/InstallDependenciesTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Hamcrest\\Type\\IsCallable;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\InstallDependencies;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Process\\Process;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass InstallDependenciesTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Installing dependencies');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->remove([\n            '/path/to/app' . DIRECTORY_SEPARATOR . 'composer.lock',\n            '/path/to/app' . DIRECTORY_SEPARATOR . 'vendor',\n        ]);\n\n        $process = $this->mockery(Process::class);\n        $process->expects()->mustRun(new IsCallable());\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFileSystem' => $filesystem,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app' . DIRECTORY_SEPARATOR . $path);\n\n        $environment\n            ->expects()\n            ->getProcess([\n                'composer',\n                'update',\n                '--no-interaction',\n                '--ansi',\n                '--no-progress',\n            ])\n            ->andReturn($process);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getSetup' => $environment,\n            'getConsole' => $console,\n        ]);\n\n        $builder = new InstallDependencies($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/RenameTemplatesTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse ArrayObject;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\RenameTemplates;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function implode;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass RenameTemplatesTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $pathParts = [\n            'path',\n            'to',\n            'a',\n            'filename.template',\n        ];\n\n        $expectedPathParts = [\n            'path',\n            'to',\n            'a',\n            'filename',\n        ];\n\n        $path = implode(DIRECTORY_SEPARATOR, $pathParts);\n        $expectedPath = implode(DIRECTORY_SEPARATOR, $expectedPathParts);\n\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Renaming template files');\n        $console->expects()->text(\"<comment>  - Renaming '{$path}' to '{$expectedPath}'.</comment>\");\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->rename($path, $expectedPath);\n\n        $file1 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => $path,\n        ]);\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([$file1]))->getIterator(),\n        ]);\n\n        $finder->expects()->ignoreDotFiles(false)->andReturnSelf();\n        $finder->expects()->exclude(['build', 'vendor'])->andReturnSelf();\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->name('*.template')->andReturnSelf();\n        $finder->expects()->name('.*.template');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFileSystem' => $filesystem,\n            'getFinder' => $finder,\n        ]);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getSetup' => $environment,\n            'getConsole' => $console,\n        ]);\n\n        $renameTemplates = new RenameTemplates($build);\n\n        $renameTemplates->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/RunTestsTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Hamcrest\\Type\\IsCallable;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\RunTests;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Process\\Process;\n\nclass RunTestsTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Running project tests...');\n\n        $process = $this->mockery(Process::class);\n        $process->expects()->mustRun(new IsCallable());\n\n        $environment = $this->mockery(Setup::class);\n\n        $environment\n            ->expects()\n            ->getProcess(['composer', 'dev:test:all'])\n            ->andReturn($process);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new RunTests($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/SetupRepositoryTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Closure;\nuse Hamcrest\\Type\\IsCallable;\nuse Mockery\\MockInterface;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\SetupRepository;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Process\\Process;\n\nuse function sprintf;\n\nclass SetupRepositoryTest extends TestCase\n{\n    /**\n     * @return list<array{\n     *     configUserName: string,\n     *     configUserEmail: string,\n     *     configDefaultBranch: string,\n     *     authorName: string,\n     *     authorEmail: string,\n     *     expectedName: string,\n     *     expectedEmail: string,\n     *     expectedDefaultBranch: string,\n     * }>\n     */\n    public static function buildProvider(): array\n    {\n        return [\n            [\n                'configUserName' => 'Jane Doe',\n                'configUserEmail' => 'jdoe@example.com',\n                'configDefaultBranch' => '',\n                'authorName' => 'Jane Doe',\n                'authorEmail' => 'jdoe@example.com',\n                'expectedName' => 'Jane Doe',\n                'expectedEmail' => 'jdoe@example.com',\n                'expectedDefaultBranch' => 'main',\n            ],\n            [\n                'configUserName' => '',\n                'configUserEmail' => '',\n                'configDefaultBranch' => 'my-custom-branch-name',\n                'authorName' => 'Jane Doe',\n                'authorEmail' => 'jdoe@example.com',\n                'expectedName' => 'Jane Doe',\n                'expectedEmail' => 'jdoe@example.com',\n                'expectedDefaultBranch' => 'my-custom-branch-name',\n            ],\n            [\n                'configUserName' => 'Frodo Baggins',\n                'configUserEmail' => '',\n                'configDefaultBranch' => '',\n                'authorName' => 'Jane Doe',\n                'authorEmail' => 'jdoe@example.com',\n                'expectedName' => 'Jane Doe',\n                'expectedEmail' => 'jdoe@example.com',\n                'expectedDefaultBranch' => 'main',\n            ],\n            [\n                'configUserName' => '',\n                'configUserEmail' => 'frodo@example.com',\n                'configDefaultBranch' => '',\n                'authorName' => 'Jane Doe',\n                'authorEmail' => 'jdoe@example.com',\n                'expectedName' => 'Jane Doe',\n                'expectedEmail' => 'jdoe@example.com',\n                'expectedDefaultBranch' => 'main',\n            ],\n            [\n                'configUserName' => 'Samwise Gamgee',\n                'configUserEmail' => 'samwise@example.com',\n                'configDefaultBranch' => 'default',\n                'authorName' => 'Jane Doe',\n                'authorEmail' => 'jdoe@example.com',\n                'expectedName' => 'Jane Doe',\n                'expectedEmail' => 'jdoe@example.com',\n                'expectedDefaultBranch' => 'default',\n            ],\n        ];\n    }\n\n    #[DataProvider('buildProvider')]\n    public function testBuild(\n        string $configUserName,\n        string $configUserEmail,\n        string $configDefaultBranch,\n        string $authorName,\n        string $authorEmail,\n        string $expectedName,\n        string $expectedEmail,\n        string $expectedDefaultBranch,\n    ): void {\n        $this->answers->authorName = $authorName;\n        $this->answers->authorEmail = $authorEmail;\n\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Setting up Git repository');\n        $console->expects()->write('a string to write to the console');\n\n        $processConfigUserName = $this->mockery(Process::class);\n        $processConfigUserName->expects()->run()->andReturn($configUserName ? 0 : 1);\n        $processConfigUserName->expects()->getOutput()->andReturn($configUserName);\n\n        $processConfigUserEmail = $this->mockery(Process::class);\n        $processConfigUserEmail->expects()->run()->andReturn($configUserEmail ? 0 : 1);\n        $processConfigUserEmail->expects()->getOutput()->andReturn($configUserEmail);\n\n        $processDefaultBranch = $this->mockery(Process::class);\n        $processDefaultBranch->expects()->run()->andReturn($configDefaultBranch ? 0 : 1);\n        $processDefaultBranch->expects()->getOutput()->andReturn($configDefaultBranch);\n\n        $processMustRun = $this->mockery(Process::class);\n        $processMustRun->expects()->mustRun();\n\n        $processMustRunWithCallable = $this->mockery(Process::class);\n        $processMustRunWithCallable->shouldReceive('mustRun')->with(new IsCallable())->atLeast()->times(4);\n\n        $environment = $this->mockery(Setup::class);\n\n        $environment\n            ->expects()\n            ->path('vendor')\n            ->andReturn('/path/to/vendor');\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'config', 'user.name'])\n            ->andReturn($processConfigUserName);\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'config', 'user.email'])\n            ->andReturn($processConfigUserEmail);\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'config', 'init.defaultBranch'])\n            ->andReturn($processDefaultBranch);\n\n        $processMustRunWritesOutput = $this->mockery(Process::class);\n        $processMustRunWritesOutput\n            ->shouldReceive('mustRun')\n            ->once()\n            ->withArgs(function (Closure $consoleWriter): bool {\n                $consoleWriter('out', 'a string to write to the console');\n\n                return true;\n            });\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'init'])\n            ->andReturn($processMustRunWritesOutput);\n\n        if ($configUserName !== $authorName) {\n            $environment\n                ->expects()\n                ->getProcess(['git', 'config', 'user.name', $expectedName])\n                ->andReturn($processMustRunWithCallable);\n        }\n\n        if ($configUserEmail !== $authorEmail) {\n            $environment\n                ->expects()\n                ->getProcess(['git', 'config', 'user.email', $expectedEmail])\n                ->andReturn($processMustRunWithCallable);\n        }\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'branch', '-M', $expectedDefaultBranch])\n            ->andReturn($processMustRunWithCallable);\n\n        $environment\n            ->expects()\n            ->getProcess(['/path/to/vendor/bin/captainhook', 'install', '--force', '--skip-existing'])\n            ->andReturn($processMustRunWithCallable);\n\n        $environment\n            ->expects()\n            ->getProcess(['composer', 'dev:build:clean'])\n            ->andReturn($processMustRun);\n\n        $environment\n            ->expects()\n            ->getProcess(['git', 'add', '--all'])\n            ->andReturn($processMustRunWithCallable);\n\n        $environment\n            ->expects()\n            ->getProcess([\n                'git',\n                'commit',\n                '-n',\n                '-m',\n                'chore: initialize project using ramsey/php-library-starter-kit',\n                '--author',\n                sprintf('%s <%s>', $expectedName, $expectedEmail),\n            ])\n            ->andReturn($processMustRunWithCallable);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new SetupRepository($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateChangelogTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateChangelog;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nclass UpdateChangelogTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating CHANGELOG.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/CHANGELOG.md', $path);\n                $this->assertSame('changelogContents', $contents);\n\n                return true;\n            });\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render('CHANGELOG.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('changelogContents');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateChangelog($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateCodeOfConductTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateCodeOfConduct;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass UpdateCodeOfConductTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating CODE_OF_CONDUCT.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame(\n                    '/path/to/app/CODE_OF_CONDUCT.md',\n                    $path,\n                );\n                $this->assertSame('codeOfConductContents', $contents);\n\n                return true;\n            });\n\n        $this->answers->codeOfConduct = 'Contributor-1.4';\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render(\n                'code-of-conduct' . DIRECTORY_SEPARATOR . 'Contributor-1.4.md.twig',\n                $this->answers->getArrayCopy(),\n            )\n            ->andReturn('codeOfConductContents');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateCodeOfConduct($build);\n\n        $builder->build();\n    }\n\n    public function testBuildRemovesCodeOfConductFile(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Removing CODE_OF_CONDUCT.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->shouldReceive('dumpFile')->never();\n        $filesystem->expects()->remove('/path/to/app/CODE_OF_CONDUCT.md');\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig->shouldReceive('render')->never();\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateCodeOfConduct($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateComposerJsonTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse ArrayObject;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateComposerJson;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\SnapshotsTool;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\WindowsSafeTextDriver;\nuse RuntimeException;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function file_get_contents;\n\nclass UpdateComposerJsonTest extends TestCase\n{\n    use SnapshotsTool;\n\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating composer.json');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/composer.json', $path);\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject(\n                [\n                    $this->mockery(SplFileInfo::class, ['getContents' => $this->composerContentsOriginal()]),\n                    $this->mockery(SplFileInfo::class, ['getContents' => '']),\n                ],\n            ))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('composer.json');\n\n        $this->answers->packageName = 'a-vendor/package-name';\n        $this->answers->packageDescription = 'This is a test package.';\n        $this->answers->packageKeywords = ['test', 'package'];\n        $this->answers->authorName = 'Jane Doe';\n        $this->answers->authorEmail = 'jdoe@example.com';\n        $this->answers->authorUrl = 'https://example.com/jane';\n        $this->answers->license = 'Apache-2.0';\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getFinder' => $finder,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateComposerJson($build);\n\n        $builder->build();\n    }\n\n    public function testBuildThrowsExceptionWhenComposerContentsContainInvalidJson(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating composer.json');\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject(\n                [\n                    $this->mockery(SplFileInfo::class, ['getContents' => 'null']),\n                ],\n            ))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('composer.json');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFinder' => $finder,\n        ]);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getSetup' => $environment,\n            'getConsole' => $console,\n        ]);\n\n        $builder = new UpdateComposerJson($build);\n\n        $this->expectException(RuntimeException::class);\n        $this->expectExceptionMessage('Unable to decode contents of composer.json');\n\n        $builder->build();\n    }\n\n    public function testBuildThrowsExceptionWhenComposerJsonCannotBeFound(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating composer.json');\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject())->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('composer.json');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFinder' => $finder,\n        ]);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateComposerJson($build);\n\n        $this->expectException(RuntimeException::class);\n        $this->expectExceptionMessage('Unable to get contents of composer.json');\n\n        $builder->build();\n    }\n\n    public function testBuildWithMinimalComposerJson(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating composer.json');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/composer.json', $path);\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([\n                $this->mockery(SplFileInfo::class, [\n                    'getContents' => $this->composerContentsOriginalMinimal(),\n                ]),\n            ]))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('composer.json');\n\n        $this->answers->packageName = 'a-vendor/package-name';\n        $this->answers->packageDescription = 'This is a test package.';\n        $this->answers->authorName = 'Jane Doe';\n        $this->answers->license = 'MPL-2.0';\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getFinder' => $finder,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateComposerJson($build);\n\n        $builder->build();\n    }\n\n    private function composerContentsOriginal(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/composer-full.json');\n    }\n\n    private function composerContentsOriginalMinimal(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/composer-minimal.json');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateContributingTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateContributing;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nclass UpdateContributingTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating CONTRIBUTING.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/CONTRIBUTING.md', $path);\n                $this->assertSame('contributingContents', $contents);\n\n                return true;\n            });\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render('CONTRIBUTING.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('contributingContents');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateContributing($task);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateFundingTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateFunding;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nclass UpdateFundingTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating .github/FUNDING.yml');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/.github/FUNDING.yml', $path);\n                $this->assertSame('fundingContents', $contents);\n\n                return true;\n            });\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render('FUNDING.yml.twig', $this->answers->getArrayCopy())\n            ->andReturn('fundingContents');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateFunding($task);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateLicenseTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Closure;\nuse Mockery\\MockInterface;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateLicense;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass UpdateLicenseTest extends TestCase\n{\n    #[DataProvider('provideLicensesForTesting')]\n    public function testBuild(\n        string $license,\n        string $filename,\n        string $contents,\n        callable $additionalChecks,\n    ): void {\n        $this->answers->license = $license;\n\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating license and copyright information');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->remove('LICENSE');\n        $filesystem->expects()->dumpFile('/path/to/app/' . $filename, $contents);\n\n        $twigEnvironment = $this->mockery(TwigEnvironment::class);\n        $twigEnvironment\n            ->expects('render')\n            ->with(\n                'license' . DIRECTORY_SEPARATOR . $license . '.twig',\n                $this->answers->getArrayCopy(),\n            )\n            ->andReturns($contents);\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twigEnvironment,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $additionalChecks($twigEnvironment, $filesystem, $this->answers);\n\n        $builder = new UpdateLicense($task);\n\n        $builder->build();\n    }\n\n    /**\n     * @return list<array{\n     *     license: string,\n     *     filename: string,\n     *     contents: string,\n     *     additionalChecks: Closure(TwigEnvironment & MockInterface, Filesystem & MockInterface, Answers): void,\n     * }>\n     */\n    public static function provideLicensesForTesting(): array\n    {\n        return [\n            [\n                'license' => 'AGPL-3.0-or-later',\n                'filename' => 'COPYING',\n                'contents' => 'AGPL-3.0-or-later license contents',\n                'additionalChecks' => function (\n                    TwigEnvironment & MockInterface $twig,\n                    Filesystem & MockInterface $filesystem,\n                    Answers $answers,\n                ): void {\n                    $twig\n                        ->expects('render')\n                        ->with(\n                            'license' . DIRECTORY_SEPARATOR . 'AGPL-3.0-or-later-NOTICE.twig',\n                            $answers->getArrayCopy(),\n                        )\n                        ->andReturns('AGPL-3.0-or-later notice contents');\n\n                    $filesystem->expects('dumpFile')->with(\n                        '/path/to/app/NOTICE',\n                        'AGPL-3.0-or-later notice contents',\n                    );\n                },\n            ],\n            [\n                'license' => 'BSD-2',\n                'filename' => 'LICENSE',\n                'contents' => 'BSD-2 license contents',\n                'additionalChecks' => fn () => null,\n            ],\n            [\n                'license' => 'BSD-3',\n                'filename' => 'LICENSE',\n                'contents' => 'BSD-3 license contents',\n                'additionalChecks' => fn () => null,\n            ],\n            [\n                'license' => 'GPL-3.0-or-later',\n                'filename' => 'COPYING',\n                'contents' => 'GPL-3.0-or-later license contents',\n                'additionalChecks' => function (\n                    TwigEnvironment & MockInterface $twig,\n                    Filesystem & MockInterface $filesystem,\n                    Answers $answers,\n                ): void {\n                    $twig\n                        ->expects('render')\n                        ->with(\n                            'license' . DIRECTORY_SEPARATOR . 'GPL-3.0-or-later-NOTICE.twig',\n                            $answers->getArrayCopy(),\n                        )\n                        ->andReturns('GPL-3.0-or-later notice contents');\n\n                    $filesystem->expects('dumpFile')->with(\n                        '/path/to/app/NOTICE',\n                        'GPL-3.0-or-later notice contents',\n                    );\n                },\n            ],\n            [\n                'license' => 'LGPL-3.0-or-later',\n                'filename' => 'COPYING.LESSER',\n                'contents' => 'LGPL-3.0-or-later license contents',\n                'additionalChecks' => function (\n                    TwigEnvironment & MockInterface $twig,\n                    Filesystem & MockInterface $filesystem,\n                    Answers $answers,\n                ): void {\n                    $twig\n                        ->expects('render')\n                        ->with(\n                            'license' . DIRECTORY_SEPARATOR . 'LGPL-3.0-or-later-NOTICE.twig',\n                            $answers->getArrayCopy(),\n                        )\n                        ->andReturns('LGPL-3.0-or-later notice contents');\n\n                    $filesystem->expects('dumpFile')->with(\n                        '/path/to/app/NOTICE',\n                        'LGPL-3.0-or-later notice contents',\n                    );\n\n                    $twig\n                        ->expects('render')\n                        ->with(\n                            'license' . DIRECTORY_SEPARATOR . 'GPL-3.0-or-later.twig',\n                            $answers->getArrayCopy(),\n                        )\n                        ->andReturns('GPL-3.0-or-later license contents');\n\n                    $filesystem->expects('dumpFile')->with(\n                        '/path/to/app/COPYING',\n                        'GPL-3.0-or-later license contents',\n                    );\n                },\n            ],\n            [\n                'license' => 'MIT',\n                'filename' => 'LICENSE',\n                'contents' => 'MIT license contents',\n                'additionalChecks' => fn () => null,\n            ],\n            [\n                'license' => 'MIT-0',\n                'filename' => 'LICENSE',\n                'contents' => 'MIT-0 license contents',\n                'additionalChecks' => fn () => null,\n            ],\n            [\n                'license' => 'MPL-2.0',\n                'filename' => 'LICENSE',\n                'contents' => 'MPL-2.0 license contents',\n                'additionalChecks' => function (\n                    TwigEnvironment & MockInterface $twig,\n                    Filesystem & MockInterface $filesystem,\n                    Answers $answers,\n                ): void {\n                    $twig\n                        ->expects('render')\n                        ->with(\n                            'license' . DIRECTORY_SEPARATOR . 'MPL-2.0-NOTICE.twig',\n                            $answers->getArrayCopy(),\n                        )\n                        ->andReturns('MPL-2.0 notice contents');\n\n                    $filesystem->expects('dumpFile')->with(\n                        '/path/to/app/NOTICE',\n                        'MPL-2.0 notice contents',\n                    );\n                },\n            ],\n            [\n                'license' => 'Proprietary',\n                'filename' => 'COPYRIGHT',\n                'contents' => 'proprietary license contents',\n                'additionalChecks' => fn () => null,\n            ],\n            [\n                'license' => 'Unlicense',\n                'filename' => 'UNLICENSE',\n                'contents' => 'unlicense contents',\n                'additionalChecks' => fn () => null,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateNamespaceTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse ArrayObject;\nuse Mockery\\MockInterface;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateNamespace;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\SnapshotsTool;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\WindowsSafeTextDriver;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function file_get_contents;\n\nclass UpdateNamespaceTest extends TestCase\n{\n    use SnapshotsTool;\n\n    #[DataProvider('provideNamespaceTestValues')]\n    public function testBuild(\n        string $packageName,\n        string $namespace,\n        string $testNamespace,\n    ): void {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating namespace');\n\n        $this->answers->packageName = $packageName;\n        $this->answers->packageNamespace = $namespace;\n\n        $file1 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => '/path/to/app/src/Foo.php',\n            'getContents' => $this->getFileContents(),\n        ]);\n\n        $file2 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => '/path/to/app/src/Bar.php',\n            'getContents' => $this->getFileContents(),\n        ]);\n\n        $file3 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => '/path/to/app/composer.json',\n            'getContents' => $this->getFileContents(),\n        ]);\n\n        $finder1 = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([$file1, $file2]))->getIterator(),\n        ]);\n        $finder1->expects()->exclude(['LibraryStarterKit'])->andReturnSelf();\n        $finder1->expects()->in(\n            [\n                '/path/to/app/bin',\n                '/path/to/app/src',\n                '/path/to/app/tests',\n            ],\n        )->andReturnSelf();\n        $finder1->expects()->files()->andReturnSelf();\n        $finder1->expects()->name('*.php')->andReturnSelf();\n\n        $finder2 = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([$file3]))->getIterator(),\n        ]);\n        $finder2->expects()->in(['/path/to/app'])->andReturnSelf();\n        $finder2->expects()->files()->andReturnSelf();\n        $finder2->expects()->depth('== 0')->andReturnSelf();\n        $finder2->expects()->name('composer.json')->andReturnSelf();\n\n        $filesystem = $this->mockery(Filesystem::class);\n\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->times(3)\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertMatchesSnapshot($path, new WindowsSafeTextDriver());\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        $environment\n            ->shouldReceive('getFinder')\n            ->twice()\n            ->andReturn($finder1, $finder2);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateNamespace($task);\n\n        $builder->build();\n    }\n\n    /**\n     * @return list<array{packageName: string, namespace: string, testNamespace: string}>\n     */\n    public static function provideNamespaceTestValues(): array\n    {\n        return [\n            [\n                'packageName' => 'acme/foo-bar',\n                'namespace' => 'Acme\\\\Foo\\\\Bar',\n                'testNamespace' => 'Acme\\\\Test\\\\Foo\\\\Bar',\n            ],\n            [\n                'packageName' => 'acme/foo',\n                'namespace' => 'Acme',\n                'testNamespace' => 'Acme\\\\Test',\n            ],\n            [\n                'packageName' => 'another/package',\n                'namespace' => 'Another\\\\Package\\\\With\\\\Long\\\\Namespace',\n                'testNamespace' => 'Another\\\\Test\\\\Package\\\\With\\\\Long\\\\Namespace',\n            ],\n        ];\n    }\n\n    private function getFileContents(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/update-namespace-test.php');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateReadmeTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse ArrayObject;\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\CodeOfConduct;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateReadme;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\SnapshotsTool;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\WindowsSafeTextDriver;\nuse RuntimeException;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\nuse Twig\\Environment as TwigEnvironment;\n\nuse function file_get_contents;\n\nclass UpdateReadmeTest extends TestCase\n{\n    use SnapshotsTool;\n\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating README.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/README.md', $path);\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject(\n                [\n                    $this->mockery(SplFileInfo::class, ['getContents' => $this->readmeContentsOriginal()]),\n                    $this->mockery(SplFileInfo::class, ['getContents' => '']),\n                ],\n            ))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('README.md');\n\n        $this->answers->codeOfConduct = 'Contributor-1.4';\n        $this->answers->packageName = 'a-vendor/package-name';\n        $this->answers->packageDescription = 'This is a test package.';\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render('readme/badges.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('badges info');\n\n        $twig\n            ->expects()\n            ->render('readme/description.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('description info');\n\n        $twig\n            ->expects()\n            ->render('readme/code-of-conduct.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('code of conduct info');\n\n        $twig\n            ->expects()\n            ->render('readme/usage.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('usage info');\n\n        $twig\n            ->expects()\n            ->render('readme/copyright.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('copyright info');\n\n        $twig\n            ->expects()\n            ->render('readme/security.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('security info');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getFinder' => $finder,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateReadme($task);\n\n        $builder->build();\n    }\n\n    public function testBuildWhenCodeOfConductIsNullAndSecurityPolicyIsFalse(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating README.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame('/path/to/app/README.md', $path);\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject(\n                [\n                    $this->mockery(SplFileInfo::class, ['getContents' => $this->readmeContentsOriginal()]),\n                    $this->mockery(SplFileInfo::class, ['getContents' => '']),\n                ],\n            ))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('README.md');\n\n        $this->answers->codeOfConduct = CodeOfConduct::DEFAULT;\n        $this->answers->securityPolicy = false;\n        $this->answers->packageName = 'a-vendor/package-name';\n        $this->answers->packageDescription = 'This is a test package.';\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render('readme/badges.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('badges info');\n\n        $twig\n            ->expects()\n            ->render('readme/description.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('description info');\n\n        $twig\n            ->expects()\n            ->render('readme/code-of-conduct.md.twig', $this->answers->getArrayCopy())\n            ->never();\n\n        $twig\n            ->expects()\n            ->render('readme/usage.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('usage info');\n\n        $twig\n            ->expects()\n            ->render('readme/copyright.md.twig', $this->answers->getArrayCopy())\n            ->andReturn('copyright info');\n\n        $twig\n            ->expects()\n            ->render('readme/security.md.twig', $this->answers->getArrayCopy())\n            ->never();\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getFinder' => $finder,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateReadme($task);\n\n        $builder->build();\n    }\n\n    public function testBuildThrowsExceptionWhenReadmeCannotBeFound(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating README.md');\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([]))->getIterator(),\n        ]);\n        $finder->expects()->in('/path/to/app')->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->depth('== 0')->andReturnSelf();\n        $finder->expects()->name('README.md');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFinder' => $finder,\n        ]);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAppPath' => '/path/to/app',\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateReadme($task);\n\n        $this->expectException(RuntimeException::class);\n        $this->expectExceptionMessage('Unable to get contents of README.md');\n\n        $builder->build();\n    }\n\n    private function readmeContentsOriginal(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/readme-full.md');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateSecurityPolicyTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateSecurityPolicy;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Twig\\Environment as TwigEnvironment;\n\nuse const DIRECTORY_SEPARATOR;\n\nclass UpdateSecurityPolicyTest extends TestCase\n{\n    public function testBuild(): void\n    {\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating SECURITY.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->once()\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertSame(\n                    '/path/to/app/SECURITY.md',\n                    $path,\n                );\n                $this->assertSame('securityPolicyContents', $contents);\n\n                return true;\n            });\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig\n            ->expects()\n            ->render(\n                'security-policy' . DIRECTORY_SEPARATOR . 'HackerOne.md.twig',\n                $this->answers->getArrayCopy(),\n            )\n            ->andReturn('securityPolicyContents');\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateSecurityPolicy($build);\n\n        $builder->build();\n    }\n\n    public function testBuildRemovesSecurityPolicyFile(): void\n    {\n        $this->answers->securityPolicy = false;\n\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Removing SECURITY.md');\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->shouldReceive('dumpFile')->never();\n        $filesystem->expects()->remove('/path/to/app/SECURITY.md');\n\n        $twig = $this->mockery(TwigEnvironment::class);\n\n        $twig->shouldReceive('render')->never();\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getTwigEnvironment' => $twig,\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $build */\n        $build = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateSecurityPolicy($build);\n\n        $builder->build();\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/UpdateSourceFileHeadersTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task\\Builder;\n\nuse ArrayObject;\nuse Composer\\Script\\Event;\nuse Mockery\\MockInterface;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Project;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder\\UpdateSourceFileHeaders;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\SnapshotsTool;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\WindowsSafeTextDriver;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nuse function file_get_contents;\n\nclass UpdateSourceFileHeadersTest extends TestCase\n{\n    use SnapshotsTool;\n\n    #[DataProvider('licenseProvider')]\n    public function testBuild(string $license, ?string $copyrightEmail = null, ?string $copyrightUrl = null): void\n    {\n        $this->answers->packageName = 'fellowship/one-ring';\n        $this->answers->copyrightHolder = 'Samwise Gamgee';\n        $this->answers->license = $license;\n        $this->answers->copyrightEmail = $copyrightEmail;\n        $this->answers->copyrightUrl = $copyrightUrl;\n\n        $console = $this->mockery(SymfonyStyle::class);\n        $console->expects()->section('Updating source file headers');\n\n        $realSetup = new Setup(\n            $this->mockery(Project::class, [\n                'getPath' => __DIR__ . '/../../../../.',\n            ]),\n            $this->mockery(Event::class),\n            $this->mockery(Filesystem::class),\n            $this->mockery(Finder::class),\n            OutputInterface::VERBOSITY_NORMAL,\n        );\n\n        $file1 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => '/path/to/app/src/SomeClass.php',\n            'getContents' => $this->getFile1OriginalContents(),\n        ]);\n\n        $file2 = $this->mockery(SplFileInfo::class, [\n            'getRealPath' => '/path/to/app/src/foo/AnotherClass.php',\n            'getContents' => $this->getFile2OriginalContents(),\n        ]);\n\n        $finder = $this->mockery(Finder::class, [\n            'getIterator' => (new ArrayObject([$file1, $file2]))->getIterator(),\n        ]);\n        $finder->expects()->exclude(['LibraryStarterKit'])->andReturnSelf();\n        $finder->expects()->in(['/path/to/app/src'])->andReturnSelf();\n        $finder->expects()->files()->andReturnSelf();\n        $finder->expects()->name('*.php')->andReturnSelf();\n\n        $filesystem = $this->mockery(Filesystem::class);\n\n        $filesystem\n            ->shouldReceive('dumpFile')\n            ->times(2)\n            ->withArgs(function (string $path, string $contents) {\n                $this->assertMatchesSnapshot($contents, new WindowsSafeTextDriver());\n\n                return true;\n            });\n\n        $environment = $this->mockery(Setup::class, [\n            'getAppPath' => '/path/to/app',\n            'getFilesystem' => $filesystem,\n            'getFinder' => $finder,\n            'getTwigEnvironment' => $realSetup->getTwigEnvironment(),\n        ]);\n\n        $environment\n            ->shouldReceive('path')\n            ->andReturnUsing(fn (string $path): string => '/path/to/app/' . $path);\n\n        /** @var Build & MockInterface $task */\n        $task = $this->mockery(Build::class, [\n            'getAnswers' => $this->answers,\n            'getConsole' => $console,\n            'getSetup' => $environment,\n        ]);\n\n        $builder = new UpdateSourceFileHeaders($task);\n\n        $builder->build();\n    }\n\n    /**\n     * @return list<array{\n     *     license: string,\n     *     copyrightEmail?: string | null,\n     *     copyrightUrl?: string | null,\n     * }>\n     */\n    public static function licenseProvider(): array\n    {\n        return [\n            ['license' => 'AGPL-3.0-or-later'],\n            ['license' => 'Apache-2.0'],\n            [\n                'license' => 'BSD-2-Clause',\n                'copyrightEmail' => 'samwise@example.com',\n            ],\n            ['license' => 'BSD-3-Clause'],\n            ['license' => 'GPL-3.0-or-later'],\n            ['license' => 'Hippocratic-2.1'],\n            ['license' => 'LGPL-3.0-or-later'],\n            [\n                'license' => 'MIT',\n                'copyrightEmail' => null,\n                'copyrightUrl' => 'https://example.com/fellowship',\n            ],\n            ['license' => 'MIT-0'],\n            ['license' => 'MPL-2.0'],\n            [\n                'license' => 'Proprietary',\n                'copyrightEmail' => 'fellowship@example.com',\n                'copyrightUrl' => 'https://example.com/fellowship',\n            ],\n            ['license' => 'Unlicense'],\n        ];\n    }\n\n    private function getFile1OriginalContents(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/update-source-file-headers-test-1.php');\n    }\n\n    private function getFile2OriginalContents(): string\n    {\n        return (string) file_get_contents(__DIR__ . '/fixtures/update-source-file-headers-test-2.php');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateComposerJsonTest__testBuildWithMinimalComposerJson__1.txt",
    "content": "{\n    \"name\": \"a-vendor/package-name\",\n    \"type\": \"library\",\n    \"description\": \"This is a test package.\",\n    \"keywords\": [],\n    \"license\": \"MPL-2.0\",\n    \"authors\": [\n        {\n            \"name\": \"Jane Doe\"\n        }\n    ]\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateComposerJsonTest__testBuild__1.txt",
    "content": "{\n    \"name\": \"a-vendor/package-name\",\n    \"type\": \"library\",\n    \"description\": \"This is a test package.\",\n    \"keywords\": [\n        \"test\",\n        \"package\"\n    ],\n    \"license\": \"Apache-2.0\",\n    \"authors\": [\n        {\n            \"name\": \"Jane Doe\",\n            \"email\": \"jdoe@example.com\",\n            \"homepage\": \"https://example.com/jane\"\n        }\n    ],\n    \"require\": {\n        \"php\": \"^7.4 || ^8\"\n    },\n    \"require-dev\": {\n        \"ramsey/devtools\": \"^1.5\"\n    },\n    \"config\": {\n        \"sort-packages\": true\n    },\n    \"extra\": {\n        \"ramsey/conventional-commits\": {\n            \"configFile\": \"conventional-commits.json\"\n        },\n        \"ramsey/devtools\": {\n            \"command-prefix\": \"dev\"\n        }\n    },\n    \"autoload\": {\n        \"psr-4\": {\n            \"Vendor\\\\SubNamespace\\\\\": \"src/\"\n        }\n    },\n    \"autoload-dev\": {\n        \"psr-4\": {\n            \"Vendor\\\\Test\\\\SubNamespace\\\\\": \"tests/\"\n        }\n    },\n    \"minimum-stability\": \"dev\",\n    \"prefer-stable\": true\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__1.txt",
    "content": "/path/to/app/src/Foo.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__2.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo-bar\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme\\Foo\\Bar;\n\nuse Acme\\Test\\Foo\\Bar\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme\\\\Foo\\\\Bar',\n        'Acme\\\\Test\\\\Foo\\\\Bar',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__3.txt",
    "content": "/path/to/app/src/Bar.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__4.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo-bar\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme\\Foo\\Bar;\n\nuse Acme\\Test\\Foo\\Bar\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme\\\\Foo\\\\Bar',\n        'Acme\\\\Test\\\\Foo\\\\Bar',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__5.txt",
    "content": "/path/to/app/composer.json"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__0__6.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo-bar\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme\\Foo\\Bar;\n\nuse Acme\\Test\\Foo\\Bar\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme\\\\Foo\\\\Bar',\n        'Acme\\\\Test\\\\Foo\\\\Bar',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__1.txt",
    "content": "/path/to/app/src/Foo.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__2.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme;\n\nuse Acme\\Test\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme',\n        'Acme\\\\Test',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__3.txt",
    "content": "/path/to/app/src/Bar.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__4.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme;\n\nuse Acme\\Test\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme',\n        'Acme\\\\Test',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__5.txt",
    "content": "/path/to/app/composer.json"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__1__6.txt",
    "content": "<?php\n\n/**\n * File header comment for acme/foo\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Acme;\n\nuse Acme\\Test\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Acme',\n        'Acme\\\\Test',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__1.txt",
    "content": "/path/to/app/src/Foo.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__2.txt",
    "content": "<?php\n\n/**\n * File header comment for another/package\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Another\\Package\\With\\Long\\Namespace;\n\nuse Another\\Test\\Package\\With\\Long\\Namespace\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Another\\\\Package\\\\With\\\\Long\\\\Namespace',\n        'Another\\\\Test\\\\Package\\\\With\\\\Long\\\\Namespace',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__3.txt",
    "content": "/path/to/app/src/Bar.php"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__4.txt",
    "content": "<?php\n\n/**\n * File header comment for another/package\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Another\\Package\\With\\Long\\Namespace;\n\nuse Another\\Test\\Package\\With\\Long\\Namespace\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Another\\\\Package\\\\With\\\\Long\\\\Namespace',\n        'Another\\\\Test\\\\Package\\\\With\\\\Long\\\\Namespace',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__5.txt",
    "content": "/path/to/app/composer.json"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateNamespaceTest__testBuild_with_data_set__2__6.txt",
    "content": "<?php\n\n/**\n * File header comment for another/package\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Another\\Package\\With\\Long\\Namespace;\n\nuse Another\\Test\\Package\\With\\Long\\Namespace\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Another\\\\Package\\\\With\\\\Long\\\\Namespace',\n        'Another\\\\Test\\\\Package\\\\With\\\\Long\\\\Namespace',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateReadmeTest__testBuildWhenCodeOfConductIsNullAndSecurityPolicyIsFalse__1.txt",
    "content": "# a-vendor/package-name\n\nbadges info\n\ndescription info\n\n\n\nusage info\n\n## Contributing\n\nContributions are welcome! Before contributing to this project, familiarize\nyourself with [CONTRIBUTING.md](CONTRIBUTING.md).\n\n\n\ncopyright info\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateReadmeTest__testBuildWhenCodeOfConductIsNull__1.txt",
    "content": "# a-vendor/package-name\n\nbadges info\n\ndescription info\n\n\n\nusage info\n\n## Contributing\n\nContributions are welcome! Before contributing to this project, familiarize\nyourself with [CONTRIBUTING.md](CONTRIBUTING.md).\n\n\n\ncopyright info\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateReadmeTest__testBuild__1.txt",
    "content": "# a-vendor/package-name\n\nbadges info\n\ndescription info\n\ncode of conduct info\n\nusage info\n\n## Contributing\n\nContributions are welcome! Before contributing to this project, familiarize\nyourself with [CONTRIBUTING.md](CONTRIBUTING.md).\n\n\n\ncopyright info\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__0__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU Affero General Public\n * License as published by the Free Software Foundation, either version\n * 3 of the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/agpl-v3/ GNU Affero General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__0__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU Affero General Public\n * License as published by the Free Software Foundation, either version\n * 3 of the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/agpl-v3/ GNU Affero General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__10__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <fellowship@example.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__10__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <fellowship@example.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__11__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free and unencumbered software released\n * into the public domain. For more information, please view the\n * UNLICENSE file that was distributed with this source code.\n *\n * @license https://opensource.org/license/unlicense/ The Unlicense\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__11__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free and unencumbered software released\n * into the public domain. For more information, please view the\n * UNLICENSE file that was distributed with this source code.\n *\n * @license https://opensource.org/license/unlicense/ The Unlicense\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__1__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n * implied. See the License for the specific language governing\n * permissions and limitations under the License.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/apache-2-0/ Apache License, Version 2.0\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__1__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n * implied. See the License for the specific language governing\n * permissions and limitations under the License.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/apache-2-0/ Apache License, Version 2.0\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__2__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <samwise@example.com>\n * @license https://opensource.org/license/bsd-2-clause/ BSD 2-Clause \"Simplified\" License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__2__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <samwise@example.com>\n * @license https://opensource.org/license/bsd-2-clause/ BSD 2-Clause \"Simplified\" License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__3__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/bsd-3-clause/ BSD 3-Clause \"New\" or \"Revised\" License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__3__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/bsd-3-clause/ BSD 3-Clause \"New\" or \"Revised\" License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__4__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation, either version 3 of\n * the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/gpl-3-0/ GNU General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__4__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation, either version 3 of\n * the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/gpl-3-0/ GNU General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__5__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://spdx.org/licenses/Hippocratic-2.1.html Hippocratic License 2.1\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__5__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://spdx.org/licenses/Hippocratic-2.1.html Hippocratic License 2.1\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__6__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation, either version\n * 3 of the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/lgpl-3-0/ GNU Lesser General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__6__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * fellowship/one-ring is free software: you can redistribute it\n * and/or modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation, either version\n * 3 of the License, or (at your option) any later version.\n *\n * fellowship/one-ring is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the implied warranty\n * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with fellowship/one-ring.\n * If not, see <https://www.gnu.org/licenses/>.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/lgpl-3-0/ GNU Lesser General Public License version 3 or later\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__7__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <https://example.com/fellowship>\n * @license https://opensource.org/license/mit/ MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__7__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee <https://example.com/fellowship>\n * @license https://opensource.org/license/mit/ MIT License\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__8__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/mit-0/ MIT No Attribution\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__8__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/mit-0/ MIT No Attribution\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__9__1.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/mpl-2-0/ Mozilla Public License 2.0\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateSourceFileHeadersTest__testBuild_with_data_set__9__2.txt",
    "content": "<?php\n\n/**\n * This file is part of fellowship/one-ring\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n *\n * @copyright Copyright (c) Samwise Gamgee\n * @license https://opensource.org/license/mpl-2-0/ Mozilla Public License 2.0\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/composer-full.json",
    "content": "{\n    \"name\": \"ramsey/php-library-starter-kit\",\n    \"type\": \"project\",\n    \"description\": \"A starter kit for quickly setting up a new PHP library package.\",\n    \"keywords\": [\n        \"builder\",\n        \"library\",\n        \"package\",\n        \"skeleton\",\n        \"template\"\n    ],\n    \"license\": \"MIT\",\n    \"authors\": [\n        {\n            \"name\": \"Ben Ramsey\",\n            \"email\": \"ben@benramsey.com\",\n            \"homepage\": \"https://benramsey.com\"\n        }\n    ],\n    \"require\": {\n        \"php\": \"^7.4 || ^8\",\n        \"ext-json\": \"*\",\n        \"symfony/console\": \"^5.1\",\n        \"symfony/filesystem\": \"^5.1\",\n        \"symfony/finder\": \"^5.1\",\n        \"symfony/process\": \"^5.1\",\n        \"twig/twig\": \"^3.1\"\n    },\n    \"require-dev\": {\n        \"ramsey/devtools\": \"^1.5\",\n        \"spatie/phpunit-snapshot-assertions\": \"^4.2\"\n    },\n    \"suggest\": {\n        \"ext-foobar\": \"Foo bar\"\n    },\n    \"config\": {\n        \"sort-packages\": true\n    },\n    \"extra\": {\n        \"ramsey/conventional-commits\": {\n            \"configFile\": \"conventional-commits.json\"\n        },\n        \"ramsey/devtools\": {\n            \"command-prefix\": \"dev\"\n        }\n    },\n    \"autoload\": {\n        \"psr-4\": {\n            \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\\": \"src/LibraryStarterKit/\",\n            \"Vendor\\\\SubNamespace\\\\\": \"src/\"\n        }\n    },\n    \"autoload-dev\": {\n        \"psr-4\": {\n            \"Ramsey\\\\Test\\\\Dev\\\\LibraryStarterKit\\\\\": \"tests/LibraryStarterKit/\",\n            \"Vendor\\\\Test\\\\SubNamespace\\\\\": \"tests/\"\n        }\n    },\n    \"minimum-stability\": \"dev\",\n    \"prefer-stable\": true,\n    \"scripts\": {\n        \"post-root-package-install\": \"git init\",\n        \"post-create-project-cmd\": \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\Wizard::start\",\n        \"starter-kit\": \"Ramsey\\\\Dev\\\\LibraryStarterKit\\\\Wizard::start\"\n    },\n    \"scripts-descriptions\": {\n        \"starter-kit\": \"Runs the PHP Library Starter Kit wizard.\"\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/composer-minimal.json",
    "content": "{\n    \"name\": \"ramsey/php-library-starter-kit\",\n    \"type\": \"project\",\n    \"description\": \"A tool to quickly set up the base files of a PHP library package.\",\n    \"keywords\": [\n        \"skeleton\",\n        \"package\",\n        \"library\"\n    ],\n    \"license\": \"MIT\",\n    \"authors\": [\n        {\n            \"name\": \"Ben Ramsey\",\n            \"email\": \"ben@benramsey.com\",\n            \"homepage\": \"https://benramsey.com\"\n        }\n    ]\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/readme-full.md",
    "content": "# <!-- NAME_START -->ramsey/php-library-starter-kit<!-- NAME_END -->\n\n<!-- BADGES_START -->\n[![Source Code][badge-source]][source]\n\n[badge-source]: http://img.shields.io/badge/source-ramsey/php--library--starter--kit-blue.svg?style=flat-square\n\n[source]: https://github.com/ramsey/php-library-starter-kit\n<!-- BADGES_END -->\n\n<!-- DESC_START -->\nramsey/php-library-starter-kit is a package that may be used to generate a basic\nPHP library project directory structure, complete with many of the starting\nfiles (i.e. README, LICENSE, GitHub issue templates, PHPUnit configuration,\netc.) that are commonly found in PHP libraries. You may use the project\ndirectory that's created as a starting point for creating your own PHP libraries.\n<!-- DESC_END -->\n\n<!-- COC_START -->\nThis project adheres to a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).\nBy participating in this project and its community, you are expected to uphold\nthis code.\n<!-- COC_END -->\n\n<!-- USAGE_START -->\n## Usage\n\n``` bash\ncomposer create-project ramsey/php-library-starter-kit YOUR-PROJECT-NAME\n```\n<!-- USAGE_END -->\n\n## Contributing\n\nContributions are welcome! Before contributing to this project, familiarize\nyourself with [CONTRIBUTING.md](CONTRIBUTING.md).\n\n<!-- FAQ_START -->\n## FAQs\n\n### Wait, what, why?\n\nBecause.\n<!-- FAQ_END -->\n\n<!-- COPYRIGHT_START -->\n## Copyright and License\n\nThe ramsey/php-library-starter-kit library is copyright © [Ben Ramsey](https://benramsey.com)\nand licensed for use under the MIT License (MIT). Please see [LICENSE](LICENSE)\nfor more information.\n<!-- COPYRIGHT_END -->\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/update-namespace-test.php",
    "content": "<?php\n\n/**\n * File header comment for ramsey/php-library-starter-kit\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Vendor\\SubNamespace;\n\nuse Vendor\\Test\\SubNamespace\\Bar;\n\nclass Foo\n{\n    public const CLASS_NAMES = [\n        'Vendor\\\\SubNamespace',\n        'Vendor\\\\Test\\\\SubNamespace',\n    ];\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/update-source-file-headers-test-1.php",
    "content": "<?php\n\n/**\n * This is a test\n *\n * Testing more testing more testing more\n *\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Bar\n{\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/Builder/fixtures/update-source-file-headers-test-2.php",
    "content": "<?php\n\n/**\n * Summary\n *\n * This is a description\n *\n * @copyright Copyright (c) Jane Doe\n * phpcs:disable\n */\n\ndeclare(strict_types=1);\n\nnamespace Foo;\n\n/**\n * Class description\n */\nclass Baz\n{\n    /**\n     * Method description\n     */\n    public function __construct()\n    {\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/Task/BuilderTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit\\Task;\n\nuse Mockery\\MockInterface;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Build;\nuse Ramsey\\Dev\\LibraryStarterKit\\Task\\Builder;\nuse Ramsey\\Test\\Dev\\LibraryStarterKit\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nclass BuilderTest extends TestCase\n{\n    private Builder $builder;\n\n    private SymfonyStyle & MockInterface $console;\n\n    private Setup & MockInterface $setup;\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n\n        $this->setup = $this->mockery(Setup::class);\n        $this->console = $this->mockery(SymfonyStyle::class);\n        $build = new Build($this->setup, $this->console, $this->answers);\n\n        $this->builder = new class ($build) extends Builder {\n            public function build(): void\n            {\n            }\n        };\n    }\n\n    public function testGetAnswers(): void\n    {\n        $this->assertSame($this->answers, $this->builder->getAnswers());\n    }\n\n    public function testGetEnvironment(): void\n    {\n        $this->assertSame($this->setup, $this->builder->getEnvironment());\n    }\n\n    public function testGetConsole(): void\n    {\n        $this->assertSame($this->console, $this->builder->getConsole());\n    }\n\n    public function testStreamProcessOutput(): void\n    {\n        $streamProcessOutput = $this->builder->streamProcessOutput();\n\n        $this->console->expects()->write('writes a message to output');\n\n        $streamProcessOutput('foo', 'writes a message to output');\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/TestCase.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Vendor\\Test\\SubNamespace\\TestCase as BaseTestCase;\n\nclass TestCase extends BaseTestCase\n{\n    protected Answers $answers;\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/answers.json')->andReturnFalse();\n\n        $this->answers = new Answers('/path/to/answers.json', $filesystem);\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/WindowsSafeTextDriver.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse PHPUnit\\Framework\\Assert;\nuse Spatie\\Snapshots\\Driver;\n\nuse function assert;\nuse function is_string;\nuse function preg_replace;\n\n/**\n * A text driver for spatie/phpunit-snapshot-assertions that ensures snapshots\n * are serialized and matched with lf line endings\n */\nclass WindowsSafeTextDriver implements Driver\n{\n    public function serialize(mixed $data): string\n    {\n        assert(is_string($data));\n\n        // Save snapshot only with lf line endings.\n        return (string) preg_replace('/\\R/', \"\\n\", $data);\n    }\n\n    public function extension(): string\n    {\n        return 'txt';\n    }\n\n    public function match(mixed $expected, mixed $actual): void\n    {\n        assert(is_string($expected));\n\n        // Make sure the expected string has lf line endings, so we can\n        // compare accurately.\n        $expected = (string) preg_replace('/\\R/', \"\\n\", $expected);\n\n        Assert::assertEquals($expected, $this->serialize($actual));\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/WizardTest.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ramsey\\Test\\Dev\\LibraryStarterKit;\n\nuse Composer\\Script\\Event;\nuse Hamcrest\\Core\\IsInstanceOf;\nuse Hamcrest\\Core\\IsTypeOf;\nuse Mockery\\MockInterface;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Ramsey\\Dev\\LibraryStarterKit\\Answers;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\InstallQuestions;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\SkippableQuestion;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Question\\StarterKitQuestion;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\Style;\nuse Ramsey\\Dev\\LibraryStarterKit\\Console\\StyleFactory;\nuse Ramsey\\Dev\\LibraryStarterKit\\Filesystem;\nuse Ramsey\\Dev\\LibraryStarterKit\\Project;\nuse Ramsey\\Dev\\LibraryStarterKit\\Setup;\nuse Ramsey\\Dev\\LibraryStarterKit\\Wizard;\nuse RuntimeException;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Process\\Process;\n\nuse function dirname;\nuse function get_class;\nuse function putenv;\nuse function realpath;\n\nclass WizardTest extends TestCase\n{\n    public function testGetSetup(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        $setup->shouldReceive('getProject->getName')->andReturn('foo-project');\n\n        $setup\n            ->expects()\n            ->path('.starter-kit-answers')\n            ->andReturn('/path/to/.starter-kit-answers');\n\n        $nullProcess = $this->mockery(Process::class);\n        $nullProcess->expects()->run()->twice();\n        $nullProcess->expects()->getOutput()->twice()->andReturn('');\n        $setup->expects()->getProcess(['git', 'config', 'user.name'])->andReturn($nullProcess);\n        $setup->expects()->getProcess(['git', 'config', 'user.email'])->andReturn($nullProcess);\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/.starter-kit-answers')->andReturnFalse();\n\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        $wizard = new Wizard($setup);\n\n        $this->assertSame($setup, $wizard->getSetup());\n    }\n\n    public function testGetAnswersFileReturnsPathToLocalAnswersFile(): void\n    {\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n\n        $setup->shouldReceive('getProject->getName')->andReturn('foo-project');\n\n        $setup\n            ->expects()\n            ->path('.starter-kit-answers')\n            ->twice()\n            ->andReturn('/path/to/.starter-kit-answers');\n\n        $nullProcess = $this->mockery(Process::class);\n        $nullProcess->expects()->run()->twice();\n        $nullProcess->expects()->getOutput()->twice()->andReturn('');\n        $setup->expects()->getProcess(['git', 'config', 'user.name'])->andReturn($nullProcess);\n        $setup->expects()->getProcess(['git', 'config', 'user.email'])->andReturn($nullProcess);\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/.starter-kit-answers')->andReturnFalse();\n\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        $wizard = new Wizard($setup);\n\n        $this->assertSame('/path/to/.starter-kit-answers', $wizard->getAnswersFile());\n    }\n\n    public function testGetAnswersFileReturnsPathToEnvironmentAnswersFile(): void\n    {\n        $answersFile = __DIR__ . '/answers-test.json';\n\n        putenv('STARTER_KIT_ANSWERS_FILE=' . $answersFile);\n\n        $filesystem = new Filesystem();\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        $wizard = new Wizard($setup);\n\n        $this->assertSame($answersFile, $wizard->getAnswersFile());\n\n        // Remove the environment variable to avoid affecting other tests.\n        putenv('STARTER_KIT_ANSWERS_FILE');\n    }\n\n    public function testRunWhenUserChoosesNotToStart(): void\n    {\n        /** @var InputInterface & MockInterface $input */\n        $input = $this->mockery(InputInterface::class)->shouldIgnoreMissing();\n\n        /** @var OutputInterface & MockInterface $output */\n        $output = $this->mockery(OutputInterface::class);\n        $output->expects()->setVerbosity(OutputInterface::VERBOSITY_NORMAL);\n\n        /** @var Style & MockInterface $console */\n        $console = $this->mockery(Style::class);\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class);\n        $setup->expects()->getAppPath()->andReturn('/path/to/app');\n        $setup->shouldReceive('getProject->getName')->andReturn('foo-project');\n        $setup->expects()->getVerbosity()->andReturn(OutputInterface::VERBOSITY_NORMAL);\n\n        $setup\n            ->expects()\n            ->path('.starter-kit-answers')\n            ->andReturn('/path/to/app/.starter-kit-answers');\n\n        $nullProcess = $this->mockery(Process::class);\n        $nullProcess->expects()->run()->twice();\n        $nullProcess->expects()->getOutput()->twice()->andReturn('');\n        $setup->expects()->getProcess(['git', 'config', 'user.name'])->andReturn($nullProcess);\n        $setup->expects()->getProcess(['git', 'config', 'user.email'])->andReturn($nullProcess);\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/app/.starter-kit-answers')->andReturnFalse();\n        $filesystem->expects()->dumpFile('/path/to/app/.starter-kit-answers', new IsTypeOf('string'));\n\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        /** @var StyleFactory & MockInterface $styleFactory */\n        $styleFactory = $this->mockery(StyleFactory::class);\n        $styleFactory->expects()->factory($input, $output)->andReturn($console);\n\n        $console->shouldReceive('title')->once();\n        $console->shouldReceive('block');\n        $console->shouldReceive('text');\n        $console->shouldReceive('newLine');\n        $console->shouldReceive('success')->never();\n\n        $console\n            ->shouldReceive('askQuestion')\n            ->with(new IsInstanceOf(ConfirmationQuestion::class))\n            ->andReturnFalse();\n\n        $wizard = new Wizard($setup, $styleFactory);\n\n        $this->assertSame(0, $wizard->run($input, $output));\n    }\n\n    public function testRunWhenUserConfirmsStart(): void\n    {\n        /** @var InputInterface & MockInterface $input */\n        $input = $this->mockery(InputInterface::class)->shouldIgnoreMissing();\n\n        /** @var OutputInterface & MockInterface $output */\n        $output = $this->mockery(OutputInterface::class);\n        $output->expects()->setVerbosity(OutputInterface::VERBOSITY_NORMAL);\n\n        /** @var Style & MockInterface $console */\n        $console = $this->mockery(Style::class);\n\n        $project = new Project('my-project', '/my/project/path');\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class, [\n            'getProject' => $project,\n        ]);\n\n        $setup->expects()->getVerbosity()->andReturn(OutputInterface::VERBOSITY_NORMAL);\n\n        $setup\n            ->shouldReceive('run')\n            ->once()\n            ->withArgs(function (Style $style, Answers $answers) use ($console): bool {\n                $answers->packageName = 'my-package/name';\n                $this->assertSame($console, $style);\n\n                return true;\n            });\n\n        $setup\n            ->expects()\n            ->path('.starter-kit-answers')\n            ->andReturn('/path/to/.starter-kit-answers');\n\n        $nullProcess = $this->mockery(Process::class);\n        $nullProcess->expects()->run()->twice();\n        $nullProcess->expects()->getOutput()->twice()->andReturn('');\n        $setup->expects()->getProcess(['git', 'config', 'user.name'])->andReturn($nullProcess);\n        $setup->expects()->getProcess(['git', 'config', 'user.email'])->andReturn($nullProcess);\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/.starter-kit-answers')->andReturnFalse();\n\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        /** @var StyleFactory & MockInterface $styleFactory */\n        $styleFactory = $this->mockery(StyleFactory::class);\n        $styleFactory->expects()->factory($input, $output)->andReturn($console);\n\n        $console->shouldReceive('title')->once();\n        $console->shouldReceive('block');\n        $console->expects()->success([\n            'Congratulations! Your project, my-package/name, is ready!',\n            'Your project is available at /my/project/path.',\n        ]);\n\n        $console\n            ->expects()\n            ->askQuestion(new IsInstanceOf(ConfirmationQuestion::class))\n            ->andReturnTrue();\n\n        $defaultAnswers = $this->answers;\n\n        /** @var Question & StarterKitQuestion $question */\n        foreach ((new InstallQuestions())->getQuestions($defaultAnswers) as $question) {\n            if ($question instanceof SkippableQuestion && $question->shouldSkip()) {\n                continue;\n            }\n\n            $console\n                ->expects()\n                ->askQuestion(new IsInstanceOf(get_class($question))) // phpcs:ignore\n                ->andReturn($defaultAnswers->{$question->getName()});\n        }\n\n        $wizard = new Wizard($setup, $styleFactory);\n\n        $this->assertSame(0, $wizard->run($input, $output));\n    }\n\n    public function testRunWhenUsingAnswersFileWhenSkipPromptsIsTrue(): void\n    {\n        $answersFile = __DIR__ . '/answers-test.json';\n\n        putenv('STARTER_KIT_ANSWERS_FILE=' . $answersFile);\n\n        /** @var InputInterface & MockInterface $input */\n        $input = $this->mockery(InputInterface::class)->shouldIgnoreMissing();\n\n        /** @var OutputInterface & MockInterface $output */\n        $output = $this->mockery(OutputInterface::class);\n        $output->expects()->setVerbosity(OutputInterface::VERBOSITY_NORMAL);\n\n        /** @var Style & MockInterface $console */\n        $console = $this->mockery(Style::class);\n\n        $project = new Project('my-project', '/my/project/path');\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class, [\n            'getProject' => $project,\n        ]);\n\n        $setup->expects()->getVerbosity()->andReturn(OutputInterface::VERBOSITY_NORMAL);\n\n        $setup\n            ->shouldReceive('run')\n            ->once()\n            ->withArgs(function (Style $style, Answers $answers) use ($console): bool {\n                $this->assertSame($console, $style);\n\n                return true;\n            });\n\n        $setup->expects()->getFilesystem()->andReturn(new Filesystem());\n\n        /** @var StyleFactory & MockInterface $styleFactory */\n        $styleFactory = $this->mockery(StyleFactory::class);\n        $styleFactory->expects()->factory($input, $output)->andReturn($console);\n\n        $console->shouldReceive('title')->once();\n        $console->shouldReceive('block');\n        $console->expects()->success([\n            'Congratulations! Your project, fellowship/ring, is ready!',\n            'Your project is available at /my/project/path.',\n        ]);\n\n        $console->shouldNotReceive('askQuestion');\n\n        $wizard = new Wizard($setup, $styleFactory);\n\n        $this->assertSame(0, $wizard->run($input, $output));\n\n        // Remove the environment variable to avoid affecting other tests.\n        putenv('STARTER_KIT_ANSWERS_FILE');\n    }\n\n    public function testNewApplicationReturnsAnInstanceOfApplication(): void\n    {\n        /** @phpstan-ignore-next-line */\n        $this->assertInstanceOf(Application::class, Wizard::newApplication());\n    }\n\n    public function testStart(): void\n    {\n        $vendorDir = (string) realpath(__DIR__ . '/../../vendor');\n\n        /** @var Event & MockInterface $event */\n        $event = $this->mockery(Event::class, [\n            'getIO->isDebug' => false,\n            'getIO->isVeryVerbose' => false,\n            'getIO->isVerbose' => false,\n        ]);\n        $event\n            ->shouldReceive('getComposer->getConfig->get')\n            ->with('vendor-dir')\n            ->once()\n            ->andReturn($vendorDir);\n\n        /** @var Application & MockInterface $application */\n        $application = $this->mockery(Application::class);\n\n        $application\n            ->shouldReceive('add')\n            ->once()\n            ->withArgs(function (Wizard $command) use ($vendorDir): bool {\n                $this->assertSame('php-library-starter-kit', $command->getSetup()->getProject()->getName());\n                $this->assertSame(dirname($vendorDir), $command->getSetup()->getProject()->getPath());\n\n                return true;\n            });\n\n        $application->expects()->setDefaultCommand('starter-kit', true);\n        $application->expects()->run(new IsInstanceOf(StringInput::class));\n\n        Wizard::$application = $application;\n        Wizard::start($event);\n\n        // Restore static property to null to avoid conflicts with other tests.\n        Wizard::$application = null;\n    }\n\n    #[DataProvider('runWhenExceptionIsThrownWithVerbosityProvider')]\n    public function testRunWhenExceptionIsThrownWithVerbosity(\n        int $verbosity,\n        int $exceptionCode,\n        int $expectedReturn,\n    ): void {\n        /** @var InputInterface & MockInterface $input */\n        $input = $this->mockery(InputInterface::class)->shouldIgnoreMissing();\n\n        /** @var OutputInterface & MockInterface $output */\n        $output = $this->mockery(OutputInterface::class);\n        $output->expects()->setVerbosity($verbosity);\n\n        /** @var Style & MockInterface $console */\n        $console = $this->mockery(Style::class);\n\n        $project = new Project('my-project', '/my/project/path');\n\n        // phpcs:disable\n        $exceptionLine = __LINE__; $exception = new RuntimeException('a test exception message', $exceptionCode);\n        // phpcs:enable\n\n        /** @var Setup & MockInterface $setup */\n        $setup = $this->mockery(Setup::class, ['getProject' => $project]);\n        $setup->expects()->getVerbosity()->andReturn($verbosity);\n        $setup->shouldReceive('run')->once()->andThrow($exception);\n        $setup->expects()->path('.starter-kit-answers')->andReturn('/path/to/.starter-kit-answers');\n\n        $nullProcess = $this->mockery(Process::class);\n        $nullProcess->expects()->run()->twice();\n        $nullProcess->expects()->getOutput()->twice()->andReturn('');\n        $setup->expects()->getProcess(['git', 'config', 'user.name'])->andReturn($nullProcess);\n        $setup->expects()->getProcess(['git', 'config', 'user.email'])->andReturn($nullProcess);\n\n        $filesystem = $this->mockery(Filesystem::class);\n        $filesystem->expects()->exists('/path/to/.starter-kit-answers')->andReturnFalse();\n\n        $setup->expects()->getFilesystem()->andReturn($filesystem);\n\n        /** @var StyleFactory & MockInterface $styleFactory */\n        $styleFactory = $this->mockery(StyleFactory::class);\n        $styleFactory->expects()->factory($input, $output)->andReturn($console);\n\n        $console->shouldReceive('block');\n        $console->shouldReceive('newLine');\n        $console->shouldReceive('title')->once();\n        $console->shouldReceive('success')->never();\n        $console->shouldReceive('getVerbosity')->andReturn($verbosity);\n\n        $console\n            ->expects()\n            ->askQuestion(new IsInstanceOf(ConfirmationQuestion::class))\n            ->andReturnTrue();\n\n        $defaultAnswers = $this->answers;\n\n        /** @var Question & StarterKitQuestion $question */\n        foreach ((new InstallQuestions())->getQuestions($defaultAnswers) as $question) {\n            if ($question instanceof SkippableQuestion && $question->shouldSkip()) {\n                continue;\n            }\n\n            $console\n                ->expects()\n                ->askQuestion(new IsInstanceOf(get_class($question))) // phpcs:ignore\n                ->andReturn($defaultAnswers->{$question->getName()});\n        }\n\n        $expectedErrorMessages = [\n            'a test exception message',\n            'At line ' . $exceptionLine . ' in ' . __FILE__,\n        ];\n\n        if ($verbosity === OutputInterface::VERBOSITY_DEBUG) {\n            $expectedErrorMessages[] = $exception->getTraceAsString();\n        }\n\n        $console->expects()->error($expectedErrorMessages);\n\n        $wizard = new Wizard($setup, $styleFactory);\n\n        $this->assertSame($expectedReturn, $wizard->run($input, $output));\n    }\n\n    /**\n     * @return list<array{verbosity: int, exceptionCode: int, expectedReturn: int}>\n     */\n    public static function runWhenExceptionIsThrownWithVerbosityProvider(): array\n    {\n        return [\n            [\n                'verbosity' => OutputInterface::VERBOSITY_NORMAL,\n                'exceptionCode' => 0,\n                'expectedReturn' => 1,\n            ],\n            [\n                'verbosity' => OutputInterface::VERBOSITY_VERBOSE,\n                'exceptionCode' => 2,\n                'expectedReturn' => 2,\n            ],\n            [\n                'verbosity' => OutputInterface::VERBOSITY_VERY_VERBOSE,\n                'exceptionCode' => 3,\n                'expectedReturn' => 3,\n            ],\n            [\n                'verbosity' => OutputInterface::VERBOSITY_DEBUG,\n                'exceptionCode' => 4,\n                'expectedReturn' => 4,\n            ],\n        ];\n    }\n\n    #[DataProvider('determineVerbosityLevelProvider')]\n    public function testDetermineVerbosityLevel(\n        bool $isDebug,\n        bool $isVeryVerbose,\n        bool $isVerbose,\n        int $expectedVerbosity,\n    ): void {\n        /** @var Event & MockInterface $event */\n        $event = $this->mockery(Event::class, [\n            'getIO->isDebug' => $isDebug,\n            'getIO->isVeryVerbose' => $isVeryVerbose,\n            'getIO->isVerbose' => $isVerbose,\n        ]);\n\n        $this->assertSame($expectedVerbosity, Wizard::determineVerbosityLevel($event));\n    }\n\n    /**\n     * @return list<array{isDebug: bool, isVeryVerbose: bool, isVerbose: bool, expectedVerbosity: int}>\n     */\n    public static function determineVerbosityLevelProvider(): array\n    {\n        return [\n            [\n                'isDebug' => false,\n                'isVeryVerbose' => false,\n                'isVerbose' => false,\n                'expectedVerbosity' => OutputInterface::VERBOSITY_NORMAL,\n            ],\n            [\n                'isDebug' => true,\n                'isVeryVerbose' => false,\n                'isVerbose' => false,\n                'expectedVerbosity' => OutputInterface::VERBOSITY_DEBUG,\n            ],\n            [\n                'isDebug' => false,\n                'isVeryVerbose' => true,\n                'isVerbose' => false,\n                'expectedVerbosity' => OutputInterface::VERBOSITY_VERY_VERBOSE,\n            ],\n            [\n                'isDebug' => false,\n                'isVeryVerbose' => false,\n                'isVerbose' => true,\n                'expectedVerbosity' => OutputInterface::VERBOSITY_VERBOSE,\n            ],\n        ];\n    }\n}\n"
  },
  {
    "path": "tests/LibraryStarterKit/answers-test.json",
    "content": "{\n    \"authorHoldsCopyright\": true,\n    \"authorEmail\": \"frodo@example.com\",\n    \"unknownProperty\": \"foobar\",\n    \"authorUrl\": \"https://example.com/the-fellowship/frodo\",\n    \"packageDescription\": \"A package to help you on your journey.\",\n    \"codeOfConduct\": \"Citizen-2.3\",\n    \"codeOfConductEmail\": \"council@example.com\",\n    \"projectName\": \"The Fellowship of the Ring\",\n    \"codeOfConductPoliciesUrl\": \"https://example.com/the-fellowship/conduct-policies\",\n    \"securityPolicyContactFormUrl\": \"https://example.com/security\",\n    \"codeOfConductReportingUrl\": \"https://example.com/the-fellowship/conduct-reporting\",\n    \"authorName\": \"Frodo Baggins\",\n    \"copyrightEmail\": \"fellowship@example.com\",\n    \"copyrightHolder\": \"The Fellowship\",\n    \"copyrightUrl\": \"https://example.com/the-fellowship\",\n    \"packageName\": \"fellowship/ring\",\n    \"securityPolicy\": true,\n    \"anotherUnknownProperty\": \"baz\",\n    \"copyrightYear\": \"2021\",\n    \"codeOfConductCommittee\": \"Council of the Wise\",\n    \"githubUsername\": \"frodo\",\n    \"securityPolicyContactEmail\": \"security@example.com\",\n    \"vendorName\": \"fellowship\",\n    \"license\": \"BSD-2-Clause\",\n    \"packageKeywords\": [\n        \"foo\",\n        \"bar\"\n    ],\n    \"packageNamespace\": \"Fellowship\\\\Ring\",\n    \"skipPrompts\": true\n}\n"
  },
  {
    "path": "tests/TestCase.php",
    "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Vendor\\Test\\SubNamespace;\n\nuse Ramsey\\Dev\\Tools\\TestCase as BaseTestCase;\n\n/**\n * A base test case for common test functionality\n */\nclass TestCase extends BaseTestCase\n{\n}\n"
  }
]