varunsridharan/vsp-framework
Composer 安装命令:
composer require varunsridharan/vsp-framework
包简介
Simple & Lightweight WP Plugin Framework
README 文档
README
Simple & Lightweight WP Plugin Framework
Installation
The preferred way to install this extension is through Composer.
To install VSP_Framework library, simply:
$ composer require varunsridharan/vsp-framework
The previous command will only install the necessary files, if you prefer to download the entire source code you can use:
$ composer require varunsridharan/vsp-framework --prefer-source
You can also clone the complete repository with Git:
$ git clone https://github.com/varunsridharan/vsp-framework.git
Or install it manually:
$ wget https://github.com/varunsridharan/vsp-framework/archive/master.zip
Usage
require __DIR__ . '/vsp-framework/vsp-init.php
Included Libs / Frameworks
{
"require" : {
"wpbp/pointerplus" : "dev-master",
"varunsridharan/wpallimport_rapidaddon" : "dev-master",
"varunsridharan/wp-ajaxer" : "^1.0",
"varunsridharan/wp-endpoint" : "^1.0",
"varunsridharan/wp-post" : "^1.0",
"varunsridharan/wp-review-me" : "^1.0",
"varunsridharan/wp-transient-api" : "^1.0",
"varunsridharan/php-autoloader" : "^1.0",
"varunsridharan/wp-db-table" : "dev-master",
"a5hleyrich/wp-background-processing" : "^1.0.1"
}
}
Configs
$config = array();
Addons Module.
/** * Plugin's Addon Module Configuration. * Config Options * array( * 'base_path' => '', * 'base_url' => '', * 'addon_listing_tab_name' => 'addons', * 'addon_listing_tab_title' => 'Addons', * 'addon_listing_tab_icon' => 'fa fa-plus', * 'file_headers' => array(), * 'show_category_count' => true, * ) */ $config['addons'] = true;
Settings / WPOnion Module
/** * Settings Page Configuration. * Below arguments are related to WPOnion. * please refer https://github.com/wponion/wponion | https://docs.wponion.com for options informations. * basic required ars * array( * 'option_name' => '', * 'theme' => 'modern', #modern|fresh|your-theme * ) * */ $config['settings_page'] = array( 'option_name' => 'vsp_sample_settings', 'theme' => 'modern', 'menu' => array( 'menu_title' => __( 'VSP Sample' ), 'page_title' => __( 'VSP Sample Plugin' ), 'submenu' => true, ), 'framework_title' => __( 'Settings Page' ), );
System Tool Module
/** * Config for system tools. * Possible Values : true / false / array() * array( * 'system_tools_menu' => true, # true/false/array of values * 'menu' => true, # true/false * 'system_status' => true, #true/false/array of values * 'logging' => true, #true/false/array of values * ) * * system_status /logging / system_tool_menu array data can be like below * array( * 'name' => '', * 'title' => '', * 'icon'=>'' * ) * The above array is related to WPOnion Page Argument. * * $config['system_tools'] = true; * $config['system_tools'] = false; * $config['system_tools'] = array( * 'menu' => array( * 'title' => __( 'Sys Tools' ), * ), * ); * */ $config['system_tools'] = true;
WP Review Me Module
/** * Custom Lib To popup a alert after x number of days to ask for plugin review. * please refer https://github.com/varunsridharan/wp-review-me for options informations. */ $config['VS_WP_Review_Me'] = true;
Logging Module
/** * Config to enable logging option. * if set to true. then it create a custom logger instance and saves it. */ $config['logging'] = true;
Autoloader Module
/** * Config To enable Autoloader PHP Lib * * @uses \Varunsridharan\PHP\Autoloader https://github.com/varunsridharan/php-autoloader * * array( * 'namespace' => 'somename', * 'basepath' => __DIR__.'/includes/', * 'remaps' => array(), * 'prepend'=> false, * ) */ $config['autoloader'] = array( 'namespace' => '\MyPlugin\Admin', 'basepath' => __DIR__ . '/includes/admin/', );
varunsridharan/vsp-framework 适用场景与选型建议
varunsridharan/vsp-framework 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 510 次下载、GitHub Stars 达 10, 最近一次更新时间为 2018 年 11 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 varunsridharan/vsp-framework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 varunsridharan/vsp-framework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 510
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-11-20