kmj/toolkitbundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kmj/toolkitbundle

Composer 安装命令:

composer require kmj/toolkitbundle

包简介

Symfony2 Bundle that adds basic user account entity and city/state/country setup as well

关键字:

README 文档

README

Codeship Status for Demoboy/ToolkitBundle SensioLabsInsight Coverage Status Latest Stable Version Total Downloads

  1. Installation

KMJToolkitBundle can conveniently be installed via Composer. Just run the following command from your project directory

composer require "kmj/toolkitbundle":1.1.*

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new KMJ\SyncBundle\KMJToolkitBundle(),
    // ...
);
  1. Configuration

This bundle comes with a few configuration options.

kmj_toolkit:
    rootdir:            #The root directory of the application defaults to %kernel.root_dir%
    enckey:             #The encryption key to use to encrypt documents
    administrator:
        firstname:      #Admin user's first name
        lastname:       #Admin user's last name
        username:       #Admin user's username
        email:          #Admin user's email address
        password:       #Admin user's password
  1. Features

This bundle's goal is to provide quick setup of a Symfony2 project. These features include:

* Quick load of countries and states (including relationships) into database through Doctrine fixtures or Alice fixtures (suggested)
* Address entity that manages addresses
* User class that uses roles as a relationship instead of FOSUser bundle storing them as an array
* Address type for handling user submitted addresses
* User type for registering users
* Role Hierarchy
* Quick setup of a super user in the db
* Document entities for handling user submitted documents
  1. Documents

This bundle also provides Entity to handle documents. Instances of EncryptedDocument and HiddenDocument are all saved to the app/Resources/protectedDocuments folder and instances of WebDocument are saved to web/uploads/documents Based on the entity it will also encrypt documents as it is written to the file system. The files are automatically saved to file system during when the entity is persisted to the database using lifecycle callbacks. To view or download these files a controller has been provided. To provide a link to download a document use the following twig snippet:

{{ path("kmj_toolkit_document_download(encrypted|hidden)", document: document.id) }}

And to include an image or view inline you can use:

{{ path("kmj_toolkit_document_view(encrypted|hidden)", document: document.id) }}

There are no helper methods for instances of WebDocument as they are accessible through traditional HTTP requests

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-10-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固