{"id":26793100,"url":"https://github.com/beapi/bea-plugin-boilerplate","last_synced_at":"2025-04-22T15:12:14.608Z","repository":{"id":37789487,"uuid":"83913874","full_name":"BeAPI/bea-plugin-boilerplate","owner":"BeAPI","description":"The BEA Plugin Boilerplate serves as a foundation off of which to build your WordPress plugins.","archived":false,"fork":false,"pushed_at":"2024-11-06T18:49:56.000Z","size":282,"stargazers_count":13,"open_issues_count":11,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-22T15:11:57.393Z","etag":null,"topics":["boilerplate","plugin","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://beapi.fr","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/BeAPI.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":"2017-03-04T18:06:34.000Z","updated_at":"2024-09-13T22:47:11.000Z","dependencies_parsed_at":"2023-01-19T18:18:11.795Z","dependency_job_id":"d806e05e-4ef4-4da8-af7b-c9c9d70af328","html_url":"https://github.com/BeAPI/bea-plugin-boilerplate","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-plugin-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-plugin-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-plugin-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-plugin-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeAPI","download_url":"https://codeload.github.com/BeAPI/bea-plugin-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250264909,"owners_count":21402004,"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":["boilerplate","plugin","wordpress","wordpress-plugin"],"created_at":"2025-03-29T16:19:05.988Z","updated_at":"2025-04-22T15:12:14.580Z","avatar_url":"https://github.com/BeAPI.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BEA Plugin Boilerplate #\n\n## Description ##\n\nThe BEA Plugin Boilerplate serves as a foundation off of which to build your WordPress plugins.\n \n## Getting Started ##\n\nFor making this plugin easily usable, you can make the given replacements please enable the case sensitive search and then :\n\n* Search for: `bea-plugin-boilerplate` and replace with: `my-plugin`\n* Search for: `BEA\\PB` and replace with: `BEA\\My_plugin`\n* Search for: `BEA_PB_` and replace with: `MY_PLUGIN_`\n* Search for: `Plugin Boilerplate` and replace with: `My plugin name`\n* Search for: `init_bea_pb_plugin` and replace with: `init_my_plugin`\n* Search for: `bea-pb` and replace with: `my-plugin`\n\nThen you have to rename the `bea-plugin-boilerplate.php` to `my-plugin.php` and edit the plugin header.\n\n### Composer ###\nYou need composer to autoload all your classes from the classes folder.\n\nUse the `beapi/composer-scaffold-plugin` package that add it automatically to the composer.json file.\nYou can add it yourself like this :\n \n```composer.json\n    \"autoload\": {\n        \"psr-4\": {\n            \"BEA\\PB\\\\\": \"content/plugins/bea-plugin-boilerplate/classes/\"\n        }\n    }\n```\n\n## Autoload ##\nThe autoload is based on psr-4 and handled by composer.\n\n## Changelog ##\n\n### 3.5.0 - 02 Jul 2024\n* Add new abstract class to register ACF Gutenberg block from `block.json` file.\n* Pass block data to the block error template.\n\n### 3.4.2 - 23 Oct 2023\n* Add missing composer psalm command\n* Use `plugin_basename()` to get plugin directory\n* Fix various PHPCS \u0026 Psalm warnings and errors\n\n### 3.4.1 - 23 Nov 2021\n* Fix wrong formatting for block ACF classes\n\n### 3.4.0 - 20 Sept 2021\n* Fix wrong return type in Model class\n* Remove Compatibility class\n* Remove default Admin class\n\n### 3.3.0 - 15 March 2021\n* Fix all PSALM errors\n* Enhance the phpcs:ignore rules to be compatible with skeleton\n* Use short array syntax\n* Enforce return types\n* Use InvalidArgumentException when model wrongly instaciated\n* Remove thumbnail deletion on remove_post_thumnail\n* Rename get_ID to get_id\n* Add psalm\n* Remove `_*` methods from Models\n\n### 3.2.0 - 01 Mar 2021\n* Introduce interfaces and abstract classes to register Gutenberg blocks\n* Update copyright date.\n\n### 3.1.1 - Fev 2021\n* Rename hook : `BEA/Helpers/locate_template/templates` in `beapi_helpers_locate_template_templates` for PHPCS\n* Improve PHPCS\n\n### 3.1.0 - Jan 2021\n* Update Singleton to be compatible with PHP8.0\n\n### 3.0.0 - May 2020\n* Remove autoload.php file, it's have to be on the composer.json file autoloading\n* Move compatibility class to the classes directory\n* Use the PSR-4 naming convention\n\n### 2.2 - Feb 2019\n* Remove widget feature\n\n### 2.1.8 - Aug 2018\n* Fix misuse of singleton in shortcode factory\n\n### 2.1.7 - 14 Jun 2017\n* Fix wrong use of get_object_term_cache() and php Exception\n\n### 2.1.6 - 22 Nov 2016\n* Fix Non-static method init_translations() should not be called statically\n\n### 2.1.5 - 15 Nov 2016\n* Fix method get_model using model_class in post_type\n\n### 2.1.4 - 06 Oct 2016\n* Fix textdomain load\n* Add french translations\n\n### 2.1.3 - 13 Apr 2016\n* Fix model class name with namespace\n\n### 2.1.2 - 16 Mar 2016\n* Fix user model filename\n\n### 2.1.1 - 6 Mar 2016\n* Fix plugin version number\n\n### 2.1.0 - 12 Feb 2016\n* Add Shortcode implementation\n\n### 2.0.1 - 11 Jan 2016\n* Fix title display in widget view\n\n### 2.0.0 - 13 Oct 2015\n* Add traits\n\n### 1.1.2 - 30 Sep 2015\n* Fix widget registration\n\n### 1.1.1 - 4 Sep 2015\n\n### 1.1.0 - 4 Sep 2015\n* Add new filter on locate_template\n\n### 1.0.0 - 18 Feb 2016\n* Initial\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-plugin-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapi%2Fbea-plugin-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-plugin-boilerplate/lists"}