{"repo":"Stillat/blade-parser","free":true,"listed":false,"github":"https://github.com/Stillat/blade-parser","clone":"git clone https://github.com/Stillat/blade-parser.git","description":"A library that makes it simple to parse, analyze, and manipulate Blade templates. Designed with tool makers in mind ❤️","language":"PHP","stars":149,"topics":["laravel","parser","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Blade Parser is library for Laravel that makes it easy to parse, analyze, and manipulate Blade templates. The library is composed of many major components: Parser : A Blade parser that produces a list of nodes, which can be analyzed to help make decisions surrounding a template. Documents : A powerful abstraction that makes it much simpler to interact with the details of a single parsed Blade template. Workspaces : A simple set of APIs that make it effortless to work with multiple parsed Blade templates at once. Compiler : A highly configurable Blade compiler implementation, with support for precompilers, extensions, and existing third-party packages. Validator : An extensible system for validating Blade documents, with default validators capable of detecting unpaired conditions, invalid component parameter spacing, and much more. Simple to Use Parsing Blade templates is incredibly simple using the Documents API. As an example, this is all that is needed to parse a template: The Document class provides a powerful abstraction, making it simple to quickly retrieve information about a template. For instance, if we wanted to extract all the components from our template we could do this: If we were only interested in a component named alert , we could instead use: These examples hardly scratch the surface, and you are encouraged to read through the Documentation. Built-in Validation Command This library also ships with a configurable blade:validate Artisan command which can be use","default_branch":null,"files":null,"tree":[],"storefront":"/r/Stillat","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Stillat/blade-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}