2017 © Pedro Peláez
 

library lom

lombok style code generator for php

image

raphaelscheinkoenig/lom

lombok style code generator for php

  • Tuesday, June 13, 2017
  • by RaphaelScheinkoenig
  • Repository
  • 0 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Lom

for php code generator
Scrutinizer Code Quality Build Status Coverage Status StyleCI
SensioLabsInsight, (*1)

install

$ composer require ytake/lom --dev  

usage

generate command, (*2)

$ vendor/bin/lom generate [scan target dir] 

feature

@Data Annotation


use Ytake\Lom\Meta\Data; /** * Class DataAnnotation * @Data */ class DataAnnotation { /** * @var string $message */ protected $message; /** * @var string $testing */ protected $testing; }

after, (*3)


use Ytake\Lom\Meta\Data; /** * Class DataAnnotation * @Data */ class DataAnnotation { /** * @var string $message */ protected $message; public function getMessage() { return $this->message; } public function setMessage($message) { $this->message = $message; } }

@NoArgsConstructor Annotation


use Ytake\Lom\Meta\NoArgsConstructor; /** * Class DataAnnotation * @NoArgsConstructor */ class DataAnnotation { public function __construct($message) { $this->message = $message; } }

after, (*4)


use Ytake\Lom\Meta\NoArgsConstructor; /** * Class DataAnnotation * @NoArgsConstructor */ class DataAnnotation { }

@AllArgsConstructor Annotation


use Ytake\Lom\Meta\AllArgsConstructor; /** * Class DataAnnotation * @AllArgsConstructor */ class DataAnnotation { protected $arg1; protected $arg2; }

after, (*5)


use Ytake\Lom\Meta\AllArgsConstructor; /** * Class DataAnnotation * @AllArgsConstructor */ class DataAnnotation { protected $arg1; protected $arg2; public function __construct($arg1, $arg2) { $this->arg1 = $arg1; $this->arg2 = $arg2; } }

@Getter/@Setter Annotation

@Value Annotation

The Versions

13/06 2017

dev-RaphaelSchein-patch-1

dev-RaphaelSchein-patch-1

lombok style code generator for php

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuuki Takezawa

boilerplate application