create-berna-stencil 1.0.47 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/bin/create.js +1 -0
  2. package/docs/Assistant CLI.md +36 -0
  3. package/docs/Components.md +63 -0
  4. package/docs/Creating pages.md +46 -0
  5. package/docs/Head and SEO.md +44 -0
  6. package/docs/Javascript.md +53 -0
  7. package/docs/Styling with SCSS.md +138 -0
  8. package/package.json +3 -15
  9. package/src/backend/_core/vendor/composer/autoload_static.php +10 -10
  10. package/src/backend/_core/vendor/composer/installed.json +6 -6
  11. package/src/backend/_core/vendor/composer/installed.php +2 -2
  12. package/src/backend/_core/vendor/graham-campbell/result-type/LICENSE +21 -21
  13. package/src/backend/_core/vendor/graham-campbell/result-type/composer.json +33 -33
  14. package/src/backend/_core/vendor/graham-campbell/result-type/src/Error.php +121 -121
  15. package/src/backend/_core/vendor/graham-campbell/result-type/src/Result.php +69 -69
  16. package/src/backend/_core/vendor/graham-campbell/result-type/src/Success.php +120 -120
  17. package/src/backend/_core/vendor/phpoption/phpoption/LICENSE +200 -200
  18. package/src/backend/_core/vendor/phpoption/phpoption/composer.json +50 -50
  19. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -175
  20. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -136
  21. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -434
  22. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -169
  23. package/src/backend/_core/vendor/symfony/polyfill-ctype/Ctype.php +232 -232
  24. package/src/backend/_core/vendor/symfony/polyfill-ctype/LICENSE +19 -19
  25. package/src/backend/_core/vendor/symfony/polyfill-ctype/README.md +12 -12
  26. package/src/backend/_core/vendor/symfony/polyfill-ctype/bootstrap.php +50 -50
  27. package/src/backend/_core/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -46
  28. package/src/backend/_core/vendor/symfony/polyfill-ctype/composer.json +38 -38
  29. package/src/backend/_core/vendor/symfony/polyfill-mbstring/LICENSE +19 -19
  30. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -1077
  31. package/src/backend/_core/vendor/symfony/polyfill-mbstring/README.md +13 -13
  32. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -119
  33. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -1397
  34. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -5
  35. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -1489
  36. package/src/backend/_core/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -171
  37. package/src/backend/_core/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -167
  38. package/src/backend/_core/vendor/symfony/polyfill-mbstring/composer.json +39 -39
  39. package/src/backend/_core/vendor/symfony/polyfill-php80/LICENSE +19 -19
  40. package/src/backend/_core/vendor/symfony/polyfill-php80/Php80.php +115 -115
  41. package/src/backend/_core/vendor/symfony/polyfill-php80/PhpToken.php +106 -106
  42. package/src/backend/_core/vendor/symfony/polyfill-php80/README.md +25 -25
  43. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -31
  44. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -16
  45. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -20
  46. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -16
  47. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -16
  48. package/src/backend/_core/vendor/symfony/polyfill-php80/bootstrap.php +42 -42
  49. package/src/backend/_core/vendor/symfony/polyfill-php80/composer.json +37 -37
  50. package/src/backend/_core/vendor/vlucas/phpdotenv/LICENSE +30 -30
  51. package/src/backend/_core/vendor/vlucas/phpdotenv/composer.json +60 -60
  52. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -267
  53. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -12
  54. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -12
  55. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -12
  56. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -12
  57. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -12
  58. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -48
  59. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -20
  60. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -65
  61. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -59
  62. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -299
  63. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -58
  64. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -127
  65. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -53
  66. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -19
  67. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -88
  68. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -15
  69. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -89
  70. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -80
  71. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -88
  72. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -85
  73. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -110
  74. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -48
  75. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -64
  76. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -91
  77. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -17
  78. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -104
  79. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -88
  80. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -27
  81. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -107
  82. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -272
  83. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -51
  84. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -44
  85. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -81
  86. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -72
  87. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -141
  88. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -17
  89. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -37
  90. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -112
  91. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -108
  92. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Validator.php +207 -207
  93. package/src/frontend/data/site.json +43 -43
  94. package/src/frontend/scss/modules/_root.scss +2 -4
  95. package/src/frontend/scss/modules/frameworks/_bootstrap.scss +0 -1
  96. package/src/frontend/scss/modules/frameworks/_bulma.scss +0 -1
  97. package/src/frontend/scss/modules/frameworks/_foundation.scss +0 -1
  98. package/src/frontend/scss/modules/frameworks/_uikit.scss +0 -1
  99. package/src/backend/_core/vendor/graham-campbell/result-type/.gitattributes +0 -9
  100. package/src/backend/_core/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +0 -132
  101. package/src/backend/_core/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +0 -31
  102. package/src/backend/_core/vendor/graham-campbell/result-type/.github/FUNDING.yml +0 -2
  103. package/src/backend/_core/vendor/graham-campbell/result-type/.github/SECURITY.md +0 -14
  104. package/src/backend/_core/vendor/graham-campbell/result-type/.github/workflows/stale.yml +0 -11
  105. package/src/backend/_core/vendor/graham-campbell/result-type/.github/workflows/tests.yml +0 -40
  106. package/src/backend/_core/vendor/graham-campbell/result-type/CHANGELOG.md +0 -53
  107. package/src/backend/_core/vendor/graham-campbell/result-type/README.md +0 -42
  108. package/src/backend/_core/vendor/graham-campbell/result-type/phpunit.xml.dist +0 -13
  109. package/src/backend/_core/vendor/graham-campbell/result-type/tests/ResultTest.php +0 -95
  110. package/src/backend/_core/vendor/phpoption/phpoption/.gitattributes +0 -13
  111. package/src/backend/_core/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +0 -132
  112. package/src/backend/_core/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +0 -30
  113. package/src/backend/_core/vendor/phpoption/phpoption/.github/FUNDING.yml +0 -2
  114. package/src/backend/_core/vendor/phpoption/phpoption/.github/SECURITY.md +0 -14
  115. package/src/backend/_core/vendor/phpoption/phpoption/.github/workflows/static.yml +0 -40
  116. package/src/backend/_core/vendor/phpoption/phpoption/.github/workflows/tests.yml +0 -40
  117. package/src/backend/_core/vendor/phpoption/phpoption/Makefile +0 -17
  118. package/src/backend/_core/vendor/phpoption/phpoption/README.md +0 -201
  119. package/src/backend/_core/vendor/phpoption/phpoption/phpstan-baseline.neon +0 -44
  120. package/src/backend/_core/vendor/phpoption/phpoption/phpstan.neon.dist +0 -7
  121. package/src/backend/_core/vendor/phpoption/phpoption/phpunit.xml.dist +0 -13
  122. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +0 -72
  123. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +0 -357
  124. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +0 -153
  125. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +0 -166
  126. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +0 -194
  127. package/src/backend/_core/vendor/phpoption/phpoption/tests/bootstrap.php +0 -8
  128. package/src/backend/_core/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +0 -8
  129. package/src/backend/_core/vendor/vlucas/phpdotenv/.editorconfig +0 -15
  130. package/src/backend/_core/vendor/vlucas/phpdotenv/.gitattributes +0 -15
  131. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +0 -132
  132. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +0 -30
  133. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/FUNDING.yml +0 -2
  134. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/SECURITY.md +0 -14
  135. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/workflows/static.yml +0 -40
  136. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +0 -70
  137. package/src/backend/_core/vendor/vlucas/phpdotenv/Makefile +0 -17
  138. package/src/backend/_core/vendor/vlucas/phpdotenv/README.md +0 -370
  139. package/src/backend/_core/vendor/vlucas/phpdotenv/UPGRADING.md +0 -196
  140. package/src/backend/_core/vendor/vlucas/phpdotenv/phpstan-baseline.neon +0 -157
  141. package/src/backend/_core/vendor/vlucas/phpdotenv/phpstan.neon.dist +0 -7
  142. package/src/backend/_core/vendor/vlucas/phpdotenv/phpunit.xml.dist +0 -13
  143. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +0 -387
  144. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +0 -86
  145. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +0 -234
  146. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +0 -40
  147. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +0 -53
  148. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +0 -98
  149. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +0 -57
  150. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +0 -75
  151. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +0 -52
  152. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +0 -75
  153. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +0 -305
  154. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +0 -141
  155. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +0 -479
  156. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +0 -5
  157. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +0 -18
  158. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +0 -33
  159. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +0 -15
  160. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +0 -1
  161. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +0 -1
  162. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +0 -7
  163. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +0 -1
  164. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +0 -17
  165. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +0 -2
  166. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +0 -3
  167. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +0 -14
  168. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +0 -4
  169. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +0 -1
  170. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +0 -15
  171. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +0 -11
  172. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +0 -8
  173. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +0 -2
  174. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +0 -3
  175. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +0 -1
  176. package/src/backend/_core/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +0 -15
