Skip to content

Commit

Permalink
Merge pull request #63 from Quetzacoalt91/add-autoindex
Browse files Browse the repository at this point in the history
Add autoindex lib to php-dev-tools (v4 branch)
  • Loading branch information
PierreRambaud authored Jun 17, 2021
2 parents 8cef09d + 8f47d9e commit 354d5be
Show file tree
Hide file tree
Showing 3 changed files with 63 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": "^2.0"
"prestashop/header-stamp": "^2.0",
"prestashop/autoindex": "^2.0"
},
"conflict": {
"friendsofphp/php-cs-fixer": "2.18.3"
Expand Down
54 changes: 52 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 354d5be

Please sign in to comment.