{"id":37016046,"url":"https://github.com/webman-php/blade","last_synced_at":"2026-01-14T01:37:35.210Z","repository":{"id":63801672,"uuid":"570804865","full_name":"webman-php/blade","owner":"webman-php","description":"A standalone version of Laravel's Blade templating engine for use outside of Laravel.","archived":false,"fork":true,"pushed_at":"2025-08-05T13:19:05.000Z","size":57,"stargazers_count":5,"open_issues_count":3,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-11T17:56:00.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jenssegers.com","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jenssegers/blade","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webman-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["jenssegers"],"open_collective":"jenssegers-blade"}},"created_at":"2022-11-26T07:15:00.000Z","updated_at":"2026-01-03T12:22:53.000Z","dependencies_parsed_at":"2023-01-23T10:54:16.050Z","dependency_job_id":null,"html_url":"https://github.com/webman-php/blade","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/webman-php/blade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webman-php%2Fblade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webman-php%2Fblade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webman-php%2Fblade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webman-php%2Fblade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webman-php","download_url":"https://codeload.github.com/webman-php/blade/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webman-php%2Fblade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"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":[],"created_at":"2026-01-14T01:37:34.593Z","updated_at":"2026-01-14T01:37:35.190Z","avatar_url":"https://github.com/webman-php.png","language":"PHP","readme":"# Blade\n\n[![Latest Stable Version](http://img.shields.io/github/release/jenssegers/blade.svg)](https://packagist.org/packages/jenssegers/blade) [![Build Status](http://img.shields.io/travis/jenssegers/blade.svg)](https://travis-ci.org/jenssegers/blade) [![Coverage Status](http://img.shields.io/coveralls/jenssegers/blade.svg)](https://coveralls.io/r/jenssegers/blade)\n\nThe standalone version of [Laravel's Blade templating engine](https://laravel.com/docs/5.8/blade) for use outside of Laravel.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://jenssegers.com/static/media/blade2.png\" height=\"200\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nInstall using composer:\n\n```bash\ncomposer require jenssegers/blade\n```\n\n## Usage\n\nCreate a Blade instance by passing it the folder(s) where your view files are located, and a cache folder. Render a template by calling the `make` method. More information about the Blade templating engine can be found on http://laravel.com/docs/5.8/blade.\n\n```php\nuse Jenssegers\\Blade\\Blade;\n\n$blade = new Blade('views', 'cache');\n\necho $blade-\u003emake('homepage', ['name' =\u003e 'John Doe'])-\u003erender();\n```\n\nAlternatively you can use the shorthand method `render`:\n\n```php\necho $blade-\u003erender('homepage', ['name' =\u003e 'John Doe']);\n```\n\nYou can also extend Blade using the `directive()` function:\n\n```php\n$blade-\u003edirective('datetime', function ($expression) {\n    return \"\u003c?php echo with({$expression})-\u003eformat('F d, Y g:i a'); ?\u003e\";\n});\n```\n\nWhich allows you to use the following in your blade template:\n\n```\nCurrent date: @datetime($date)\n```\n\nThe Blade instances passes all methods to the internal view factory. So methods such as `exists`, `file`, `share`, `composer` and `creator` are available as well. Check out the [original documentation](https://laravel.com/docs/5.8/views) for more information.\n\n## Integrations\n\n- [Phalcon Slayer Framework](https://github.com/phalconslayer/slayer) comes out of the box with Blade.\n","funding_links":["https://github.com/sponsors/jenssegers","https://opencollective.com/jenssegers-blade"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebman-php%2Fblade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebman-php%2Fblade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebman-php%2Fblade/lists"}