{"id":22688456,"url":"https://github.com/javanile/granular","last_synced_at":"2026-03-09T11:05:20.846Z","repository":{"id":56997001,"uuid":"133355435","full_name":"javanile/granular","owner":"javanile","description":"WordPress extension framework based on object-oriented paradigm.","archived":false,"fork":false,"pushed_at":"2020-04-24T07:46:59.000Z","size":37,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T11:56:22.388Z","etag":null,"topics":["composer","object-oriented-programming","psr-4","testability","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","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/javanile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-14T12:11:52.000Z","updated_at":"2022-11-08T21:56:50.000Z","dependencies_parsed_at":"2022-08-21T14:10:17.127Z","dependency_job_id":null,"html_url":"https://github.com/javanile/granular","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/javanile/granular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fgranular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fgranular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fgranular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fgranular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javanile","download_url":"https://codeload.github.com/javanile/granular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fgranular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["composer","object-oriented-programming","psr-4","testability","wordpress","wordpress-plugin"],"created_at":"2024-12-10T00:14:32.415Z","updated_at":"2026-03-09T11:05:20.823Z","avatar_url":"https://github.com/javanile.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Granular\n\n[![StyleCI](https://github.styleci.io/repos/133355435/shield?branch=master)](https://github.styleci.io/repos/133355435)\n[![Build Status](https://travis-ci.org/javanile/granular.svg?branch=master)](https://travis-ci.org/javanile/granular)\n[![codecov](https://codecov.io/gh/javanile/granular/branch/master/graph/badge.svg)](https://codecov.io/gh/javanile/granular)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d37299ab3e874e94b758ffe11438ac7f)](https://www.codacy.com/app/francescobianco/granular?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=javanile/granular\u0026amp;utm_campaign=Badge_Grade)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nWordPress extension framework based on object-oriented paradigm. \nUsing Granular you can write PSR compliant code increasing the general code quality \nperforming a better project organization. Organize your code in feature \nor group WordPress actions and filters in the same scope.\n\n```php\nnamespace Acme\\Plugin;\n\nuse Javanile\\Granular\\Bindable;\n\nclass MyFirstPluginFeature extends Bindable\n{\n  static $bindings = [\n    'action:init',\n    'filter:the_content' =\u003e 'theContent',\n  ];\n\n  public function init()\n  {\n    // Init code\n  }\n  \n  public function theContent($content)\n  {\n    return $content;\n  }\n}\n\n```\n\n\n```php\nuse Javanile\\Granular\\Autoload;\n\n$app = new Autoload();\n\n// add MyPlugin::init() method to WordPress init action  \n$app-\u003eregister(MyPlugin::class, 'init');\n```\n\n\n## Testing\n\n```bash\n$ docker-compose run --rm phpunit --stop-on-failure tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavanile%2Fgranular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavanile%2Fgranular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavanile%2Fgranular/lists"}