Download the PHP package memio/model without Composer
On this page you can find all versions of the php package memio/model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package model
Short Description Memio's models, used to describe the code to generate
License MIT
Homepage http://memio.github.io/memio
Informations about the package model
Memio's Models
Describe PHP code (classes/interfaces with their constants, properties, methods, method arguments and even PHPdoc) by constructing "Model" objects.
Note: This package is part of Memio, a highly opinionated PHP code generator. Have a look at the main repository.
Installation
Install it using Composer:
composer require memio/model:^3.0
Example
Let's say we want to describe the following method:
In order to do so, we'd need to write the following:
Usually models aren't described manually like this, they would be built dynamically:
We can build dynamically the models using a configuration file, user input, existing source code... Possibilities are endless!
Once built these models can be further tweaked, and converted to another format: an array, source code, etc... Again, the possibilities are endless!
Have a look at the main respository to discover the full power of Medio.
Want to know more?
Memio uses phpspec, which means the tests also provide the documentation. Not convinced? Then clone this repository and run the following commands:
composer install
./vendor/bin/phpspec run -n -f pretty
You can see the current and past versions using one of the following:
- the
git tag
command - the releases page on Github
- the file listing the changes between versions
And finally some meta documentation:
- copyright and MIT license
- versioning and branching models
- contribution instructions
Roadmap
- get rid of
Type
- extract
Import
(use statement) fromFullyQualifiedName
- get rid of
FullyQualifiedName
- support more PHPdoc stuff
- support annotations