feat: bootstrap standard PHP project with CI: Rector, PHPStan, PHPUnit#1
Merged
Merged
Conversation
… and PHPUnit Agent-Logs-Url: https://github.com/PHPDevsr/php-profiler/sessions/a051b999-61f6-47e8-a0d0-14a610298fbd Co-authored-by: ddevsr <97607754+ddevsr@users.noreply.github.com>
…n vulnerability Agent-Logs-Url: https://github.com/PHPDevsr/php-profiler/sessions/a051b999-61f6-47e8-a0d0-14a610298fbd Co-authored-by: ddevsr <97607754+ddevsr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CI Rector, PHPStan, and PHPUnit to standard PHP project
Bootstrap standard PHP project with CI: Rector, PHPStan, PHPUnit
Apr 18, 2026
Contributor
|
@copilot Minimum PHP 8.3, phpunit/pcov minimum v11 |
…CI matrices Agent-Logs-Url: https://github.com/PHPDevsr/php-profiler/sessions/e596e650-302f-4077-a077-26b536bdd39a Co-authored-by: ddevsr <97607754+ddevsr@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initialises the
php-profilerrepo from a bare README into a fully structured PHP library with static analysis and test automation.Project Structure
src/Profiler.php— core profiler class (start/stop, period control, log collection, runtime guards)tests/ProfilerTest.php— PHPUnit 12 test suite covering all public API pathscomposer.json— library manifest; dev deps: PHPStan 2.x, Rector 2.x, PHPUnit 12.x, Tachycardia, phpcovTooling Config
rector.php— code quality, dead code, early-return, and coding-style rule sets; targets PHP 8.3phpstan.neon.dist— level 9, scanssrc/+tests/phpunit.xml.dist— PHPUnit 12 schema, Tachycardia extension, coverage reports underbuild/CI Workflows (
.github/workflows/)test-phpunit.ymlmain,**.phptest-phpstan.ymlmain,**.php/phpstan*test-rector.ymlmain,src/**.phpcheck-conflict.ymlcheck-signing.ymlmaindependency-review.ymlRequirements
phpunit/phpcov:^11.0 || ^12.0Security
phpunit/phpunitpinned to^12.5.22— the first release patching the argument-injection-via-INI-newline vulnerability (affected<= 12.5.21).phpunit/phpcovset to^11.0 || ^12.0to allow flexibility while remaining compatible. PHPUnit 12 also requires renaming<bootstrap>→<extension>inside<extensions>inphpunit.xml.dist.Original prompt