Weave Code
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.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
0.8.5:

Normalization from float to double, thanks to @ItsKelsBoys

0.8.4:

Thanks to @roukmoute for adding PHP 7.2 support

0.8.3:

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

0.8.2:

Using phpspec 4.0 stable, thanks to @arn0d

0.8.1:

Using Memio 2.0, thanks to @arn0d

0.8.0:

Upgraded phpspec to v4.0@rc, meaning:

  • phpspec v2 and v3 support was dropped
0.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
0.6.2:

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

0.6.0,

BC Break: since phpspec 3.0@beta2, registering extensions in phpspec.yml is done as follow:

extensions:
    Memio\SpecGen\MemioSpecGenExtension: ~

Note: 0.6.0 is actually the same as 0.5.0, due to a git tagging typo.

0.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
0.4.1:
  • added support for PHP 7
  • added support for Symfony 3
0.4.0:
  • object arguments will now be typehinted against their interface
  • object arguments will now be named after their interface (without Interface suffix)
0.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
0.2.0:
  • use statement insertion (for each object argument)
0.10.1:

Upgraded requirements:

  • phpspec 6.3
  • PHP 7.2 to PHP 8.0
0.10.0:

Upgraded requirements:

  • Symfony 5
  • phpspec 6.1
  • PHP 7.2
0.1.1:
  • fixed Prophecy test doubles type guessing
0.1.0:
  • method generation:
    • it inserts method at the end of the class
    • it typehints object, array and callable arguments
    • it names object arguments after their type
    • it names scalar arguments after a generic name (argument)
    • it adds number on names that could collide (e.g. $argument1, $argument2)
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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor