{"id":15063536,"url":"https://github.com/arodu/cakelte","last_synced_at":"2025-04-06T16:15:40.932Z","repository":{"id":38224156,"uuid":"256855786","full_name":"arodu/cakelte","owner":"arodu","description":"AdminLTE plugin for CakePHP","archived":false,"fork":false,"pushed_at":"2025-03-22T17:12:28.000Z","size":33278,"stargazers_count":32,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"2.next-cake5","last_synced_at":"2025-03-30T15:11:11.078Z","etag":null,"topics":["admin","adminlte","adminlte3","bootstrap","bootstrap4","bootstrap5","cakephp","cakephp5","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/arodu/cakelte","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/arodu.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":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"arodu","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"custom":null}},"created_at":"2020-04-18T21:24:07.000Z","updated_at":"2025-03-22T17:14:11.000Z","dependencies_parsed_at":"2024-04-27T14:29:45.920Z","dependency_job_id":"ce621322-283c-4ae0-8ffd-cdc914905e19","html_url":"https://github.com/arodu/cakelte","commit_stats":{"total_commits":113,"total_committers":2,"mean_commits":56.5,"dds":"0.33628318584070793","last_synced_commit":"70b7ed8c2997909e076dbdeb811eb15294fb0ed8"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodu%2Fcakelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodu%2Fcakelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodu%2Fcakelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodu%2Fcakelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arodu","download_url":"https://codeload.github.com/arodu/cakelte/tar.gz/refs/heads/2.next-cake5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509238,"owners_count":20950232,"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":["admin","adminlte","adminlte3","bootstrap","bootstrap4","bootstrap5","cakephp","cakephp5","php"],"created_at":"2024-09-25T00:04:21.248Z","updated_at":"2025-04-06T16:15:40.909Z","avatar_url":"https://github.com/arodu.png","language":"PHP","funding_links":["https://ko-fi.com/arodu","https://ko-fi.com/H2H3XTSGP"],"categories":[],"sub_categories":[],"readme":"# CakeLTE: AdminLTE plugin for CakePHP 5.x\n\n[![Latest Version](https://img.shields.io/github/v/release/arodu/cakelte.svg?style=for-the-badge)](https://github.com/arodu/cakelte/releases)\n[![CakePHP](https://img.shields.io/packagist/dependency-v/arodu/cakelte/cakephp%2Fcakephp?style=for-the-badge)](https://cakephp.org/)\n[![Packagist License](https://img.shields.io/packagist/l/arodu/cakelte?style=for-the-badge)](LICENSE.md)\n[![GitHub Repo stars](https://img.shields.io/github/stars/arodu/cakelte?style=for-the-badge)](https://github.com/arodu/cakelte/stargazers)\n[![Total Downloads](https://img.shields.io/packagist/dt/arodu/cakelte.svg?style=for-the-badge)](https://packagist.org/packages/arodu/cakelte)\n\nIf it's helpful you can buy me a coffee, thanks!\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H3XTSGP)\n\n## Getting Started\n\n### Dependencies\n\n- [FriendsOfCake/bootstrap-ui](https://github.com/FriendsOfCake/bootstrap-ui), transparently use Bootstrap 4 with CakePHP 4.\n- [AdminLTE 3.2](https://adminlte.io/), bootstrap 4 admin theme.\n\n### Installing\n\nYou can install this plugin into your CakePHP application using [composer](https://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```bash\ncomposer require arodu/cakelte\n```\n\n## Configuration\n\nYou can load the plugin using the shell command:\n\n```bash\nbin/cake plugin load CakeLte\n```\n\nadd AdminLTE symlink to webroot\n```bash\nbin/cake cakelte install\n```\n\n## How to use\n\nCopy the file `vendor/arodu/cakelte/config/cakelte.php` to `config/cakelte.php`\n```bash\ncp vendor/arodu/cakelte/config/cakelte.php config/cakelte.php\n```\nIn this file you can change the cakelte configuration options\n\n\nuse trait into `src/View/AppView.php` _(Recomended)_\n```php\nnamespace App\\View;\n\nuse Cake\\View\\View;\nuse CakeLte\\View\\CakeLteTrait;\n\nclass AppView extends View{\n  use CakeLteTrait;\n\n  public string $layout = 'CakeLte.default';\n\n  public function initialize(): void{\n      parent::initialize();\n      $this-\u003einitializeCakeLte();\n      //...\n  }\n}\n```\n\nor you can extends from CakeLteView\n\n```php\nnamespace App\\View;\n\nuse Cake\\View\\View;\nuse CakeLte\\View\\CakeLteView;\n\nclass AppView extends CakeLteView{\n\n  public function initialize(): void{\n    parent::initialize();\n    //...\n  }\n}\n```\n\nOptions layouts\n\n- `CakeLte.default`\n- `CakeLte.login`\n- `CakeLte.top-nav`\n\n### Create code from bake\n\n```bash\nbin/cake bake all [command] -t CakeLte\n\nbin/cake bake template [command] -t CakeLte login\nbin/cake bake template [command] -t CakeLte register\nbin/cake bake template [command] -t CakeLte recovery\n```\n\nTo modify the template you can copy one or all the files within your project, copying the following files in the folder `templates/plugin/CakeLte/` and keeping the same structure of `templates/`\n\nReplace the files elements\n\n- Layouts\n  - `templates/layout/default.php`\n  - `templates/layout/login.php`\n  - `templates/layout/top-nav.php`\n- Content\n  - `templates/element/content/header.php`\n- Header navbar\n  - `templates/element/header/main.php`\n  - `templates/element/header/menu.php`\n  - `templates/element/header/messages.php`\n  - `templates/element/header/notifications.php`\n  - `templates/element/header/search-default.php`\n  - `templates/element/header/search-block.php`\n- Footer\n  - `templates/element/footer/main.php`\n- Left sidebar\n  - `templates/element/sidebar/main.php`\n  - `templates/element/sidebar/menu.php`\n  - `templates/element/sidebar/search.php`\n  - `templates/element/sidebar/user.php`\n- Right sidebar\n  - `templates/element/aside/main.php`\n\nOr you can use the following command to copy all files\n```bash\nbin/cake cakelte copy_files --all\n```\n\n## Page debug\n\nLink to debug\n\n```php\necho $this-\u003eHtml-\u003elink(__('CakeLTE debug page'), '/cake_lte/debug' );\n\n// {your-url}/cake_lte/debug\n```\n\n![Page Debug with default layout](docs/page-debug_default.png)\n\n![Page Debug with top-nav layour](docs/page-debug_top-nav.png)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farodu%2Fcakelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farodu%2Fcakelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farodu%2Fcakelte/lists"}