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

Model Laravel Package

memio/model

Memio Model provides PHP objects to describe code structures (classes, interfaces, methods, properties, parameters, types and namespaces). Use it to build an in-memory representation of PHP code for analysis, tooling, or code generation workflows.

View on GitHub
Deep Wiki
Context7
v4.0.0-alpha2

Dropped support for PHP <8.0

New features:

  • added Attribute model (PHP 8.0 attributes)
  • added attributes support to Objekt, Contract, Method, Property, Argument and Constant
  • added union type support in Type (e.g. string|int, DateTime|null)
  • added mixed type hint support in Type
  • added support for class property types
  • added constructor property promotion support (visibility on Argument)
  • added support for nullable typehints
v4.0.0-alpha1

Dropped support for PHP <7.4

New features:

  • added support for class property types
  • added support for nullable typehints
v3.0.3
  • setup Github Actions
  • changed tooling from scripts to Makefile
  • installed phpstan as a dev depdendency
  • installed swiss-knife as a dev depdendency
  • installed rector as a dev depdendency
  • upgraded PHP CS fixer to v2.19.3
  • dockerized for local development
v3.0.2

ignore

v3.0.1
  • added PHP 8 support
  • added phpspec 7 support
v3.0.0

Dropped support for PHP <7.2

Other upgrades:

  • upgraded PHP CS Fixer (from 2.10 to 2.16)
  • upgraded phpspec (from 4.3 to 6.1)

BC Breaks - removed deprecated api:

  • removed all make static constructors
2.0.4

Normalization from float to double, thanks to @ItsKelsBoys

2.0.3
v2.0.1

Added support for PHP 7.2, thanks to @roukmoute

BC break: Object has be renamed to Objekt, has it is a reserved keyword.

v2.0.0
v2.0.0-alpha3
  • added return type hints
v2.0.0-alpha2
  • fixed PHPdoc return type hints
v2.0.0-alpha1

Dropped support for PHP < 7.

This means we now can use:

  • scalar type hints
  • return type hints
  • callable type hint, without having to check PHP version

All make static constructor were created for PHP < 5.6, they're now deprecated. Here's an example of what to use instead:

(new Method('sayHello'))
    ->addArgument(new Argument('string', 'name')))
;
v1.4.1
  • reverted the FQCN change
v1.4.0
  • improve FullyQualifiedName according to PHP Name resolution rules
  • added support for PHP 7
v1.3.5
  • used [@return](https://github.com/return) self
  • used Object[] when dealing with collections of objects
v1.3.4
  • fixed PHPdoc
v1.3.3
  • removed SpecGen to fix dependency cycles
  • fixed CS
v1.3.2
  • fixed ParameterTag#make
v1.3.1
  • replaced phpspec extension with SpecGen
v1.3.0
  • changed Argument.type to be a Fully Qualified Class Name
v1.2.0
  • added return PHPdoc tag
  • added throws PHPdoc tag
v1.1.0
  • integer, boolean and NULL will be normalized to int, bool and null
v1.0.1
  • fixed typos in documentation
v1.0.0
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