Skip to content

Commit

Permalink
Merge pull request #14 from Chemaclass/remove-makefile
Browse files Browse the repository at this point in the history
Add composer scripts
  • Loading branch information
Chemaclass committed Jun 19, 2020
2 parents 0da3473 + b7d4a1f commit 6d72095
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 59 deletions.
57 changes: 0 additions & 57 deletions Makefile

This file was deleted.

11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -32,10 +32,19 @@ Using composer: ```composer require chemaclass/edifact-parser```

1. Clone/Fork the project and `cd` inside the repository
2. `docker-compose up`
3. `make bash` or `docker exec -ti -u dev edifact_parser_php bash`
3. `docker exec -ti -u dev edifact_parser_php bash`
4. `composer install`
5. `php example.php`

### Composer scripts

```
composer test # execute phpunit tests
composer csfix # run php-cs-fixer fix
composer psalm # display psalm errors
composer psalm-log # generate a file with psalm suggestions
```

## Basic example

You can see a full example of usage [here](example.php).
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -40,6 +40,9 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit",
"csfix": "vendor/bin/php-cs-fixer fix",
"psalm": "vendor/bin/psalm",
"psalm-log": "vendor/bin/psalm --output-format=text --show-info=true > psalm.log"
}
}

0 comments on commit 6d72095

Please sign in to comment.