Download the PHP package leuverink/magic-todo without Composer
On this page you can find all versions of the php package leuverink/magic-todo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leuverink/magic-todo
More information about leuverink/magic-todo
Files in leuverink/magic-todo
Package magic-todo
Short Description Higlight TODO's inside your Blade templates
License MIT
Informations about the package magic-todo
Magic todo
Magically turn HTML comments into interactive hints in your Laravel Blade frontend.
Installation
Usage
Magic Todo turns your standard TODO comments in Blade files into interactive elements. By default, you can activate this feature by adding a pipe |
symbol at the beginning of your comment.
You can also highlight entire blocks of code:
Blade comments are supported as well:
Modifying TODO Keywords
You can modify the default behavior by publishing the package config and editing the magic-todo.open
& magic-todo.close
keywords. For instance, changing magic-todo.open
to TODO
will highlight every todo comment in your templates.
If you change magic-todo.open
to TODO
, Every TODO comment in your template will be highlighted.
Direct Component Usage
For more control, you can use the highlight component directly in your markup:
Configuration
Development
Ideas
Here are some other features I have in mind if there is any interest in this package:
- [ ] Artisan command to list all todos (both in comments & direct component usage)
- [ ] Syntax for rendering in specific environments (e.g., only dev / dev + staging)
- [ ] Support for NOTE & FIXME comments with different styling
- [ ] Replace @mentions with clickable GitHub avatars
- [ ] Add better theme/styling support
License
This package is open-source software licensed under the MIT license.
All versions of magic-todo with dependencies
illuminate/contracts Version ^10|^11
illuminate/support Version ^10|^11
leuverink/asset-injector Version ^2.0