2017 © Pedro Peláez
 

symfony-bundle plumbok-bundle

Symfony Plumbok Bundle

image

mjkruszewski/plumbok-bundle

Symfony Plumbok Bundle

  • Friday, July 13, 2018
  • by MJKruszewski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Plumbok bundle

This library is implementation of Plumbok (PHP version of lombok) as Symfony bundle, (*1)

Library allows to use java like annotations which will allow user to provide more readable and cleaner code., (*2)

Requirements: * PHP 7.1 * Symfony 4.0 <, (*3)

Installation, (*4)

composer require mjkruszewski/plumbok-bundle, (*5)

Create config in Symfony:, (*6)

%Symfony.Project.Path%/config/packages/plumbok.yaml, (*7)

Add entries to it as:, (*8)

plumbok:
    dir: '%kernel.cache_dir%/plumbok'
    namespaces: [
      'App\Entity',
      'App\Exceptions',
      'App\Controller\Dto'
      ]

Change configuration for doctrine entries:, (*9)

doctrine:
    orm:
        auto_generate_proxy_classes: true
        naming_strategy: doctrine.orm.naming_strategy.underscore
        auto_mapping: true
        mappings:
            App:
                is_bundle: false
                type: annotation
                #CHANGE BELOW PATH TO CACHE DIR
                dir: '%kernel.cache_dir%/plumbok'
                #########
                prefix: 'App\Entity'
                alias: App

  • Dir field is not required
  • Namespaces from src/* catalogue under symfony project

Project Maintainers

  • Maciej Kruszewski

Annotations

  • Property Annotations, (*10)

    • @ToString
    • @Getter
    • @Setter
  • Class Annotations, (*11)

    • @AllArgsConstructor
    • @RequiredArgsConstructor
    • @NoArgsConstructor
    • @Data
    • @Value
    • @EqualTo

The Versions

13/07 2018

dev-master

9999999-dev https://github.com/MJKruszewski/plumbok-bundle

Symfony Plumbok Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maciej Kruszewski

bundle symfony plumbok lombok

13/07 2018

1.0.1

1.0.1.0 https://github.com/MJKruszewski/plumbok-bundle

Symfony Plumbok Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maciej Kruszewski

bundle symfony plumbok lombok

08/07 2018

1.0

1.0.0.0 https://github.com/MJKruszewski/plumbok-bundle

Symfony Plumbok Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maciej Kruszewski

bundle symfony plumbok lombok