vaszev/commons-bundle

Service of common functions that may useful in symfony2

Installs: 222

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.0.30 2021-01-05 10:09 UTC

README

##Collection of common commands document:clear, project:clear:cache, project:size

##Collection of common functions

genSimplePassword, getImageVariant, incFileNameIfExists, loremIpsum, passwordEncode, passwordVerify, refreshSecurityToken, removeAccents, repairFileName, replaceNonAlphanumericChars, addressToCoords, entityCheck, friendlyFilter

##Collection of common twig extensions

dayNameFilter, friendlyFilter, imgSizeFilter, minutesTimeFilter, priceFilter, entityCheck, lorem, rnd, friendly

###how to install: https://packagist.org/packages/vaszev/commons-bundle

via composer:

$ composer install "vaszev/commons-bundle":"~2.0"

set parameters in the config.yml:

vaszev_commons:
    default_image: '../Resources/public/img/tr.png'    
    docs: '/uploads/documents/'
    image_quality: 70
    image_variations:
      small: [100,50]
      medium: [200,150]
      large: [600,400]
      .
      .
      .
      yourvariation: [111,222]

in your AppKernel.php:

new Vaszev\CommonsBundle\VaszevCommonsBundle(),