{"id":19560420,"url":"https://github.com/codelytv/php-coding_style-codely","last_synced_at":"2025-04-12T13:21:53.322Z","repository":{"id":203061098,"uuid":"707256352","full_name":"CodelyTV/php-coding_style-codely","owner":"CodelyTV","description":"PHP Coding Style rules we use in Codely","archived":false,"fork":false,"pushed_at":"2024-08-05T14:18:15.000Z","size":24,"stargazers_count":53,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T08:03:32.374Z","etag":null,"topics":["coding-style","easy-coding-standard","php","php-cs-fixer","phpcs"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/codelytv/coding-style","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodelyTV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://bit.ly/CodelyTvPro"}},"created_at":"2023-10-19T14:26:17.000Z","updated_at":"2025-03-15T14:43:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"70d5753e-c119-4c87-a71d-403aa228c4f0","html_url":"https://github.com/CodelyTV/php-coding_style-codely","commit_stats":null,"previous_names":["codelytv/php-coding_style-codely"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-coding_style-codely","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-coding_style-codely/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-coding_style-codely/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-coding_style-codely/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodelyTV","download_url":"https://codeload.github.com/CodelyTV/php-coding_style-codely/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571867,"owners_count":21126528,"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":["coding-style","easy-coding-standard","php","php-cs-fixer","phpcs"],"created_at":"2024-11-11T05:07:30.171Z","updated_at":"2025-04-12T13:21:53.317Z","avatar_url":"https://github.com/CodelyTV.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://codely.com\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/10558907/170513882-a09eee57-7765-4ca4-b2dd-3c2e061fdad0.png\" width=\"300px\" height=\"92px\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n  ✍️ Codely's Easy Coding Standards configuration\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/CodelyTV\"\u003e\u003cimg src=\"https://img.shields.io/badge/CodelyTV-OS-green.svg?style=flat-square\" alt=\"Codely Open Source\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pro.codely.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/CodelyTV-PRO-black.svg?style=flat-square\" alt=\"CodelyTV Courses\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Opinionated linting configuration considering modern PHP best practices and providing consistency. 👌\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  Take a look, play and have fun with this.\n  \u003ca href=\"https://github.com/CodelyTV/php-coding_style-codely/stargazers\"\u003eStars are welcome 😊\u003c/a\u003e\n\u003c/p\u003e\n\n## 👀 How to use\n\n1. Install the dependency\n    ```sh\n    composer require --dev codelytv/coding-style\n    ```\n2. Add it to your `ecs.php` file:\n    ```php\n    use CodelyTv\\CodingStyle;\n    use Symplify\\EasyCodingStandard\\Config\\ECSConfig;\n\n    return function (ECSConfig $ecsConfig): void {\n        $ecsConfig-\u003epaths([__DIR__ . '/src',]);\n\n        $ecsConfig-\u003esets([CodingStyle::DEFAULT]);\n\n        // Or this if you prefer to have the code aligned\n        // $ecsConfig-\u003esets([CodingStyle::ALIGNED]);\n    };\n    ```\n3. Execute it:\n    ```sh\n    ./vendor/bin/ecs check\n    ```\n\n## 🤔 What it does\n\n- Lints PHP using PSR-12\n- Extends some config (you can see all the rules [here](src/coding_style.php))\n- Use tabs to indent ([reason](https://www.youtube.com/watch?v=yD2T42zsP7c)). If you want to use spaces, you can add the\n  following line at the end of your `ecs.php`:\n    ```php\n    use Symplify\\EasyCodingStandard\\ValueObject\\Option;\n\n\t$ecsConfig-\u003eindentation(Option::INDENTATION_SPACES);\n    ```\n\n## 📦 How to release a new version\n\nSimply create a new [GitHub Release](https://github.com/CodelyTV/php-coding_style-codely/releases/new) following\nsemantic versioning.\n\n## 👌 Codely Code Quality Standards\n\nPublishing this package we are committing ourselves to the following code quality standards:\n\n- 🤝 Respect **Semantic Versioning**: No breaking changes in patch or minor versions\n- 🤏 No surprises in transitive dependencies: Use the **bare minimum dependencies** needed to meet the purpose\n- 🎯 **One specific purpose** to meet without having to carry a bunch of unnecessary other utilities\n- 📖 **Well documented Readme** showing how to install and use\n- ⚖️ **License favoring Open Source** and collaboration\n","funding_links":["https://bit.ly/CodelyTvPro"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelytv%2Fphp-coding_style-codely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelytv%2Fphp-coding_style-codely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelytv%2Fphp-coding_style-codely/lists"}