承接 icemanbsi/full-silex-admin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

icemanbsi/full-silex-admin

Composer 安装命令:

composer require icemanbsi/full-silex-admin

包简介

Administrator site for full-silex

README 文档

README

Silex is a powerfull micro framework. Well, "micro" means you can create a small website within seconds. But sometimes you need to expand this framework into a full stack to moderate a bigger website. To make it happen at least you need to register several service providers, adding some functions in base controller, models, and many more.

Full Silex is the a fast track to build a full stack framework based on the amazing Silex Micro Framework. It contains several base classes such as Base Controller, Base Model, several Helpers, and many more.

To make your development process faster, here the administrator site package. You can use it along with Full Silex and get your CRUD template and some useful features.

Installation

1. Add full-silex-admin as a required library in your composer project

composer require icemanbsi/full-silex-admin

2. Prepare the project

you can copy the project template from /vendor/icemanbsi/full-silex-admin/public/resources into your project "public/resources".

3. Setting up the project

  • Go to App/Application.php at the first row after class declaration, add use AdminApplication;.
  • Add AdminControllerProvider in the setControllerProviders function.
  • Add setTemplateDirectories function in Application class. Your Application class now should be like :
namespace App;

use FullSilexAdmin\AdminApplication;

class Application extends \FullSilex\Application
{
    use AdminApplication;

    protected $useDatabase          = false;
    protected $useMailer            = true;
    protected $useTranslator        = true;
    protected $useTemplateEngine    = true;

    protected function setControllerProviders(){
        $this->mount("/", new DefaultControllerProvider());
        $this->mount("/admin", new AdminControllerProvider());
    }

    public function setTemplateDirectories(){
        return array_merge(parent::setTemplateDirectories(), $this->setAdminTemplateDirectories());
    }
}
  • Create AdminControllerProvider class, extended from FullSilex\ControllerProvider
  • Create App\Controllers\Admin\AdminsController class, extended from FullSilexAdmin\Controller\AdminsController
  • Create App\Controllers\Admin\HomeController class, extended from FullSilexAdmin\Controller\HomeController
  • Create App\Controllers\Admin\SettingsController class, extended from FullSilexAdmin\Controller\SettingsController
  • Create App\Models\Admin class, extended from FullSilexAdmin\Models\Admin
  • Create App\Models\AdminSession class, extended from FullSilexAdmin\Models\AdminSession
  • Create App\Models\Setting class, extended from FullSilexAdmin\Models\Setting
  • Create App\Models\Repositories\AdminRepository class, extended from FullSilexAdmin\Models\Repositories\AdminRepository

4. You are ready to go..

Add your controllers, models, template files, and others.

VIEWS

You can override default views by creating files with the same name (and subfolder) in resources/views/admin. For example to replace main menu you can create resources/views/admin/widgets/_mainMenu.twig.

Credits

  1. Silex Framework
  2. Database migration by Ruckus (ruckusing/ruckusing-migrations)
  3. Template by Revox (This is not a free template, so to get full details please buy the original from https://themeforest.net/item/pages-admin-dashboard-template-web-app/9694847)

统计信息

  • 总下载量: 257
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: HTML

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固