-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
102 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,52 @@ | ||
# Mate | ||
|
||
Your functional programming helper. | ||
[![Build Status](https://travis-ci.org/webNeat/mate.svg?branch=master)](https://travis-ci.org/webNeat/mate) | ||
[![Coverage Status](https://coveralls.io/repos/github/webNeat/mate/badge.svg?branch=master)](https://coveralls.io/github/webNeat/mate?branch=master) | ||
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/webneat) | ||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/webNeat/mate/blob/master/LICENSE) | ||
|
||
# What is Mate? | ||
|
||
**Mate** is a tool to generate documentation and tests from PHPDoc comments for functional libraries. | ||
|
||
> What is a PHPDoc comment? | ||
it's a comment like | ||
|
||
```php | ||
/** | ||
* Description here. | ||
* @tag value | ||
* @other-tag some other value | ||
*/ | ||
``` | ||
|
||
> Ok, and what do you mean by "functional library"? | ||
I mean a group of [pure functoions](https://en.wikipedia.org/wiki/Pure_function) and type definitions. Testing pure functions is easy and can be done inside a comment. Testing a function which has side effects or a class that alters its internal state would be complicated and is not part of Mate features (yet?). | ||
|
||
> Hmm, so you mean that I can't use Mate if my project contains classes or non-pure functions? | ||
You can use Mate on any project to generate documentation and tests for your pure functions. This will not influence other parts of your project. Mate can also be used to watch changes on your source files and run `phpunit` whenever a file changes. | ||
|
||
# Requirements | ||
|
||
- PHP 7.1+ | ||
|
||
# Installation | ||
|
||
Install it globally | ||
|
||
``` | ||
composer global require wn/mate | ||
``` | ||
|
||
and/or as a dev dependency | ||
|
||
``` | ||
composer require wn/mate --dev | ||
``` | ||
|
||
# Getting Started | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"files":{"\/home\/webneat\/workspace\/projects\/mate\/src\/common.php":"18832394","\/home\/webneat\/workspace\/projects\/mate\/src\/doc.php":"1db85edc","\/home\/webneat\/workspace\/projects\/mate\/src\/parse.php":"d6edd445","\/home\/webneat\/workspace\/projects\/mate\/src\/render.php":"ca386b19","\/home\/webneat\/workspace\/projects\/mate\/src\/test.php":"015b5be1","\/home\/webneat\/workspace\/projects\/mate\/src\/classes\/MateCommand.php":"9ed3d4b5","\/home\/webneat\/workspace\/projects\/mate\/src\/classes\/TestCase.php":"37226420","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Block.php":"9cd83fb2","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Config.php":"8de82492","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Doc.php":"d863c18f","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/File.php":"ec3668e3","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionBlock.php":"9258ee3f","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionDoc.php":"7947baae","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionTest.php":"94bc6bc7","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Module.php":"3459f54c","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Parameter.php":"8bbd8f90","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Tag.php":"3a306237","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Test.php":"72eb0187","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeBlock.php":"de56c2f4","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeDoc.php":"f74091f5","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/UnknownBlock.php":"72e597a0","\/home\/webneat\/workspace\/projects\/mate\/src\/sample.php":"01a0b8b2"},"modules":{"\/home\/webneat\/workspace\/projects\/mate\/src\/common.php":"2fb83deb","\/home\/webneat\/workspace\/projects\/mate\/src\/doc.php":"cfc1d651","\/home\/webneat\/workspace\/projects\/mate\/src\/parse.php":"e3d25da4","\/home\/webneat\/workspace\/projects\/mate\/src\/test.php":"226ffed0","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Block.php":"97d2a56e","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Config.php":"20460810","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Doc.php":"4a0a2daa","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/File.php":"653cc010","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionBlock.php":"1f4b5e77","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionDoc.php":"09af0d57","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionTest.php":"a83ac59b","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Module.php":"5ab158bf","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Parameter.php":"b593e72c","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Tag.php":"8eccbf3a","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Test.php":"dbb6742f","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeBlock.php":"c1e93663","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeDoc.php":"3a81e9ea","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/UnknownBlock.php":"bd173a7d","\/home\/webneat\/workspace\/projects\/mate\/src\/_types.php":"39c2e6ce","\/home\/webneat\/workspace\/projects\/mate\/src\/sample.php":"7efdc011"}} | ||
{"files":[],"modules":{"\/home\/webneat\/workspace\/projects\/mate\/src\/common.php":"df2b3a2c","\/home\/webneat\/workspace\/projects\/mate\/src\/doc.php":"0e95d477","\/home\/webneat\/workspace\/projects\/mate\/src\/parse.php":"e31955fb","\/home\/webneat\/workspace\/projects\/mate\/src\/test.php":"3bcefced","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Block.php":"0275a392","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Config.php":"7c450622","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Doc.php":"938d2bd2","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/File.php":"814fbe38","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionBlock.php":"acee5c9f","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionDoc.php":"6d710b7f","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/FunctionTest.php":"8925c3c3","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Module.php":"24a156e7","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Parameter.php":"6f51e554","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Tag.php":"b32dbd62","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/Test.php":"ae137257","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeBlock.php":"b8b2348b","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/TypeDoc.php":"dee4e812","\/home\/webneat\/workspace\/projects\/mate\/src\/types\/UnknownBlock.php":"8cea38a5","\/home\/webneat\/workspace\/projects\/mate\/src\/_types.php":"06d7df6a"}} |
Oops, something went wrong.