PHP code example of php-prosvirin-dev / laravel-todo-inspector
1. Go to this page and download the library: Download php-prosvirin-dev/laravel-todo-inspector library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-prosvirin-dev / laravel-todo-inspector example snippets
return [
'table_name' => env('TODO_INSPECTOR_TABLE', 'todo_inspector_tasks'),
'theme' => env('TODO_INSPECTOR_THEME', 'dark'),
'auth' => [
'login' => env('TODO_INSPECTOR_LOGIN', 'admin'),
'password' => env('TODO_INSPECTOR_PASSWORD', 'password'),
],
'locales' => [
'en' => ['flag' => '๐ฌ๐ง', 'name' => 'English'],
'ru' => ['flag' => '๐ท๐บ', 'name' => 'ะ ัััะบะธะน'],
'uk' => ['flag' => '๐บ๐ฆ', 'name' => 'ะฃะบัะฐัะฝััะบะฐ'],
'pl' => ['flag' => '๐ต๐ฑ', 'name' => 'Polski'],
'de' => ['flag' => '๐ฉ๐ช', 'name' => 'Deutsch'],
'fr' => ['flag' => '๐ซ๐ท', 'name' => 'Français'],
'es' => ['flag' => '๐ช๐ธ', 'name' => 'Español'],
'zh' => ['flag' => '๐จ๐ณ', 'name' => 'ไธญๆ'],
'ja' => ['flag' => '๐ฏ๐ต', 'name' => 'ๆฅๆฌ่ช'],
],
'extensions' => ['php', 'js', 'vue', 'blade.php', 'css', 'scss'],
'exclude_dirs' => ['vendor', 'node_modules', 'storage', 'bootstrap/cache', '.git', 'tests'],
'exclude_files' => ['test-*.php', '*_test.php', '*.test.php'],
'github_repo' => env('TODO_INSPECTOR_GITHUB_REPO', null),
];
protected function schedule(Schedule $schedule): void
{
$schedule->command('todo:scan')->dailyAt('03:00');
// or hourly: $schedule->command('todo:scan')->hourly();
}
// TODO: Fix this bug
// FIXME: @username Memory leak here
// HACK: [HIGH] Temporary workaround
// REVIEW: @lead Please check this logic
// NOTE: Important performance consideration
/**
* TODO: Refactor this method
* FIXME: @developer Edge case not handled
* REVIEW: Architecture decision needed
*/
bash
php artisan vendor:publish --provider="Prosvirin\LaravelTodoInspector\TodoInspectorServiceProvider"
bash
php artisan vendor:publish --tag=todo-inspector-config # Configuration
php artisan vendor:publish --tag=todo-inspector-migrations # Database migrations
php artisan vendor:publish --tag=todo-inspector-views # Blade templates
php artisan vendor:publish --tag=todo-inspector-lang # Language files
php artisan vendor:publish --tag=todo-inspector-assets # CSS/JS assets
bash
php artisan migrate
bash
php artisan todo:scan
bash
php artisan todo:scan --clear --type=FIXME --path=app/Http
bash
php artisan vendor:publish --tag=todo-inspector-views
bash
php artisan vendor:publish --tag=todo-inspector-lang
bash
php artisan vendor:publish --tag=todo-inspector-assets