Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Spec Gen Laravel Package

memio/spec-gen

Memio SpecGen is a PhpSpec extension that auto-generates constructors and methods from your specs, adding type-hinted arguments, sensible variable names, collision-safe numbering, and constructor properties/assignments.

View on GitHub
Deep Wiki
Context7
0.10.1

Upgraded requirements:

  • phpspec 6.3
  • PHP 7.2 to PHP 8.0
v0.10.0

Upgraded to:

  • Symfony 5
  • phpspec 6.1
  • PHP 7.2
0.9.0

Upgraded phpspec to v5.0@rc, meaning:

  • phpspec v4 support was dropped
  • PHP 7.0 support was dropped
  • Symfony 2.7, 3.0, 3.1, 3.2 and 3.3 was dropped
  • added usage of void return type
  • added usage of constant visibility
v0.8.5

Normalization from float to double, thanks to @ItsKelsBoys

v0.8.4

Thanks to @roukmoute for adding PHP 7.2 support

v0.8.3

Marked float as being a non object type, thanks to @aRn0D

v0.8.2

Using phpspec 4.0 stable, thanks to @aRn0D

v0.8.1

Using Memio 2.0, thanks to @aRn0D

v0.8.0

Upgraded phpspec to v4.0@rc, meaning:

  • phpspec v2 and v3 support was dropped
v0.7.0

Upgraded Memio to v2.0@alpha, meaning:

  • PHP 5 support was dropped
  • scalar arguments now get type hinted
  • maximum method argument line length changed from 120 to 80
  • opening curly brace changed to be on the same line as the method closing parenthesis, when arguments are on many lines
  • properties changed to not have empty lines between them, except if they have PHPdoc
v0.6.2

Constructor generator wasn't registered as a generator in phpspec 3, du to a missing DI tag.

v0.6.1

The branch with the change wasn't merged in the last release (small incident).

v0.6.0
v0.5.0

Due to phpspec sharing some common dependencies with SpecGen:

  • dropped support for PHP < 5.6
  • dropped support for Symfony Event Dispatcher < 2.7
v0.4.1
  • added support for PHP 7
  • added support for Symfony 3
v0.4.0
  • object arguments will now be typehinted against their interface
  • object arguments will now be named after their interface (without Interface suffix)
v0.3.0
  • constructor generation, same as method except:
    • it inserts constructor at the begining of the class
    • it inserts properties with initialization for each constructor arguments
v0.2.0
  • added insertion of use statements (for each object argument)
v0.1.1
  • fixed Prophecy test doubles type guessing
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus