2017 © Pedro Peláez
 

symfony-bundle toolkitbundle

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

image

kmj/toolkitbundle

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

  • Tuesday, July 10, 2018
  • by demoboy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 643 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

KMJToolkitBundle

Codeship Status for Demoboy/ToolkitBundle SensioLabsInsight Coverage Status Latest Stable Version Total Downloads, (*1)

1) Installation

KMJToolkitBundle can conveniently be installed via Composer. Just run the following command from your project directory, (*2)

composer require "kmj/toolkitbundle":1.1.*, (*3)

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:, (*4)

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

2) Configuration

This bundle comes with a few configuration options., (*5)

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

3) Features

This bundle's goal is to provide quick setup of a Symfony2 project. These features include:, (*6)

* 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

4) 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:, (*7)

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

And to include an image or view inline you can use:, (*9)

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

There are no helper methods for instances of WebDocument as they are accessible through traditional HTTP requests, (*11)

The Versions

10/07 2018
26/05 2018

dev-master

9999999-dev http://github.com/Demoboy/ToolkitBundle

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kaelin Jacobson

toolkit kmj

06/03 2016

1.0.x-dev

1.0.9999999.9999999-dev http://github.com/Demoboy/ToolkitBundle

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kaelin Jacobson

toolkit kmj

13/01 2015

v1.0.0

1.0.0.0 http://github.com/Demoboy/ToolkitBundle

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kaelin Jacobson

toolkit kmj