{"id":15984537,"url":"https://github.com/robinradic/blade-extensions","last_synced_at":"2025-04-12T23:33:05.272Z","repository":{"id":18417972,"uuid":"21599946","full_name":"RobinRadic/blade-extensions","owner":"RobinRadic","description":"Laravel Blade extensions like $loop-\u003eodd/$loop-\u003eindex in foreach, view blocks and partials, etc","archived":false,"fork":false,"pushed_at":"2020-05-16T05:45:27.000Z","size":34745,"stargazers_count":268,"open_issues_count":1,"forks_count":35,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-05-18T02:02:51.413Z","etag":null,"topics":["laravel","php"],"latest_commit_sha":null,"homepage":"http://robin.radic.nl/blade-extensions","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/RobinRadic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-08T05:23:19.000Z","updated_at":"2023-08-01T13:38:26.000Z","dependencies_parsed_at":"2022-07-28T20:09:54.556Z","dependency_job_id":null,"html_url":"https://github.com/RobinRadic/blade-extensions","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Fblade-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Fblade-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Fblade-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Fblade-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinRadic","download_url":"https://codeload.github.com/RobinRadic/blade-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647259,"owners_count":21139081,"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":["laravel","php"],"created_at":"2024-10-08T02:09:27.722Z","updated_at":"2025-04-12T23:33:05.251Z","avatar_url":"https://github.com/RobinRadic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Laravel logo](http://laravel.com/assets/img/laravel-logo.png)  Laravel Blade Extensions\n========================\n\n[![Build Status](https://img.shields.io/travis/RobinRadic/blade-extensions.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/RobinRadic/blade-extensions)\n[![GitHub Version](https://img.shields.io/github/tag/robinradic/blade-extensions.svg?style=flat-square\u0026label=version)](http://badge.fury.io/gh/robinradic%2Fblade-extensions)\n[![Total Downloads](https://img.shields.io/packagist/dt/radic/blade-extensions.svg?style=flat-square)](https://packagist.org/packages/radic/blade-extensions)\n[![License](http://img.shields.io/badge/license-MIT-ff69b4.svg?style=flat-square)](http://radic.mit-license.org)\n\n\u003c!-- [![Code Coverage](https://img.shields.io/badge/coverage-100%-green.svg?style=flat-square)](http://robin.radic.nl/blade-extensions/coverage) --\u003e\nA _Laravel_ package providing additional Blade functionality. \n\n**Tested on all Laravel 5.x \u0026 6.x \u0026 7.x versions.**\n\nThe package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.\n\n### Version 7.3\n\u003c!-- [**Documentation**](http://robin.radic.nl/blade-extensions) (or alternatively read it [**here**](docs/index.md) on github) --\u003e\n- [**Documentation**](docs/index.md)\n- [**Changelog**](docs/prologue/changelog-upgrade-guide.md)\n- [**Code of Conduct**](docs/CODE_OF_CONDUCT.md)  \n- [**Contributing**](docs/CONTRIBUTING.md)  \n- [**Pull Request Template**](docs/PULL_REQUEST_TEMPLATE.md)  \n- [**Issue Template**](docs/ISSUE_TEMPLATE.md)\n\n#### Features\n- Compatible with [all Laravel 5 \u0026 6 versions](https://travis-ci.org/RobinRadic/blade-extensions)\n- **20+** Configurable, nameable, extendable, replaceable, testable directives.\n- Compile Blade strings **with** variables `BladeExtensions::compileString($string, array $vars = [])`\n- Progamatically push content to a stack inside blade view(s) `BladeExtensions::pushToStack($stack, $views, $content)`\n- Even if you **don't use any of the directives**, Blade Extensions provides you with a great method to manage your directives.\n\n#### Directives\nAll directives can be disabled, extended or replaced.\n- [@set / @unset](docs/directives/set-unset.md) Setting and unsetting of values\n- [@breakpoint / @dump](docs/directives/breakpoint-dump.md) Dump values to screen and set breakpoints in views\n- [@foreach / @break / @continue](docs/directives/foreach-break-continue.md) Loop data and extras (similair to twig `$loop`)\n- [@embed](docs/directives/embed.md) Think of embed as combining the behaviour of include and extends. (similair to twig `embed`)\n- [@minify / @endminify](docs/directives/minify.md)  Minify inline code. Supports CSS, JS and HTML.\n- [@macro / @endmacro/ @macrodef](docs/directives/macro.md) Defining and running macros\n- [@markdown/ @endmarkdown](docs/directives/markdown.md)\n- [@spaceless / @endspaceless](docs/directives/spaceless.md)\n- and more...\n\n\n\n### Installation\n\n#### 1. Composer\n```JSON\n\"radic/blade-extensions\": \"~7.1\"\n```\n\n#### 2. Laravel\n```php\nRadic\\BladeExtensions\\BladeExtensionsServiceProvider::class\n```\n\n#### 3.Configuration\n\nThe first version of this package was created for Laravel 4.2. In the later releases Laravel introduced quite a few similar directives/functionality like the \n[foreach loop variable](https://laravel.com/docs/5.6/blade#the-loop-variable), [Components \u0026 Slots](https://laravel.com/docs/5.6/blade#components-and-slots), etc. \nThis package automaticly disables some directives depending on your Laravel version. The configuration file allows you to fully configure this behaviour.\nMake sure to check it out.\n\n### Copyright/License\nCopyright 2015 [Robin Radic](https://github.com/RobinRadic) - [MIT Licensed](http://radic.mit-license.org) \n \n \n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinradic%2Fblade-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinradic%2Fblade-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinradic%2Fblade-extensions/lists"}