Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into user_agent
Browse files Browse the repository at this point in the history
* upstream/main: (54 commits)
  [Pager] Doctrine Bridge (#175)
  fuckery (#174)
  [Money] Add Twig Bridge (#173)
  docs
  coverage fix
  typo
  #63 | Link Component (#170)
  Pager Component (#134)
  Pager Contract (#133)
  Update README.md (#124)
  [Logger] Finish up Logger Component (#123)
  Makefile
  [Logger] New Component (#120)
  bug
  [HttpMessage] Helper Methods on Uri to make it easier to create Uri objects with query params (#119)
  bug fixes
  Bug fix
  Making a few changes and breaking shit (#118)
  updating a few docs (#117)
  typo
  ...
  • Loading branch information
JoshuaEstes committed Nov 30, 2023
2 parents d3a568b + 4219657 commit c93e9b8
Show file tree
Hide file tree
Showing 526 changed files with 17,775 additions and 907 deletions.
55 changes: 24 additions & 31 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
# Packages
* @SonsOfPHP/Members

# Make Documentation Team
docs/ @JoshuaEstes

# Each project needs a Team
/src/SonsOfPHP/Bard @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/Money @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/Cqrs @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/Filesystem @JoshuaEstes
/src/SonsOfPHP/Bundle/Cqrs @JoshuaEstes
/src/SonsOfPHP/Bundle/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Bundle/Filesystem @JoshuaEstes
/src/SonsOfPHP/Component/Autoloader @JoshuaEstes
/src/SonsOfPHP/Component/Cache @JoshuaEstes
/src/SonsOfPHP/Component/Clock @JoshuaEstes
/src/SonsOfPHP/Component/Cqrs @JoshuaEstes
/src/SonsOfPHP/Component/Cvs @JoshuaEstes
/src/SonsOfPHP/Component/EventDispatcher @JoshuaEstes
/src/SonsOfPHP/Component/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Component/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Component/Faker @JoshuaEstes
/src/SonsOfPHP/Component/Filesystem @JoshuaEstes
/src/SonsOfPHP/Component/HttpClient @JoshuaEstes
/src/SonsOfPHP/Component/HttpFactory @JoshuaEstes
/src/SonsOfPHP/Component/HttpHandler @JoshuaEstes
/src/SonsOfPHP/Component/HttpMessage @JoshuaEstes
/src/SonsOfPHP/Component/Json @JoshuaEstes
/src/SonsOfPHP/Component/Logger @JoshuaEstes
/src/SonsOfPHP/Component/Money @JoshuaEstes
/src/SonsOfPHP/Component/Pdf @JoshuaEstes
/src/SonsOfPHP/Component/PhoneNumber @JoshuaEstes
/src/SonsOfPHP/Component/Queue @JoshuaEstes
/src/SonsOfPHP/Component/Version @JoshuaEstes

# Each component/contract needs a Team
/src/SonsOfPHP/**/Cache @JoshuaEstes
/src/SonsOfPHP/**/Clock @JoshuaEstes
/src/SonsOfPHP/**/Common @JoshuaEstes
/src/SonsOfPHP/**/Cqrs @JoshuaEstes
/src/SonsOfPHP/**/EventDispatcher @JoshuaEstes
/src/SonsOfPHP/**/EventSourcing @JoshuaEstes
/src/SonsOfPHP/**/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/**/Filesystem @JoshuaEstes
/src/SonsOfPHP/**/HttpFactory @JoshuaEstes
/src/SonsOfPHP/**/HttpMessage @JoshuaEstes
/src/SonsOfPHP/**/Json @JoshuaEstes
/src/SonsOfPHP/**/Link @JoshuaEstes
/src/SonsOfPHP/**/Logger @JoshuaEstes
/src/SonsOfPHP/**/Money @JoshuaEstes
/src/SonsOfPHP/**/Pager @JoshuaEstes
/src/SonsOfPHP/**/Version @JoshuaEstes
44 changes: 40 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
documentation:
- docs/*

Bard:
- docs/bard/*
- src/SonsOfPHP/Bard/*

Cache:
- docs/components/cache/*
- src/SonsOfPHP/**/Cache/*

Clock:
- docs/components/clock/*
- src/SonsOfPHP/Component/Clock/*
- src/SonsOfPHP/**/Clock/*

Common:
- docs/components/common/*
- src/SonsOfPHP/**/Common/*

CQRS:
- docs/components/cqrs/*
Expand All @@ -25,14 +30,45 @@ FeatureToggle:
- docs/components/feature-toggle/*
- src/SonsOfPHP/**/FeatureToggle/*

Filesystem:
- docs/components/filesystem/*
- src/SonsOfPHP/**/Filesystem/*

HttpFactory:
- docs/components/http-factory/*
- src/SonsOfPHP/**/HttpFactory/*

HttpMessage:
- docs/components/http-message/*
- src/SonsOfPHP/**/HttpMessage/*

JSON:
- docs/components/json/*
- src/SonsOfPHP/**/Json/*

Link:
- docs/components/link/*
- src/SonsOfPHP/**/Link/*

Logger:
- docs/components/logger/*
- src/SonsOfPHP/**/Logger/*

Money:
- docs/components/money/*
- src/SonsOfPHP/**/Money/*

Pager:
- docs/components/pager/*
- src/SonsOfPHP/**/Pager/*

Version:
- docs/components/version/*
- src/SonsOfPHP/**/Version/*

Contracts:
- docs/contracts/**
- src/SonsOfPHP/Contract/**

documentation:
- docs/**
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Description



## Checklist
- [ ] Updated CHANGELOG files
- [ ] Updated Documentation
- [ ] Unit Tests Created
- [ ] php-cs-fixer
47 changes: 47 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Codecov
on:
push:
branches:
- main
paths:
- 'src/**'
pull_request:
branches:
- main
paths:
- 'src/**'

permissions:
contents: read

jobs:
test:
name: Codecov
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1']
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
extensions: apcu
- name: Cache Composer Packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- run: make install phpunit
env:
XDEBUG_MODE: coverage
PHPUNIT_OPTIONS: --coverage-clover coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
25 changes: 13 additions & 12 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: "PR Labeler"
name: "Pull Request Labeler"
on:
- pull_request_target
- pull_request_target

jobs:
label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: apcu
- name: Cache Composer Packages
id: composer-cache
uses: actions/cache@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/docs/coverage/
/docs/infection/
/site/
vendor/
/.php-cs-fixer.cache
Expand All @@ -10,3 +11,4 @@ phpunit.xml
composer.phar
packages.json
results.sarif
infection.log
8 changes: 6 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
->exclude('vendor')
;

$config = new PhpCsFixer\Config();
return $config->setRules([
return (new PhpCsFixer\Config())->setRules([
// Rule sets
'@PER-CS' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,

// Rules
'no_unused_imports' => true,
'ordered_imports' => true,
'php_unit_test_class_requires_covers' => true,
])->setFinder($finder);
32 changes: 18 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
To get the diff for a specific change, go to https://github.com/SonsOfPHP/sonsofphp/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.4...v0.3.5

<!--
Please Use (and keep them organized in this order as well):
- Added for new features.
- Changed for changes in existing functionality.
- Deprecated for soon-to-be removed features.
- Removed for now removed features.
- Fixed for any bug fixes.
- Security in case of vulnerabilities.
Examples:
* [PR #69](https://github.com/SonsOfPHP/sonsofphp/pull/69) Added new feature
-->

## [Unreleased]

* [PR #51](https://github.com/SonsOfPHP/sonsofphp/pull/51) Added new Filesystem component
* [PR #59](https://github.com/SonsOfPHP/sonsofphp/pull/59) Added new HttpMessage component
* [PR #59](https://github.com/SonsOfPHP/sonsofphp/pull/59) Added new HttpFactory component
* [PR #70](https://github.com/SonsOfPHP/sonsofphp/pull/70) Added new Core contract
* [PR #112](https://github.com/SonsOfPHP/sonsofphp/pull/112) [Cache] Added new component
* [PR #119](https://github.com/SonsOfPHP/sonsofphp/pull/119) [HttpMessage] Added `withQueryParams` and `withQueryParam` to `Uri`
* [PR #120](https://github.com/SonsOfPHP/sonsofphp/pull/120) [Logger] New Component
* [PR #133](https://github.com/SonsOfPHP/sonsofphp/pull/133) [Pager] New Contract
* [PR #134](https://github.com/SonsOfPHP/sonsofphp/pull/134) [Pager] New Component
* [PR #170](https://github.com/SonsOfPHP/sonsofphp/pull/170) [Link] New Component (PSR-13)
* [PR #173](https://github.com/SonsOfPHP/sonsofphp/pull/173) [Money] Twig Bridge

## [0.3.8]

Forgot to add stuff ;p

## [0.3.7]

Expand All @@ -39,6 +41,8 @@ Examples:
* [EventSourcing] Deprecated classes in Symfony Bridge to better organize the library
* [CQRS] Adding Symfony Bundle

[Unreleased]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.7...HEAD
[Unreleased]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.8...HEAD
[0.3.8]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.8...v0.3.9
[0.3.7]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.7...v0.3.8
[0.3.6]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.6...v0.3.7
[0.3.5]: https://github.com/SonsOfPHP/sonsofphp/compare/v0.3.5...v0.3.6
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Joshua Estes
Copyright 2022 to Present Joshua Estes

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading

0 comments on commit c93e9b8

Please sign in to comment.