Skip to content

Commit

Permalink
Update repository setup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLevti committed Sep 18, 2024
1 parent 6d283a8 commit b09e3e7
Show file tree
Hide file tree
Showing 7 changed files with 5,033 additions and 27 deletions.
8 changes: 6 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
'concat_space' => [
'spacing' => 'one',
],
'compact_nullable_typehint' => true,
'compact_nullable_type_declaration' => true,
'ternary_operator_spaces' => true,
'unary_operator_spaces' => true,
'binary_operator_spaces' => [
Expand Down Expand Up @@ -139,7 +139,11 @@
'short_scalar_cast' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'function_typehint_space' => true,
'type_declaration_spaces' => [
'elements' => [
'function',
],
],
'function_declaration' => [
'closure_function_spacing' => 'one',
],
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ The format is based on [Keep a Changelog][1], and this project adheres to

## [Unreleased]

## [1.0.0] - 2022-11-05
## [1.0.0] - 2024-09-18

### Added

- Initial version of the `poor-plebs/package-template`.
- Initial version of the `bitpanda/cache-utils`.

[1]: https://keepachangelog.com/en/1.1.0/
[2]: https://semver.org/spec/v2.0.0.html

[Unreleased]: https://github.com/Poor-Plebs/package-template/compare/1.0.0...HEAD
[1.0.0]: https://github.com/Poor-Plebs/package-template/releases/1.0.0
[Unreleased]: https://github.com/bitpanda/cache-utils/compare/1.0.0...HEAD
[1.0.0]: https://github.com/bitpanda/cache-utils/releases/1.0.0
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Poor Plebs
Copyright (c) 2022 bitpanda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
30 changes: 15 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "poor-plebs/package-template",
"description": "Put a short one or two sentence description of the package.",
"name": "bitpanda/cache-utils",
"description": "Cache utils is a set of caching tools and cache strategies to build effective caching solutions in your application.",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"PoorPlebs\\PackageTemplate\\": "src/"
"Bitpanda\\CacheUtils\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PoorPlebs\\PackageTemplate\\Tests\\": "tests/"
"Bitpanda\\CacheUtils\\Tests\\": "tests/"
}
},
"authors": [
{
"name": "John Doe",
"email": "john.doe@example.com"
"name": "Petr Levtonov",
"email": "petr.levtonov@bitpanda.com"
}
],
"archive": {
Expand All @@ -43,13 +43,13 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.13.0",
"phpstan/phpstan": "^1.9.0",
"phpunit/phpunit": "^9.5.26",
"friendsofphp/php-cs-fixer": "^3.64.0",
"phpstan/phpstan": "^1.12.0",
"phpunit/phpunit": "^11.3.0",
"roave/security-advisories": "dev-latest"
},
"require": {
"php": "^8.0.0"
"php": "^8.2.0"
},
"scripts": {
"all": [
Expand All @@ -64,11 +64,11 @@
"composer static",
"composer coverage"
],
"lint": "XDEBUG_MODE=off find . -not -path './vendor/*' -type f -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l -n | (! grep -v \"No syntax errors detected\" )",
"cs": "XDEBUG_MODE=off PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --verbose --ansi",
"csf": "XDEBUG_MODE=off PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --verbose --ansi",
"static": "XDEBUG_MODE=off vendor/bin/phpstan --ansi --no-progress --memory-limit=4G analyse",
"test": "XDEBUG_MODE=off vendor/bin/phpunit --no-coverage",
"lint": "find . -not -path './vendor/*' -type f -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l -n | (! grep -v \"No syntax errors detected\" )",
"cs": "vendor/bin/php-cs-fixer fix --dry-run --verbose --ansi",
"csf": "vendor/bin/php-cs-fixer fix --verbose --ansi",
"static": "vendor/bin/phpstan --ansi --no-progress --memory-limit=4G analyse",
"test": "vendor/bin/phpunit --no-coverage",
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text",
"coverage-html": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-html=coverage",
"coverage-clover": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml"
Expand Down
Loading

0 comments on commit b09e3e7

Please sign in to comment.