Skip to content

Commit

Permalink
Add autoindex lib to php-dev-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Jun 10, 2021
1 parent ed7af69 commit e5e5f2d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,7 @@ Related packages:

* [friendsofphp/php-cs-fixer](http://github.com/FriendsOfPHP/PHP-CS-Fixer)
* [phpstan/phpstan](https://github.com/phpstan/phpstan)
* [prestashop/autoindex](https://github.com/PrestaShopCorp/autoindex)
* [prestashop/header-stamp](https://github.com/PrestaShopCorp/header-stamp)


Expand Down Expand Up @@ -66,6 +67,14 @@ Otherwise, you can specify the path to the PHPStan binary. For instance:
$ _PS_ROOT_DIR_=<Path_to_PrestaShop> php ~/.composer/vendor/bin/phpstan.phar --configuration=tests/phpstan/phpstan.neon analyse <path1 [path2 [...]]>
```

### Autoindex

Applying an index.php file to all your project subfolders will be useful to avoid directories to be listed by the webserver.

```php
$ vendor/bin/autoindex
```

### Header Stamp

Your license headers can be updated by applying the header stamp.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -8,7 +8,8 @@
"friendsofphp/php-cs-fixer": "^2.14",
"squizlabs/php_codesniffer": "^3.4",
"symfony/filesystem": "~3.2 || ~4.0 || ~5.0",
"prestashop/header-stamp": "^1.0"
"prestashop/header-stamp": "^1.0",
"prestashop/autoindex": "^1.0"
},
"conflict": {
"friendsofphp/php-cs-fixer": "2.18.3"
Expand Down
50 changes: 48 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5e5f2d

Please sign in to comment.