vaszev / commons-bundle
Service of common functions that may useful in symfony2
Installs: 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
- ext-gd: *
- gregwar/image: 2.*
- ps/image-optimizer: ^1.2
- symfony/framework-bundle: >=3.0
This package is auto-updated.
Last update: 2024-12-05 18:08:17 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(),