Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roots/wp-blade-check
Checks and displays an admin notice if your uncompiled Blade templates are publicly accessible
https://github.com/roots/wp-blade-check
blade sage
Last synced: 3 months ago
JSON representation
Checks and displays an admin notice if your uncompiled Blade templates are publicly accessible
- Host: GitHub
- URL: https://github.com/roots/wp-blade-check
- Owner: roots
- License: mit
- Created: 2019-03-22T17:40:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T08:43:09.000Z (over 5 years ago)
- Last Synced: 2024-07-08T00:24:01.745Z (4 months ago)
- Topics: blade, sage
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 16
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WP Blade Check
[![Packagist](https://img.shields.io/packagist/v/roots/wp-blade-check.svg?style=flat-square)](https://packagist.org/packages/roots/wp-blade-check)
[![Packagist Downloads](https://img.shields.io/packagist/dt/roots/wp-blade-check.svg?style=flat-square)](https://packagist.org/packages/roots/wp-blade-check)WP Blade Check is a simple Composer package that checks and displays an admin notice if your uncompiled Blade templates are publicly accessible. This is a sign of an improperly configured webserver, and for the privacy of your codebase, should be [handled accordingly](https://roots.io/sage/docs/theme-installation/). If you are using [Trellis](https://roots.io/trellis/) and/or Kinsta, this is already done for you.
## Installation
Install via Composer:
```sh
$ composer require roots/wp-blade-check
```## Configuration
No configuration is needed, but you can pass a few optional settings through the `roots.blade.check` filter such as permanently hiding the notice or adding more file extensions to check against such as `.twig`.
```php
add_filter('roots.blade.check', function () {
return [
'hide' => false, // Setting to true will permanently hide the notice.
'duration' => 60 * 60 * 24, // Duration between checking against the extensions.
'extensions' => ['blade.php', 'twig'] // An array or string containing the extensions to check against.
];
});
```## Contributing
Contributions are welcome from everyone. We have [contributing guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.
## Community
Keep track of development and community news.
* Participate on the [Roots Discourse](https://discourse.roots.io/)
* Follow [@rootswp on Twitter](https://twitter.com/rootswp)
* Read and subscribe to the [Roots Blog](https://roots.io/blog/)
* Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)
* Listen to the [Roots Radio podcast](https://roots.io/podcast/)