@@ -1,132 +0,0 @@
1
- # CONTRIBUTOR COVENANT CODE OF CONDUCT
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, caste, color, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- hello@gjcampbell.co.uk.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.1, available at
119
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
-
121
- Community Impact Guidelines were inspired by
122
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
-
124
- For answers to common questions about this code of conduct, see the FAQ at
125
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126
- at [https://www.contributor-covenant.org/translations][translations].
127
-
128
- [homepage]: https://www.contributor-covenant.org
129
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
- [Mozilla CoC]: https://github.com/mozilla/diversity
131
- [FAQ]: https://www.contributor-covenant.org/faq
132
- [translations]: https://www.contributor-covenant.org/translations
@@ -1,31 +0,0 @@
1
- # CONTRIBUTION GUIDELINES
2
-
3
- Contributions are **welcome** and will be fully **credited**.
4
-
5
- We accept contributions via pull requests on GitHub. Please review these guidelines before continuing.
6
-
7
- ## Guidelines
8
-
9
- * Please follow the [PSR-12 Coding Style Guide](https://www.php-fig.org/psr/psr-12/), enforced by [StyleCI](https://styleci.io/).
10
- * Ensure that the current tests pass, and if you've added something new, add the tests where relevant.
11
- * Send a coherent commit history, making sure each commit in your pull request is meaningful.
12
- * You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
13
- * If you are changing or adding to the behaviour or public API, you may need to update the docs.
14
- * Please remember that we follow [Semantic Versioning](https://semver.org/).
15
-
16
- ## Running Tests
17
-
18
- First, install the dependencies using [Composer](https://getcomposer.org/):
19
-
20
- ```bash
21
- $ composer install
22
- ```
23
-
24
- Then run [PHPUnit](https://phpunit.de/):
25
-
26
- ```bash
27
- $ vendor/bin/phpunit
28
- ```
29
-
30
- * The tests will be automatically run by [GitHub Actions](https://github.com/features/actions) against pull requests.
31
- * We also have [StyleCI](https://styleci.io/) set up to automatically fix any code style issues.
@@ -1,2 +0,0 @@
1
- github: GrahamCampbell
2
- tidelift: "packagist/graham-campbell/result-type"
@@ -1,14 +0,0 @@
1
- # SECURITY POLICY
2
-
3
- ## Supported Versions
4
-
5
- After each new major release, the previous release will be supported for no
6
- less than 2 years, unless explicitly stated otherwise. This may mean that there
7
- are multiple supported versions at any given time.
8
-
9
- ## Reporting a Vulnerability
10
-
11
- If you discover a security vulnerability within this package, please send an
12
- email to security@tidelift.com. All security vulnerabilities will be promptly
13
- addressed. Please do not disclose security-related issues publicly until a fix
14
- has been announced.
@@ -1,11 +0,0 @@
1
- name: Stale
2
-
3
- on:
4
- schedule:
5
- - cron: '08 1 2-30/2 * *' # every even day at 01:08
6
-
7
- jobs:
8
- stale:
9
- runs-on: ubuntu-24.04
10
- steps:
11
- - uses: actions/stale@v10
@@ -1,40 +0,0 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- pull_request:
6
-
7
- jobs:
8
- tests:
9
- name: PHP ${{ matrix.php }}
10
- runs-on: ubuntu-24.04
11
-
12
- strategy:
13
- matrix:
14
- php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
15
-
16
- steps:
17
- - name: Checkout Code
18
- uses: actions/checkout@v6
19
-
20
- - name: Setup PHP
21
- uses: shivammathur/setup-php@v2
22
- with:
23
- php-version: ${{ matrix.php }}
24
- tools: composer:v2
25
- coverage: none
26
- env:
27
- update: true
28
-
29
- - name: Setup Problem Matchers
30
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
31
-
32
- - name: Install PHP Dependencies
33
- uses: nick-fields/retry@v3
34
- with:
35
- timeout_minutes: 5
36
- max_attempts: 5
37
- command: composer update --no-interaction --no-progress
38
-
39
- - name: Execute PHPUnit
40
- run: vendor/bin/phpunit
@@ -1,53 +0,0 @@
1
- CHANGE LOG
2
- ==========
3
-
4
-
5
- ## V1.1.4 (27/12/2025)
6
-
7
- * Added support for PHP 8.5
8
-
9
-
10
- ## V1.1.3 (20/07/2024)
11
-
12
- * Added support for PHP 8.4
13
-
14
-
15
- ## V1.1.2 (12/11/2023)
16
-
17
- * Added support for PHP 8.3
18
-
19
-
20
- ## V1.1.1 (25/02/2023)
21
-
22
- * Cleaned up tests
23
-
24
-
25
- ## V1.1 (30/07/2022)
26
-
27
- * Added support for PHP 8.2
28
- * Dropped support for PHP <7.2.5
29
-
30
-
31
- ## V1.0.4 (21/11/2021)
32
-
33
- * Updated package metadata
34
-
35
-
36
- ## V1.0.3 (17/10/2021)
37
-
38
- * Corrected docs
39
-
40
-
41
- ## V1.0.2 (28/08/2021)
42
-
43
- * Added support for PHP 8.1
44
-
45
-
46
- ## V1.0.1 (13/04/2020)
47
-
48
- * Updated funding information
49
-
50
-
51
- ## V1.0 (21/03/2020)
52
-
53
- * Initial release
@@ -1,42 +0,0 @@
1
- Result Type
2
- ===========
3
-
4
- Result Type was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is an implementation of the result type. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Result-Type/releases), [security policy](https://github.com/GrahamCampbell/Result-Type/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).
5
-
6
- ![Banner](https://user-images.githubusercontent.com/2829600/77233209-f86aae80-6b9d-11ea-9cef-81501c9e858d.png)
7
-
8
- <p align="center">
9
- <a href="https://github.com/GrahamCampbell/Result-Type/actions?query=workflow%3ATests"><img src="https://img.shields.io/github/actions/workflow/status/GrahamCampbell/Result-Type/tests.yml?label=Tests&style=flat-square" alt="Build Status"></img></a>
10
- <a href="https://github.styleci.io/repos/249026522"><img src="https://github.styleci.io/repos/249026522/shield" alt="StyleCI Status"></img></a>
11
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen?style=flat-square" alt="Software License"></img></a>
12
- <a href="https://packagist.org/packages/graham-campbell/result-type"><img src="https://img.shields.io/packagist/dt/graham-campbell/result-type?style=flat-square" alt="Packagist Downloads"></img></a>
13
- <a href="https://github.com/GrahamCampbell/Result-Type/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Result-Type?style=flat-square" alt="Latest Version"></img></a>
14
- </p>
15
-
16
-
17
- ## Installation
18
-
19
- This version requires [PHP](https://www.php.net/) 7.2.5-8.5.
20
-
21
- To get the latest version, simply require the project using [Composer](https://getcomposer.org/):
22
-
23
- ```bash
24
- $ composer require "graham-campbell/result-type:^1.1"
25
- ```
26
-
27
-
28
- ## Security
29
-
30
- If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GrahamCampbell/Result-Type/security/policy).
31
-
32
-
33
- ## License
34
-
35
- Result Type is licensed under [The MIT License (MIT)](LICENSE).
36
-
37
-
38
- ## For Enterprise
39
-
40
- Available as part of the Tidelift Subscription
41
-
42
- The maintainers of `graham-campbell/result-type` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-graham-campbell-result-type?utm_source=packagist-graham-campbell-result-type&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd">
3
- <testsuites>
4
- <testsuite name="Result Type Test Suite">
5
- <directory suffix="Test.php">./tests</directory>
6
- </testsuite>
7
- </testsuites>
8
- <source>
9
- <include>
10
- <directory suffix=".php">./src</directory>
11
- </include>
12
- </source>
13
- </phpunit>
@@ -1,95 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- /*
6
- * This file is part of Result Type.
7
- *
8
- * (c) Graham Campbell <hello@gjcampbell.co.uk>
9
- *
10
- * For the full copyright and license information, please view the LICENSE
11
- * file that was distributed with this source code.
12
- */
13
-
14
- namespace GrahamCampbell\Tests\ResultType;
15
-
16
- use GrahamCampbell\ResultType\Error;
17
- use GrahamCampbell\ResultType\Success;
18
- use PHPUnit\Framework\TestCase;
19
- use RuntimeException;
20
-
21
- class ResultTest extends TestCase
22
- {
23
- public function testSuccessValue(): void
24
- {
25
- self::assertTrue(Success::create('foo')->error()->isEmpty());
26
- self::assertTrue(Success::create('foo')->success()->isDefined());
27
- self::assertSame('foo', Success::create('foo')->success()->get());
28
- }
29
-
30
- public function testSuccessMapping(): void
31
- {
32
- $r = Success::create('foo')
33
- ->map('strtoupper')
34
- ->mapError('ucfirst');
35
-
36
- self::assertTrue($r->success()->isDefined());
37
- self::assertSame('FOO', $r->success()->get());
38
- }
39
-
40
- public function testSuccessFlatMappingSuccess(): void
41
- {
42
- $r = Success::create('foo')->flatMap(function (string $data): Success {
43
- return Success::create('OH YES');
44
- });
45
-
46
- self::assertTrue($r->success()->isDefined());
47
- self::assertSame('OH YES', $r->success()->get());
48
- }
49
-
50
- public function testSuccessFlatMappingError(): void
51
- {
52
- $r = Success::create('foo')->flatMap(function (string $data): Error {
53
- return Error::create('OH NO');
54
- });
55
-
56
- self::assertTrue($r->error()->isDefined());
57
- self::assertSame('OH NO', $r->error()->get());
58
- }
59
-
60
- public function testSuccessFail(): void
61
- {
62
- $result = Success::create('foo');
63
-
64
- $this->expectException(RuntimeException::class);
65
- $this->expectExceptionMessage('None has no value.');
66
-
67
- $result->error()->get();
68
- }
69
-
70
- public function testErrorValue(): void
71
- {
72
- self::assertTrue(Error::create('foo')->error()->isDefined());
73
- self::assertTrue(Error::create('foo')->success()->isEmpty());
74
- self::assertSame('foo', Error::create('foo')->error()->get());
75
- }
76
-
77
- public function testErrorMapping(): void
78
- {
79
- $r = Error::create('foo')
80
- ->map('strtoupper')
81
- ->mapError('ucfirst');
82
-
83
- self::assertSame('Foo', $r->error()->get());
84
- }
85
-
86
- public function testErrorFail(): void
87
- {
88
- $result = Error::create('foo');
89
-
90
- $this->expectException(RuntimeException::class);
91
- $this->expectExceptionMessage('None has no value.');
92
-
93
- $result->success()->get();
94
- }
95
- }
@@ -1,13 +0,0 @@
1
- * text=auto
2
-
3
- /tests export-ignore
4
- /.gitattributes export-ignore
5
- /.github export-ignore
6
- /.gitignore export-ignore
7
- /.travis.yml export-ignore
8
- /Makefile export-ignore
9
- /phpstan-baseline.neon export-ignore
10
- /phpstan.neon.dist export-ignore
11
- /phpunit.xml.dist export-ignore
12
- /README.md export-ignore
13
- /vendor-bin export-ignore
@@ -1,132 +0,0 @@
1
- # CONTRIBUTOR COVENANT CODE OF CONDUCT
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, caste, color, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- hello@gjcampbell.co.uk.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.1, available at
119
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
-
121
- Community Impact Guidelines were inspired by
122
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
-
124
- For answers to common questions about this code of conduct, see the FAQ at
125
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126
- at [https://www.contributor-covenant.org/translations][translations].
127
-
128
- [homepage]: https://www.contributor-covenant.org
129
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
- [Mozilla CoC]: https://github.com/mozilla/diversity
131
- [FAQ]: https://www.contributor-covenant.org/faq
132
- [translations]: https://www.contributor-covenant.org/translations
@@ -1,30 +0,0 @@
1
- # CONTRIBUTION GUIDELINES
2
-
3
- Contributions are **welcome** and will be fully **credited**.
4
-
5
- We accept contributions via pull requests on GitHub. Please review these guidelines before continuing.
6
-
7
- ## Guidelines
8
-
9
- * Please follow the [PSR-12 Coding Style Guide](https://www.php-fig.org/psr/psr-12/).
10
- * Ensure that the current tests pass, and if you've added something new, add the tests where relevant.
11
- * Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
12
- * You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
13
- * If you are changing or adding to the behaviour or public api, you may need to update the docs.
14
- * Please remember that we follow [SemVer](https://semver.org/).
15
-
16
- ## Running Tests
17
-
18
- First, install the dependencies using [Composer](https://getcomposer.org/):
19
-
20
- ```bash
21
- $ make install
22
- ```
23
-
24
- Then run [PHPUnit](https://phpunit.de/) and the static analyzers:
25
-
26
- ```bash
27
- $ make test
28
- ```
29
-
30
- These will also be automatically run by [GitHub Actions](https://github.com/features/actions) against pull requests.
@@ -1,2 +0,0 @@
1
- github: GrahamCampbell
2
- tidelift: "packagist/phpoption/phpoption"
@@ -1,14 +0,0 @@
1
- # SECURITY POLICY
2
-
3
- ## Supported Versions
4
-
5
- After each new major release, the previous release will be supported for no
6
- less than 2 years, unless explicitly stated otherwise. This may mean that there
7
- are multiple supported versions at any given time.
8
-
9
- ## Reporting a Vulnerability
10
-
11
- If you discover a security vulnerability within this package, please send an
12
- email to security@tidelift.com. All security vulnerabilities will be promptly
13
- addressed. Please do not disclose security-related issues publicly until a fix
14
- has been announced.