Download the PHP package saritasa/blade-directives without Composer
On this page you can find all versions of the php package saritasa/blade-directives. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package blade-directives
PHP Blade Directives
Custom Blade directives for Laravel Applications.
See https://laravel.com/docs/blade
Laravel 5.x
Install the package:
If you use Laravel 5.4 or less,
or 5.5+ with package discovery disabled,
add the BladeDirectivesServiceProvider service provider config/app.php
:
Available directives
@activeIfRoute(routeName)
Output word 'active' if URL, requested by user, matches provided route name
Example:
@selectedIf(expression)
Output word 'selected' if passed expression evaluates to true
Example:
Contributing
- Create fork, checkout it
- Develop locally as usual. Code must follow PSR-1, PSR-2 - run PHP_CodeSniffer to ensure, that code follows style guides
- Update README.md to describe new or changed functionality
- Add changes description to Semantic Versioning convention to determine next version number.
- When ready, create pull request
Make shortcuts
If you have GNU Make installed, you can use following shortcuts:
- (instead of ) - run static code analysis with PHP_CodeSniffer to check code style
- (instead of ) - fix code style violations with PHP_CodeSniffer automatically, where possible (ex. PSR-2 code formatting violations)
-
- instead of
- or just without parameters - invokes described above install, cs tasks sequentially - project will be assembled and checked with linter with one single command
Resources
- Bug Tracker
- Code
- Changes History
- Authors
All versions of blade-directives with dependencies
PHP Build Version
Package Version
The package saritasa/blade-directives contains the following files
Loading the files please wait ....