Skip to content

Commit

Permalink
Merge pull request #62 from Quetzacoalt91/add-autoindex-v3
Browse files Browse the repository at this point in the history
Add autoindex lib to php-dev-tools (v3 branch)
  • Loading branch information
PierreRambaud authored Jun 22, 2021
2 parents ed7af69 + e5e5f2d commit 578bffb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 578bffb

Please sign in to comment.