tpaksu/laravel-todobar
Composer 安装命令:
composer require tpaksu/laravel-todobar
包简介
A simple todo list drawer for development tasks listing
README 文档
README
TodoBar creates an overlay right sidebar to ease your Laravel projects task management.
-
It stores the tasks in a JSON file which is located in
/resources/todobarfolder, which is shared among your code in your repository, so you can get the tasks on every platform that you are developing your project. -
It supports multiple groups, which you can use to track different aspects of your project in a single file, and you can easily switch between groups with a single dropdown.
-
It uses Bootstrap components as the frontend library, and for the "Edit Task" modal.
Preview
Classic Mode
Installation
You can install the package via composer with:
composer require tpaksu/laravel-todobar --dev
The sidebar will be enabled by default, but you can disable it by adding
TODOBAR_ENABLED=false
to your environment variables and run php artisan config:cache to update the configuration cache.
Package Contents
This package publishes the views used in the package and a configuration file which consists of three settings:
-
enabled: Enables the sidebar by setting the environment variable (
TODOBAR_ENABLED) in your.envfile, or by changing the default value when the environment value is missing. -
start_visible: Defines the visibility on page load, if you set it to true, the sidebar will be shown on page load.
-
overlay: Defines if the sidebar will cover some part of the web page (overlay), or shrink the page and display the whole page besides itself.
The views used and published by this package:
+ resources/views/vendor/tpaksu/todobar
+-- partials
| +-- form.blade.php
| |-- handle.blade.php
| |-- projects.blade.php
| +-- tasks blade.php
+-- todobar.blade.php
Extending
The package contains a Storage folder which contains an interface DataStorageInterface defining the data storage provider repository, and an example JSONStorage class which handles the data persisting in JSON file. If you want to use something different than a JSON file to store your tasks, you can create a class implementing DataStorageInterface and make the package use that instead by changing the configuration like this:
"storage" => [ "engine" => \App\TodoBar\CustomStorage::class, "params" => [ "param" => "[ Passed to your class ]", ], ],
Contributing
You are always welcome to send pull requests to this package. Please describe why and what changed in the code, so I can approve them quickly.
Security
If you discover any security related issues, please email tpaksu@gmail.com directly instead of using the issue tracker.
License
The MIT License (MIT).
tpaksu/laravel-todobar 适用场景与选型建议
tpaksu/laravel-todobar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 86 次下载、GitHub Stars 达 28, 最近一次更新时间为 2019 年 12 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tpaksu/laravel-todobar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tpaksu/laravel-todobar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 86
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-24

