diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 7a2e0ce..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: userfrosting # Replace with a single Open Collective username -ko_fi: lcharette # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 2ab6792..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,2 +0,0 @@ -🛑 STOP! -Issues should be opened on the main repo : https://github.com/userfrosting/UserFrosting/issues diff --git a/.gitignore b/.gitignore index f485923..b51de1e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,10 +6,8 @@ _meta .phpunit.cache .phpdoc -# OS & Editors +# OS .DS_Store -*.komodoproject -.vscode # Testing artifacts tests/Cache/store diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..de32a0c --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "junstyle.php-cs-fixer", + "xdebug.php-debug", + "neilbrayfield.php-docblocker", + "bmewburn.vscode-intelephense-client", + "sanderronde.phpstan-vscode" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..78a1630 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for XDebug", + "type": "php", + "request": "launch", + "port": 9000 + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..bf4e7d1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,36 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "PHPUnit", + "type": "shell", + "options": { + "env": { + "XDEBUG_CONFIG": "idekey=VSCODE" + } + }, + "command": "printf '\\33c\\e[3J' && vendor/bin/phpunit --stop-on-failure --stop-on-error", + // "command": "printf '\\33c\\e[3J' && vendor/bin/phpunit --filter FormValidationArrayAdapterTest --stop-on-failure --stop-on-error --display-warnings", + + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "PHP CS Fixer", + "type": "shell", + "command": "vendor/bin/php-cs-fixer fix", + "problemMatcher": [] + }, + { + "label": "PHPStan", + "type": "shell", + "command": "vendor/bin/phpstan analyse", + "problemMatcher": [] + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 8a6f230..e59bc27 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ See main [UserFrosting Documentation](https://learn.userfrosting.com) and docume ## [License](LICENSE.md) -## [Style Guide](STYLE-GUIDE.md) +## [Style Guide](https://github.com/userfrosting/.github/blob/main/.github/STYLE-GUIDE.md) ## [Testing](RUNNING_TESTS.md) diff --git a/STYLE-GUIDE.md b/STYLE-GUIDE.md deleted file mode 100644 index 76438af..0000000 --- a/STYLE-GUIDE.md +++ /dev/null @@ -1,50 +0,0 @@ -# Style guide for contributing - -## PHP - -All PHP contributions must adhere to [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/) specifications. - -In addition: - -### Documentation - -- All documentation blocks must adhere to the [PHPDoc](https://phpdoc.org/) format and syntax. -- All PHP files MUST contain the following documentation block immediately after the opening `