mokbirdo/laravel-mysql-backup
Composer 安装命令:
composer require mokbirdo/laravel-mysql-backup
包简介
README 文档
README
Configuration
This repository is template for building a new package. Some changes to the files are needed in order to represent a new package.
composer.json
Edit composer.json to reflect the package information. At a minimum, the package name and autoload lines should be changed so that "vendor/package" reflects the name and namespace of the new package.
{
"name": "vendor/package",
"autoload": {
"psr-4": {
"Vendor\\Package\\": "src/"
}
},
},
config/packagename.php
The file config/packagename.php should be renamed to to something more useful, like config/my-package.php. This is the configuration file that Laravel will publish into it's config directory.
src/ServiceProvider.php
Open up src/ServiceProvider.php as well. At a minimum the namespace has to be changed (it needs to match the PSR-4 namespace you set in composer.json).
In the boot() method, comment out or uncomment the components your package will need. For example, if the package only has a configuration, then everything can be commented out except the handleConfigs() call:
public function boot() { $this->handleConfigs(); // $this->handleMigrations(); // $this->handleViews(); // $this->handleTranslations(); // $this->handleRoutes(); }
In the handleConfigs() method, the "packagename" references should be changed to the name you chose up above (in the config/packagename.php instructions).
Last Step
Update the LICENSE file as required (make sure it matches what you said your package's license is in composer.json).
mokbirdo/laravel-mysql-backup 适用场景与选型建议
mokbirdo/laravel-mysql-backup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.61k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 07 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mokbirdo/laravel-mysql-backup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mokbirdo/laravel-mysql-backup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-07-10