Skip to content

Commit 35a5db2

Browse files
committed
Implemented version 2
1 parent 5dd78af commit 35a5db2

File tree

109 files changed

+3235
-5365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3235
-5365
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
phpunit.xml
2-
vendor/
3-
composer.phar
1+
bin
2+
vendor
43
composer.lock

.travis.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
language: php
22

33
php:
4-
- "5.3"
5-
- "5.4"
6-
- "5.5"
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
78
- hhvm
89

9-
before_install:
10-
- composer self-update
11-
1210
before_script:
13-
- composer install --dev --no-interaction
14-
- mkdir -p build/logs
11+
- composer --prefer-source --dev install
1512

1613
script:
17-
- phpunit --coverage-clover build/logs/clover.xml
18-
19-
after_script:
20-
- php vendor/bin/coveralls -v
14+
- php bin/phpspec run

CONTRIBUTING.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
# Petrinet
22

3-
This framework allows to create, vizualize and execute Petrinets.
3+
[![Build Status](https://travis-ci.org/florianv/swap.svg?branch=master)](https://travis-ci.org/florianv/petrinet)
4+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/4a15ed6f-09d8-4678-bd49-629b4c1c1251/mini.png)](https://insight.sensiolabs.com/projects/4a15ed6f-09d8-4678-bd49-629b4c1c1251)
5+
[![Total Downloads](http://img.shields.io/packagist/dt/florianv/petrinet.svg)](https://packagist.org/packages/florianv/petrinet)
6+
[![License](http://img.shields.io/packagist/l/florianv/petrinet.svg)](https://packagist.org/packages/florianv/petrinet)
47

5-
[![Build Status](https://secure.travis-ci.org/florianv/petrinet.png)](https://travis-ci.org/florianv/petrinet)
6-
[![Coverage Status](https://coveralls.io/repos/florianv/petrinet/badge.png)](https://coveralls.io/r/florianv/petrinet)
7-
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/16f7c4d1-7448-463d-b68a-61429a8202c3/mini.png)](https://insight.sensiolabs.com/projects/16f7c4d1-7448-463d-b68a-61429a8202c3)
8-
[![Latest Stable Version](https://poser.pugx.org/florianv/petrinet/v/stable.png)](https://packagist.org/packages/florianv/petrinet)
9-
[![Latest Unstable Version](https://poser.pugx.org/florianv/petrinet/v/unstable.png)](https://packagist.org/packages/florianv/petrinet)
10-
[![Total Downloads](https://poser.pugx.org/florianv/petrinet/downloads.png)](https://packagist.org/packages/florianv/petrinet)
11-
[![License](https://poser.pugx.org/florianv/petrinet/license.png)](https://packagist.org/packages/florianv/petrinet)
12-
13-
## Requirements
14-
15-
Petrinet requires PHP 5.3.3+.
8+
This framework allows to build, vizualize and execute [Petrinets](http://en.wikipedia.org/wiki/Petri_net)
9+
which can be used to build workflow engines. It provides the core domain model of basic Petrinets that can be persisted
10+
using your favorite ORM as well as services to manage its execution.
1611

1712
## Installation
1813

19-
Petrinet is installable via [Composer](http://getcomposer.org/).
14+
The recommended way to install Petrinet is via [Composer](https://getcomposer.org).
15+
16+
Add this line to your `composer.json` file:
2017

2118
```json
2219
{
2320
"require": {
24-
"florianv/petrinet": "~1.0"
21+
"florianv/petrinet": "~2.0"
2522
}
2623
}
2724
```
2825

29-
## Documentation
26+
Tell Composer to update the dependency by running:
3027

31-
The documentation is available [here](https://github.com/florianv/petrinet/blob/master/docs/documentation.md).
28+
```bash
29+
$ php composer.phar update florianv/petrinet
30+
```
31+
32+
## Documentation
3233

33-
## Contributing
34+
[Read the documentation for master](https://github.com/florianv/petrinet/blob/master/docs/documentation.md)
3435

35-
The contribution guide is available [here](https://github.com/florianv/petrinet/blob/master/CONTRIBUTING.md).
36+
[Read the documentation for the 1.0 version](https://github.com/florianv/petrinet/blob/1.0/docs/documentation.md)
3637

3738
## License
3839

39-
[MIT](https://github.com/florianv/petrinet/blob/master/LICENSE).
40+
[MIT](https://github.com/florianv/petrinet/blob/master/LICENSE)

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "florianv/petrinet",
33
"type": "library",
4-
"description": "A Petrinet PHP framework",
4+
"description": "Petrinet framework for PHP 5.3+",
55
"keywords": ["petrinet", "workflow"],
66
"homepage": "https://github.com/florianv/petrinet",
77
"license": "MIT",
@@ -14,16 +14,19 @@
1414
],
1515
"require": {
1616
"php": ">=5.3.3",
17-
"symfony/event-dispatcher": "~2.0"
17+
"doctrine/common": "~2.0"
1818
},
1919
"require-dev": {
20-
"satooshi/php-coveralls": "dev-master"
20+
"phpspec/phpspec": "2.0.*@dev"
2121
},
2222
"autoload": {
2323
"psr-0": {
2424
"Petrinet\\": "src/"
2525
}
2626
},
27+
"config": {
28+
"bin-dir": "bin"
29+
},
2730
"extra": {
2831
"branch-alias": {
2932
"dev-master": "2.0-dev"

0 commit comments

Comments
 (0)