Add Composer autoloading functions and PHPStan for testing

This commit is contained in:
Alex Cabal 2019-02-26 13:03:45 -06:00
parent e198c4db65
commit f5d7d4e02a
1518 changed files with 169063 additions and 30 deletions

View file

@ -43,6 +43,18 @@ Youll also need to ensure the following:
The website pulls all ebook information from what is contained in `/standardebooks.org/www/ebooks/`. It does not inspect `/standardebooks.org/ebooks/`. Therefore it is possible for one or the other to hold different catalogs if they become out of sync.
# Testing
This repository includes [PHPStan](https://github.com/phpstan/phpstan) to statically analyze the codebase.
To run PHPStan, execute:
```shell
$> <REPO-ROOT>/vendor/bin/phpstan analyse -c <REPO-ROOT>/config/phpstan/phpstan.neon
```
If run successfully, it should output `[OK] No errors`.
# Contributing
Before submitting design contributions, please discuss them with the Standard Ebooks lead. While we encourage discussion and contributions, we cant guarantee that unsoliticed design contributions will be accepted. You can open an issue to discuss potential design contributions with us before you begin.