{"id":37265570,"url":"https://github.com/devmium/blade-wp","last_synced_at":"2026-01-16T00:09:06.463Z","repository":{"id":56966845,"uuid":"158888359","full_name":"devmium/blade-wp","owner":"devmium","description":"The simple yet powerful Blade templating engine ported to WordPress for themes developers.","archived":false,"fork":false,"pushed_at":"2019-04-30T22:50:35.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T15:47:58.071Z","etag":null,"topics":["blade","wordpress","wordpress-theme","wordpress-theme-development"],"latest_commit_sha":null,"homepage":null,"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/devmium.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-11-24T00:09:17.000Z","updated_at":"2022-04-08T21:24:04.000Z","dependencies_parsed_at":"2022-08-21T06:10:20.182Z","dependency_job_id":null,"html_url":"https://github.com/devmium/blade-wp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devmium/blade-wp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmium%2Fblade-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmium%2Fblade-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmium%2Fblade-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmium%2Fblade-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devmium","download_url":"https://codeload.github.com/devmium/blade-wp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmium%2Fblade-wp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28474331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T00:03:33.697Z","status":"ssl_error","status_checked_at":"2026-01-15T23:58:36.859Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["blade","wordpress","wordpress-theme","wordpress-theme-development"],"created_at":"2026-01-16T00:09:05.837Z","updated_at":"2026-01-16T00:09:06.454Z","avatar_url":"https://github.com/devmium.png","language":"PHP","readme":"# Blade templating engine for WordPress\n\nThe simple yet powerful Blade templating engine ported to WordPress for themes developers.\n\n# Requirements\nBefore proceeding to installation, please make sure your environment met these requirements:\n\n* [PHP](https://secure.php.net/manual/en/install.php) \u003e= 7.1+\n* [Composer](https://getcomposer.org/download/)\n* [WordPress](https://wordpress.org/) \u003e= 4.5+\n\n# Installation\n```composer require devmium/blade-wp```\n\n# Usage\n```php\nuse Devmium\\Blade\\WordPressBlade;\n\n// Initialize WordPressBlade instance\n$blade = WordPressBlade::getInstance();\n\n// Render a specific template\nWordPressBlade::render($view, $with = []);\n\n// Register a custom directive\nWordPressBlade::directive($name, $handler);\n```\n\nAfter initialing WordPressBlade service (usually in theme's functions.php file), it will automatically attempt to load template file first from **theme/views/{TEMPLATE_FILE}.blade.php** then fallback to **theme/{TEMPLATE_FILE}.php**\n\n# Examples\n\nGiving the following directory structure:\n```\ntheme\n- assets/\n- includes/\n- views/\n    - single.blade.php\n    - archive.blade.php\n    - index.blade.php\n- index.php\n- style.css\n```\n\nAssuming a single post request (is_single() === true), the service will load **theme/views/single.blade.php**. If **theme/views/single.blade.php** doesn't exist, the service will fallback to **theme/single.php** and then **theme/index.php**\n\n# Built-in WordPress custom directives\n\nSimple loop:\n---\n```blade\n@wp_posts()\n    {{ the_title() }}\n    {!! the_content() !!}\n@wp_empty()\n    {{ 'No posts' }}\n@wp_end()\n```\n\n# Notes\nTBD\n\n# Blade documentation\nYou can browse [Blade's documentation](https://laravel.com/docs/5.7/blade) directly from Laravel documentation.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmium%2Fblade-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmium%2Fblade-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmium%2Fblade-wp/lists"}