{"id":19571757,"url":"https://github.com/loadsys/cakephp-loadsystheme","last_synced_at":"2025-10-18T05:04:00.033Z","repository":{"id":34334215,"uuid":"38254322","full_name":"loadsys/CakePHP-LoadsysTheme","owner":"loadsys","description":"Bake templates for Cake 3 projects that match the Loadsys codesniffer. Rolled into the Loadsys CakePHP Skeleton as a sub-dependency.","archived":false,"fork":false,"pushed_at":"2016-06-20T02:30:42.000Z","size":76,"stargazers_count":2,"open_issues_count":13,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-04T20:51:19.265Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loadsys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-29T15:13:51.000Z","updated_at":"2019-08-18T16:47:16.000Z","dependencies_parsed_at":"2022-09-14T03:51:33.698Z","dependency_job_id":null,"html_url":"https://github.com/loadsys/CakePHP-LoadsysTheme","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2FCakePHP-LoadsysTheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2FCakePHP-LoadsysTheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2FCakePHP-LoadsysTheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2FCakePHP-LoadsysTheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadsys","download_url":"https://codeload.github.com/loadsys/CakePHP-LoadsysTheme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251085145,"owners_count":21533821,"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-11T06:19:56.264Z","updated_at":"2025-10-18T05:03:54.997Z","avatar_url":"https://github.com/loadsys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loadsys Bake Theme for CakePHP\n\n[![Latest Version](https://img.shields.io/github/release/loadsys/CakePHP-LoadsysTheme.svg?style=flat-square)](https://github.com/loadsys/CakePHP-LoadsysTheme/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/loadsys/cakephp-loadsys-theme.svg?style=flat-square)](https://packagist.org/packages/loadsys/cakephp-loadsys-theme)\n\n\u003c!--\n[![Build Status](https://travis-ci.org/loadsys/CakePHP-LoadsysTheme.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/loadsys/CakePHP-LoadsysTheme)\n[![Coverage Status](https://coveralls.io/repos/loadsys/CakePHP-LoadsysTheme/badge.svg)](https://coveralls.io/r/loadsys/CakePHP-LoadsysTheme)\n--\u003e\n\nA CakePHP 3.x bake generation theme that matches Loadsys' code sniffer standards. It's designed to dovetail with our [CakePHP App Skeleton](https://github.com/loadsys/CakePHP-Skeleton).\n\n\n## Requirements\n\n* CakePHP 3.x\n\n\n## Installation\n\n````bash\n$ composer require loadsys/cakephp-loadsys-theme:~1.0\n````\n\n_This plugin includes Bake in its own composer dependencies, so when using this theme you do not need to include it separately in your projects._\n\n\n## Usage\n\n* Add this plugin to your application by adding this line to your bootstrap.php\n\n````php\nCakePlugin::load('LoadsysTheme', ['bootstrap' =\u003e true, 'routes' =\u003e false]);\n````\n\n* To use when baking, use the CLI option `--theme LoadsysTheme` like so\n\n````bash\n$ ./vendor/bin/cake bake all --theme LoadsysTheme name-of-thing\n````\n\n## Notable Changes\n\n### Tabs instead of spaces\n\nLoadsys has chosen to ignore the requirement of PSR-2 to use spaces for indenting. We've found tabs to be more convenient, and we're keeping them. If you disagree, that's fine -- this plugin isn't going to be much use to you.\n\n### K\u0026R/1TBS Braces\n\nWe're also sticking to [K\u0026R style](https://en.wikipedia.org/wiki/Indent_style#K.26R_style) braces for everything.\n\n```php\n\tpublic function foo() {\n\t\techo 'hi';\n\t}\n```\n\n### AppTable\n\nThe core team believes that using AppController and AppView continues to provide significant value to the framework ([thread](https://github.com/cakephp/cakephp/issues/4421#issuecomment-53759646)), but does not feel that hold true for AppTable (or AppEntity). We disagree.\n\n`Table` classes baked by this plugin extend from a parent [App]Table class (conveniently still called `Table` thanks to PHP namespaces.) The [Table](https://github.com/loadsys/CakePHP-Skeleton/tree/master/src/Model/Table/Table.php) class it depends upon is provided from the [Loadsys CakePHP Skeleton](https://github.com/loadsys/CakePHP-Skeleton). As in Cake 2, it's safe to completely ignore this file, provided it is at least present in your app. If you need a Table class baked in which you wish to change this, you must either bake using Cake's default theme or modify the classes after baking them.\n\nAdditionally, because our `table.ctp` template assumes that our Skeleton's base Table class will be used, we suppress certain parts of the table baking process. The [App]Table class sets up the primary key, adds the Timestamp and CreatorModifier behaviors, defines two default associations to Creators and Modifiers in the Users table, and suppresses validation for the 5 related fields. It would therefore be redundant and defeat the purpose of the based Table class to bake tables that repeated these steps, so they are skipped.\n\n\n## Contributing\n\n### Code of Conduct\n\nThis project has adopted the Contributor Covenant as its [code of conduct](CODE_OF_CONDUCT.md). All contributors are expected to adhere to this code. [Translations are available](http://contributor-covenant.org/).\n\n### Reporting Issues\n\nPlease use [GitHub Isuses](https://github.com/loadsys/CakePHP-LoadsysTheme/issues) for listing any known defects or issues.\n\n### Development\n\nWhen developing this plugin, please fork and issue a PR for any new development.\n\n### Running Tests\n\n* `vendor/bin/phpunit --coverage-html=tmp/coverage/`\n* `vendor/bin/phpcs`\n\n\n## License ##\n\n[MIT](https://github.com/loadsys/CakePHP-LoadsysTheme/blob/master/LICENSE.md)\n\n\n## Copyright ##\n\n[Loadsys Web Strategies](http://www.loadsys.com) 2016\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsys%2Fcakephp-loadsystheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadsys%2Fcakephp-loadsystheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsys%2Fcakephp-loadsystheme/lists"}