redlab-team / helpers-bundle
A Symfony Bundle with Helpers
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Type:symfony-bundle
Requires
- redlab-team/php-helpers: ^2.0
- symfony/framework-bundle: ^4.0|^5.0
This package is auto-updated.
Last update: 2024-10-29 22:49:32 UTC
README
A Bundle for Symfony 4+ with that provides simple PHP methods for OOP developments.
Installation
With composer :
$ composer require redlab-team/helpers-bundle
Usage
This bundle is based on the package php-helpers
available on this repository.
The documentation of the helpers is in the README.md file.
Configuration
The default configuration is into the service.yml file.
It is possible to override it into the configuration of your application.
parameters: # This variable allow the debug logs into the helpers methods redlabteam_helpers_debug: true # This variable allow the notice logs into the helpers methods redlabteam_helpers_notice_failure: true services: # By default the Symfony minimalist Logger is used # It is possible to use another logger or just edit its parameters logger: class: Symfony\Component\HttpKernel\Log\Logger arguments: $minLevel: null $output: '%kernel.logs_dir%/%kernel.environment%.log' $formatter: null # Below are the helpers that can be used as services redlabteam_helpers.array: class: RedlabTeam\HelpersBundle\Service\ArrayService arguments: $logger: '@logger' $debug: '%redlabteam_helpers_debug%' $noticeFailure: '%redlabteam_helpers_notice_failure%' RedlabTeam\HelpersBundle\Service\ArrayService: '@redlabteam_helpers.array' redlabteam_helpers.date: class: RedlabTeam\HelpersBundle\Service\DateService arguments: $logger: '@logger' $debug: '%redlabteam_helpers_debug%' $noticeFailure: '%redlabteam_helpers_notice_failure%' RedlabTeam\HelpersBundle\Service\DateService: '@redlabteam_helpers.date' redlabteam_helpers.json: class: RedlabTeam\HelpersBundle\Service\JsonService arguments: $logger: '@logger' $debug: '%redlabteam_helpers_debug%' $noticeFailure: '%redlabteam_helpers_notice_failure%' RedlabTeam\HelpersBundle\Service\JsonService: '@redlabteam_helpers.json' redlabteam_helpers.string: class: RedlabTeam\HelpersBundle\Service\StringService arguments: $logger: '@logger' $debug: '%redlabteam_helpers_debug%' $noticeFailure: '%redlabteam_helpers_notice_failure%' RedlabTeam\HelpersBundle\Service\StringService: '@redlabteam_helpers.string'
License
This package is released under the MIT License. See the LICENSE file for more details.