{"id":23439563,"url":"https://github.com/ciricihq/cake-blocks","last_synced_at":"2025-04-13T07:53:00.627Z","repository":{"id":56953008,"uuid":"53129246","full_name":"ciricihq/cake-blocks","owner":"ciricihq","description":"A really simple plugin that allows you to manage and display blocks of content","archived":false,"fork":false,"pushed_at":"2019-05-29T10:46:11.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T07:52:53.997Z","etag":null,"topics":["cake-plugin","cakephp","plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ciricihq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T10:56:36.000Z","updated_at":"2017-01-30T16:23:43.000Z","dependencies_parsed_at":"2022-08-21T03:40:23.544Z","dependency_job_id":null,"html_url":"https://github.com/ciricihq/cake-blocks","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricihq%2Fcake-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricihq%2Fcake-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricihq%2Fcake-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricihq%2Fcake-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciricihq","download_url":"https://codeload.github.com/ciricihq/cake-blocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681493,"owners_count":21144700,"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":["cake-plugin","cakephp","plugin"],"created_at":"2024-12-23T15:30:22.206Z","updated_at":"2025-04-13T07:53:00.604Z","avatar_url":"https://github.com/ciricihq.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"CakePHP Blocks Plugin\n=====================\n\n[![Build Status](https://img.shields.io/travis/ciricihq/cake-blocks/master.svg?style=flat-square)](https://travis-ci.org/ciricihq/cake-blocks)\n[![Coverage](https://img.shields.io/coveralls/ciricihq/cake-blocks.svg?style=flat-square)](https://coveralls.io/github/ciricihq/cake-blocks)\n[![Total Downloads](https://img.shields.io/packagist/dt/ciricihq/blocks.svg?style=flat-square)](https://packagist.org/packages/ciricihq/blocks)\n[![License](https://img.shields.io/github/license/ciricihq/cake-blocks.svg?style=flat-square)](LICENSE.md)\n\nA really simple plugin that allows you to manage and show small content blocks.\n\nInstall\n-------\n\nUsing [Composer][composer]:\n\n```\ncomposer require ciricihq/blocks\n```\n\nYou then need to load the plugin. You can use the shell command:\n\n```\nbin/cake plugin load Cirici/Blocks\n```\n\nor by manually adding statement shown below to your app's `config/bootstrap.php`:\n\n```php\nPlugin::load('Cirici/Blocks');\n```\n\nUsage\n-----\n\nThere's a Trait that does all the job, and we've created a `BlockHelper` and a\n`BlockComponent` so you can use them easily on your CakePHP app.\n\nTo start using them, just load whatever class you want.\n\nFor the `BlockHelper`, on your `AppView`'s initialize method, add:\n\n```php\n// src/View/AppView.php\npublic function initialize()\n{\n    $this-\u003eloadHelper('Cirici/Blocks.Block');\n}\n```\n\nFor the `BlockComponent`, on your `AppController`'s initialize:\n\n```php\n// src/Controller/AppController.php\npublic function initialize()\n{\n    $this-\u003eloadComponent('Cirici/Blocks.Block');\n}\n```\n\n### Methods\n\nRight now there are just two methods available (as said, this plugin is really simple):\n\n- `get`: retrieves the entire Block entity by its slug.\n- `getContents`: just returns the Block's `content` field contents.\n\n\nPatches \u0026 Features\n------------------\n\n* Fork\n* Mod, fix\n* Test - this is important, so it's not unintentionally broken\n* Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of\ntheir own that I can ignore when I pull)\n* Pull request - bonus point for topic branches\n\nBugs \u0026 Feedback\n---------------\n\nhttp://github.com/ciricihq/cake-blocks/issues\n\nLicense\n-------\n\nCopyright (c) 2016, [Cirici New Media][cirici] and licensed under [GNU GPL3 license][gnu].\n\n[cakephp]:http://cakephp.org\n[composer]:http://getcomposer.org\n[gnu]:LICENSE.md\n[cirici]:https://cirici.com\n[standards]:http://book.cakephp.org/3.0/en/contributing/cakephp-coding-conventions.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciricihq%2Fcake-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciricihq%2Fcake-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciricihq%2Fcake-blocks/lists"}