{"id":21823545,"url":"https://github.com/jbzoo/codestyle","last_synced_at":"2025-04-14T04:31:30.632Z","repository":{"id":38381944,"uuid":"264712897","full_name":"JBZoo/Codestyle","owner":"JBZoo","description":"Collection of QA tools and JBZoo coding-standards","archived":false,"fork":false,"pushed_at":"2024-03-26T20:29:38.000Z","size":289,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T09:20:40.840Z","etag":null,"topics":["codestyle","jbzoo","makefile","phpcs","phpmd","testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JBZoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-17T16:45:44.000Z","updated_at":"2023-03-05T12:16:36.000Z","dependencies_parsed_at":"2024-11-27T17:43:22.809Z","dependency_job_id":null,"html_url":"https://github.com/JBZoo/Codestyle","commit_stats":{"total_commits":303,"total_committers":4,"mean_commits":75.75,"dds":0.5676567656765676,"last_synced_commit":"cde818faaea928c7fa3931ce552884362074c52c"},"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBZoo%2FCodestyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBZoo%2FCodestyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBZoo%2FCodestyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBZoo%2FCodestyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBZoo","download_url":"https://codeload.github.com/JBZoo/Codestyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821708,"owners_count":21166941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codestyle","jbzoo","makefile","phpcs","phpmd","testing","testing-tools"],"created_at":"2024-11-27T17:33:17.953Z","updated_at":"2025-04-14T04:31:30.602Z","avatar_url":"https://github.com/JBZoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JBZoo / Codestyle\n\n[![CI](https://github.com/JBZoo/Codestyle/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/JBZoo/Codestyle/actions/workflows/main.yml?query=branch%3Amaster)    [![Coverage Status](https://coveralls.io/repos/github/JBZoo/Codestyle/badge.svg?branch=master)](https://coveralls.io/github/JBZoo/Codestyle?branch=master)    [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Codestyle/coverage.svg)](https://shepherd.dev/github/JBZoo/Codestyle)    [![Psalm Level](https://shepherd.dev/github/JBZoo/Codestyle/level.svg)](https://shepherd.dev/github/JBZoo/Codestyle)    [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/codestyle/badge)](https://www.codefactor.io/repository/github/jbzoo/codestyle/issues)    \n[![Stable Version](https://poser.pugx.org/jbzoo/codestyle/version)](https://packagist.org/packages/jbzoo/codestyle/)    [![Total Downloads](https://poser.pugx.org/jbzoo/codestyle/downloads)](https://packagist.org/packages/jbzoo/codestyle/stats)    [![Dependents](https://poser.pugx.org/jbzoo/codestyle/dependents)](https://packagist.org/packages/jbzoo/codestyle/dependents?order_by=downloads)    [![GitHub License](https://img.shields.io/github/license/jbzoo/codestyle)](https://github.com/JBZoo/Codestyle/blob/master/LICENSE)\n\n\n\n\nProvides popular tools and general code style standards for all JBZoo projects.\n\n### Makefile\n\nAdd into your Makefile the line to have predefined commands like `test-*`, `help`, `list`, etc.\n\n```makefile\nifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))\n    include ./vendor/jbzoo/codestyle/src/init.Makefile\nendif\n\nupdate: ##@Project Install/Update all 3rd party dependencies\n    $(call title,\"Install/Update all 3rd party dependencies\")\n    @echo \"Composer flags: $(JBZOO_COMPOSER_UPDATE_FLAGS)\"\n    @composer update $(JBZOO_COMPOSER_UPDATE_FLAGS)\n\n\ntest-all: ##@Project Run all project tests at once\n    @make test\n    @make codestyle\n\n```\n\n### Makefile Build-in help\n\n```\nUsage:\n  - `make [target]`\n  - `make [target] OPTION=value`\n  - `ENV_VAR=value make [target]`\n\nMisc:\n  help                          Show this text\n  list                          Full list of targets\n\nProject:\n  autoload                      Dump optimized autoload file for PHP\n  build-phar                    Compile phar file\n  clean                         Cleanup only build directory\n  clean-vendor                  Cleanup all\n  test-all                      Run all project tests at once\n  update                        Install/Update all 3rd party dependencies\n\nTests:\n  codestyle                     Launch all codestyle linters at once\n  test                          Launch PHPUnit Tests (alias \"test-phpunit\")\n  test-composer                 Validates composer.json and composer.lock\n  test-composer-reqs            Checks composer.json the defined dependencies against your code\n  test-performance              Run benchmarks and performance tests\n  test-phan                     Phan - super strict static analyzer for PHP\n  test-phpcpd                   PHPcpd - Find obvious Copy\u0026Paste\n  test-phpcs                    PHPcs - Checking PHP Code Sniffer (PSR-12 + PHP Compatibility)\n  test-phpcsfixer               PhpCsFixer - Check code to follow stylish standards\n  test-phpcsfixer-fix           PhpCsFixer - Auto fix code to follow stylish standards\n  test-phpmd                    PHPmd - Mess Detector Checker\n  test-phpmd-strict             PHPmd - Mess Detector Checker (strict mode)\n  test-phpmnd                   PHPmnd - Magic Number Detector\n  test-phpstan                  PHPStan - Static Analysis Tool\n  test-phpunit                  PHPUnit - Launch General Tests\n  test-psalm                    Psalm - static analysis tool for PHP\n\nReports:\n  report-all                    Build all reports at once\n  report-composer-diff          What has changed after a composer update\n  report-composer-graph         Build composer graph of dependencies\n  report-coveralls              Send coverage report to coveralls.io\n  report-merge-coverage         Merge all coverage reports in one clover file\n  report-pdepend                Build PHP Depend Report\n  report-performance            Build performance summary report\n  report-phploc                 PHPloc - Show code stats\n  report-phpmetrics             Build PHP Metrics Report\n  update-extend                 Checks new compatible versions of 3rd party libraries\n\nTrick: Add into your \"~/.bash_aliases\" the line \"complete -W \"\\`make list\\`\" make\" to use TAB\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbzoo%2Fcodestyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbzoo%2Fcodestyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbzoo%2Fcodestyle/lists"}