{"id":23968627,"url":"https://github.com/vutran/wpmvc-core","last_synced_at":"2026-05-16T10:32:36.309Z","repository":{"id":62545820,"uuid":"45867647","full_name":"vutran/wpmvc-core","owner":"vutran","description":"Simple framework for building WordPress themes/apps","archived":false,"fork":false,"pushed_at":"2016-08-03T16:40:58.000Z","size":343,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T04:42:46.062Z","etag":null,"topics":["mvc","php","wordpress","wp"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/vutran/wpmvc-core","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/vutran.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":"2015-11-09T21:23:03.000Z","updated_at":"2019-10-23T17:25:57.000Z","dependencies_parsed_at":"2022-11-02T22:00:52.854Z","dependency_job_id":null,"html_url":"https://github.com/vutran/wpmvc-core","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vutran/wpmvc-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fwpmvc-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fwpmvc-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fwpmvc-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fwpmvc-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/wpmvc-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fwpmvc-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33098795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["mvc","php","wordpress","wp"],"created_at":"2025-01-07T00:15:25.012Z","updated_at":"2026-05-16T10:32:36.288Z","avatar_url":"https://github.com/vutran.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPMVC Core\n\n\u003e Simple framework for building WordPress themes/apps\n\n## Quick Start\n\nSee below for a quick usage example. All files are relative to your theme directory.\n\n#### functions.php\n````php\n\u003c?php\n\n// Instantiate the framework\n$app = new \\WPMVC\\Common\\Bootstrap(array(\n    'templatePath' =\u003e TEMPLATEPATH,\n    'templateDir' =\u003e str_replace(WP_CONTENT_DIR, '', WP_CONTENT_URL . TEMPLATEPATH),\n    'templateUrl' =\u003e get_template_directory_uri()\n));\n\n// Create a view\n$myView = $app-\u003ecreateView('slug-a/slug-b');\n\n// set view variables\n$myView-\u003eset([\n  'foo' =\u003e 'Hello',\n  'bar' =\u003e 'World',\n]);\n\n// prints the view\necho $myView-\u003eoutput();\n````\n\n#### views/slug-a/slug-b.php\n\n````php\n\u003c?php\n\necho $foo . ' ' . $bar;\n\n// outputs \"Hello World\";\n````\n\n## Filters\n\n| Name | Default Value | Description |\n| :--- | :--- | :--- |\n| `wpmvc_template_url` | | The URL to the template directory |\n| `wpmvc_template_dir` | | The path name to the template |\n| `wpmvc_template_path` | | The full path to the template directory |\n| `wpmvc_core_path` | | The full path to the wpmvc core directory |\n| `wpmvc_core_views_path` | | The path to the core's Views folder |\n| `wpmvc_app_views_path` | | The path to the application's Views folder |\n| `wpmvc_app_inc_path` | | The path to the application's inc folder |\n| `wpmvc_app_hooks_path` | | The path to the application's hooks folder |\n| `wpmvc_header_file` | | The output of the header file |\n| `wpmvc_header_output` | | The output of the header file |\n| `wpmvc_footer_file` | | The output of the footer file |\n| `wpmvc_footer_output` | | The output of the footer file |\n| `wpmvc_body_file` | | The name of the body file |\n| `wpmvc_body_output` | | The output of the body file |\n\n## Actions\n\n| Name | Default Value | Description |\n| :--- | :--- | :--- |\n| `wpmvc_theme_footer` | | Ran just before the `wp_footer()` |\n| `wpmvc_theme_header` | | Ran right after the opening `\u003cbody\u003e` tag |\n\n# Docker\n\n## Install\n\n```bash\n$ docker-compose up install\n```\n\n## Update Composer and Packages\n\n```bash\n$ docker-compose up update\n```\n\n## PHP Code Sniffer\n\n```bash\n$ docker-compose up phpcs\n```\n\n## Validate PHP\n\n```bash\n# --rm          automatically remove the container on exit\n# -v            map volume host volume to container (host:container)\n# php:5.6       image name:tag\n# php           command to run in container\n# script.php    PHP script to run\n$ docker run --rm -v \"$PWD\":/app -w /app php:5.6 php /path/to/script.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fwpmvc-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Fwpmvc-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fwpmvc-core/lists"}