rahmatawaludin / laravel-notes
Laravel 4 Artisan Notes Management
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 10
pkg:composer/rahmatawaludin/laravel-notes
Requires
- php: >=5.3.0
- illuminate/console: ~4
- illuminate/filesystem: ~4
- illuminate/support: 4.1.*
Requires (Dev)
- jakub-onderka/php-console-highlighter: dev-master
- jakub-onderka/php-parallel-lint: *
- mockery/mockery: 0.8.0
- phpmd/phpmd: 1.5.*
- phpunit/phpunit: 3.7.27
- squizlabs/php_codesniffer: 1.*
This package is not auto-updated.
Last update: 2025-10-25 22:26:58 UTC
README
Inpired by Rails Rake notes, Laravel Notes helps you manage your notes when developing an application. It will search comment begin with TODO, FIXME, or OPTIMIZE.
Installation
- Update your composer.json to require
"rahmatawaludin/laravel-notes": "dev-master"
{
"require": {
"laravel/framework": "4.1.*",
"rahmatawaludin/laravel-notes": "dev-master"
},
...
}
- Run
composer updatein the Terminal - Add the LaravelNotesServiceProvider
'Rahmatawaludin\LaravelNotes\LaravelNotesServiceProvider'to the laravel providers array in the fileapp/config/app.php
'providers' => array(
...
'Rahmatawaludin\LaravelNotes\LaravelNotesServiceProvider'
)
Usage
Add your comment to file within app directory begin with @TODO, @FIXME, or @OPTIMIZE.
example:
app/controllers/HomeController.php:
...
// @TODO create different layout
...
app/routes.php
// @FIXME missing controller for router
app/models/User.php
/**
* This is really important
* @OPTIMIZE better looping for this model
* @var string
*/
Then use notes in terminal to view all notes:
$ php artisan notes
Options
- To filter only one type
$ php artisan notes todo
- To add custom types to the default ones
$ php artisan notes --extra-filters=foo,bar
- To search only within a directory (defaults: app)
$ php artisan notes --include-path=app/views
- To exclude a directory (defaults: storage)
$ php artisan notes --exclude-path=app/views
Under the hood
Laravel Notes will check your plataform and run grep of you are on a UNIX system. For Windows users it will use PHP to read and parse files. Non-formal tests have found that grep is 2x faster.
Screenshot
Roadmap
| Version | Feature |
|---|---|
| 2.1 | Add --group-by-file and --group-by-type |
| 2.2 | Any idea? |
Contribute
- Fork
- Work on dev branch
- Pull
- Repeat.. :)