{"id":20603331,"url":"https://github.com/bitbagcommerce/coding-standard","last_synced_at":"2025-04-15T02:01:34.398Z","repository":{"id":42629420,"uuid":"428596190","full_name":"BitBagCommerce/coding-standard","owner":"BitBagCommerce","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-20T12:15:30.000Z","size":37,"stargazers_count":1,"open_issues_count":4,"forks_count":8,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-04-14T11:51:33.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BitBagCommerce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-16T09:40:17.000Z","updated_at":"2024-06-19T06:18:07.442Z","dependencies_parsed_at":"2024-06-19T06:18:01.901Z","dependency_job_id":null,"html_url":"https://github.com/BitBagCommerce/coding-standard","commit_stats":{"total_commits":26,"total_committers":9,"mean_commits":2.888888888888889,"dds":0.8461538461538461,"last_synced_commit":"52a3e72395d6cafe83881b7b450fe5f812131723"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBagCommerce%2Fcoding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBagCommerce%2Fcoding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBagCommerce%2Fcoding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBagCommerce%2Fcoding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitBagCommerce","download_url":"https://codeload.github.com/BitBagCommerce/coding-standard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991546,"owners_count":21194894,"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":[],"created_at":"2024-11-16T09:16:57.451Z","updated_at":"2025-04-15T02:01:34.364Z","avatar_url":"https://github.com/BitBagCommerce.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# BitBag Coding Standard\n\n----\n\n\n\n\nAt BitBag we do believe in open source. However, we are able to do it just because of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us to work  together, feel free to reach out. You will find out more about our professional services, technologies, and contact details at [https://bitbag.io/](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding_standard).\n\nLike what we do? Want to join us? Check out our job listings on our [career page](https://bitbag.io/career/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=career). Not familiar with Symfony \u0026 Sylius yet, but still want to start with us? Join our [academy](https://bitbag.io/pl/akademia?utm_source=github\u0026utm_medium=url\u0026utm_campaign=akademia)!\n\n## Table of Content\n\n***\n\n* [Overview](#overview)\n* [Support](#we-are-here-to-help)\n* [Installation](#installation)\n    * [Usage](#usage)\n    * [Customization](#customization)\n* [About us](#about-us)\n    * [Community](#community)\n* [Demo](#demo-sylius-shop)\n* [License](#license)\n* [Contact](#contact)\n\n# Overview\n\n----\n[BitBag](https://bitbag.io/) coding standard helps you produce solid and maintainable code.\nAt [BitBag Coding Bible](https://github.com/BitBagCommerce/BitBagBible) you can get familiar with standard we have\nimplemented in our library. [ECS](https://github.com/symplify/easy-coding-standard)\nand [PHPStan](https://github.com/phpstan/phpstan) are responsible for keeping your code in order.\n\n## We are here to help\nThis **open-source library was developed to help the community**. If you have any additional questions, would like help with installing or configuring the plugin, or need any assistance with your project - let us know!\n\n[![](https://bitbag.io/wp-content/uploads/2020/10/button-contact.png)](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding_standard)\n\n\n# Installation\n\n```bash\ncomposer require bitbag/coding-standard --dev\n```\n\nCreate `ecs.php` file with following lines or add import line to your existing file if you have one\n```php\n\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Symplify\\EasyCodingStandard\\Config\\ECSConfig;\n\nreturn static function (ECSConfig $config): void {\n\n    // Change this if you want to automatically add BitBag OpenSource Header\n    putenv('ALLOW_BITBAG_OS_HEADER=0');\n    \n    $config-\u003eimport('vendor/bitbag/coding-standard/ecs.php');\n    $config-\u003epaths(['src', 'tests']);\n};\n\n```\nThen create `phpstan.neon` file with the following lines or add include line at the beginning of your existing file if you have one\n```neon\nincludes:\n    - vendor/bitbag/coding-standard/phpstan.neon\n```\n\n## Usage\n\nJust like with standard ECS, for example to check /src dir:\n```bash\n./vendor/bin/ecs check src\n```\nIf ECS found any standard violations, you can fix it by:\n```bash\n./vendor/bin/ecs check src --fix\n```\nTo check /src dir by PHPStan:\n```bash\n./vendor/bin/phpstan analyse src\n```\n\n## Customization\n\n#### ECS\nIt's possible to extends `root/ecs.php` by your own fixers\n```php\nuse Symplify\\EasyCodingStandard\\Config\\ECSConfig;\nuse Your\\Place\\For\\Fixer\\FooBarFixer;\n...\nreturn static function (ECSConfig $config): void {\n$services = $config-\u003eservices();\n$services-\u003eset(FooBarFixer::class);\n```\n\n#### PHPStan\nYou can set PHPStan rule level with following commands\n```bash\n./vendor/bin/phpstan analyze src --level=8\n./vendor/bin/phpstan analyze tests --level=5\n```\nor you can customize configuration in `phpstan.neon` file\n```neon\nincludes:\n    - vendor/bitbag/coding-standard/phpstan.neon\n\nparameters:\n    level: max\n    paths:\n        - src\n        - tests\n```\n\n## Troubleshooting\n\n### Sylius 1.12 support\n\nIf you have an issue with dependencies on Sylius v1.12, please upgrade your PHPUnit version to 9.5 or higher.\n\n# About us\n\n---\n\nBitBag is a company of people who **love what they do** and do it right. We fulfill the eCommerce technology stack with **Sylius**, Shopware, Akeneo, and Pimcore for PIM, eZ Platform for CMS, and VueStorefront for PWA. Our goal is to provide real digital transformation with an agile solution that scales with the **clients’ needs**. Our main area of expertise includes eCommerce consulting and development for B2C, B2B, and Multi-vendor Marketplaces.\u003c/br\u003e\nWe are advisers in the first place. We start each project with a diagnosis of problems, and an analysis of the needs and **goals** that the client wants to achieve.\u003c/br\u003e\nWe build **unforgettable**, consistent digital customer journeys on top of the **best technologies**. Based on a detailed analysis of the goals and needs of a given organization, we create dedicated systems and applications that let businesses grow.\u003cbr\u003e\nOur team is fluent in **Polish, English, German and, French**. That is why our cooperation with clients from all over the world is smooth.\n\n**Some numbers from BitBag regarding Sylius:**\n- 50+ **experts** including consultants, UI/UX designers, Sylius trained front-end and back-end developers,\n- 120+ projects **delivered** on top of Sylius,\n- 25+ **countries** of BitBag’s customers,\n- 4+ **years** in the Sylius ecosystem.\n\n**Our services:**\n- Business audit/Consulting in the field of **strategy** development,\n- Data/shop **migration**,\n- Headless **eCommerce**,\n- Personalized **software** development,\n- **Project** maintenance and long term support,\n- Technical **support**.\n\n**Key clients:** Mollie, Guave, P24, Folkstar, i-LUNCH, Elvi Project, WestCoast Gifts.\n\n---\n\nIf you need some help with Sylius development, don't be hesitated to contact us directly. You can fill the form on [this site](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding_standard) or send us an e-mail at hello@bitbag.io!\n\n---\n\n[![](https://bitbag.io/wp-content/uploads/2021/08/sylius-badges-transparent-wide.png)](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding_standard)\n\n## Community\n\n----\n\nFor online communication, we invite you to chat with us \u0026 other users on [Sylius Slack](https://sylius-devs.slack.com/).\n\n# Demo Sylius Shop\n\n---\n\nWe created a demo app with some useful use-cases of plugins!\nVisit [sylius-demo.bitbag.io](https://sylius-demo.bitbag.io/) to take a look at it. The admin can be accessed under\n[sylius-demo.bitbag.io/admin/login](https://sylius-demo.bitbag.io/admin/login) link and `bitbag: bitbag` credentials.\nPlugins that we have used in the demo:\n\n| BitBag's Plugin | GitHub | Sylius' Store|\n| ------ | ------ | ------|\n| ACL Plugin | *Private. Available after the purchasing.*| https://plugins.sylius.com/plugin/access-control-layer-plugin/|\n| Braintree Plugin | https://github.com/BitBagCommerce/SyliusBraintreePlugin |https://plugins.sylius.com/plugin/braintree-plugin/|\n| CMS Plugin | https://github.com/BitBagCommerce/SyliusCmsPlugin | https://plugins.sylius.com/plugin/cmsplugin/|\n| Elasticsearch Plugin | https://github.com/BitBagCommerce/SyliusElasticsearchPlugin | https://plugins.sylius.com/plugin/2004/|\n| Mailchimp Plugin | https://github.com/BitBagCommerce/SyliusMailChimpPlugin | https://plugins.sylius.com/plugin/mailchimp/ |\n| Multisafepay Plugin | https://github.com/BitBagCommerce/SyliusMultiSafepayPlugin |\n| Wishlist Plugin | https://github.com/BitBagCommerce/SyliusWishlistPlugin | https://plugins.sylius.com/plugin/wishlist-plugin/|\n| **Sylius' Plugin** | **GitHub** | **Sylius' Store** |\n| Admin Order Creation Plugin | https://github.com/Sylius/AdminOrderCreationPlugin | https://plugins.sylius.com/plugin/admin-order-creation-plugin/ |\n| Invoicing Plugin | https://github.com/Sylius/InvoicingPlugin | https://plugins.sylius.com/plugin/invoicing-plugin/ |\n| Refund Plugin | https://github.com/Sylius/RefundPlugin | https://plugins.sylius.com/plugin/refund-plugin/ |\n\n**If you need an overview of Sylius' capabilities, schedule a consultation with our expert.**\n\n[![](https://bitbag.io/wp-content/uploads/2020/10/button_free_consulatation-1.png)](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding_standard)\n\n## Additional resources for developers\n\n---\nTo learn more about our contribution workflow and more, we encourage you to use the following resources:\n* [Sylius Documentation](https://docs.sylius.com/en/latest/)\n* [Sylius Contribution Guide](https://docs.sylius.com/en/latest/contributing/)\n* [Sylius Online Course](https://sylius.com/online-course/)\n\n## License\n\n---\n\nThis plugin's source code is completely free and released under the terms of the MIT license.\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.)\n\n## Contact\n\n---\nIf you want to contact us, the best way is to fill the form on [our website](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding-standard) or send us an e-mail to hello@bitbag.io with your question(s). We guarantee that we answer as soon as we can!\n\n[![](https://bitbag.io/wp-content/uploads/2021/08/badges-bitbag.png)](https://bitbag.io/contact-us/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=coding-standard)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbagcommerce%2Fcoding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbagcommerce%2Fcoding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbagcommerce%2Fcoding-standard/lists"}