This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added PHP 8 support * Removed Scrutinizer analysis * Updated PHPCS checker and fixer norm to PSR-12 * Helpers naming breaking changes :point_right: [See the upgrade guide](/docs/upgrade-guides/from-v1-to-v2.md)
- Loading branch information
Showing
25 changed files
with
322 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,62 @@ | ||
# Changelog | ||
|
||
## [1.4.0](https://github.com/Okipa/laravel-html-helper/compare/1.4.0...1.3.2) | ||
## [2.0.0](https://github.com/Okipa/laravel-html-helper/compare/1.4.0...2.0.0) | ||
|
||
2020-11-14 | ||
|
||
* Added PHP 8 support | ||
* Removed Scrutinizer analysis | ||
* Updated PHPCS checker and fixer norm to PSR-12 | ||
* Helpers naming breaking changes | ||
|
||
:point_right: [See the upgrade guide](/docs/upgrade-guides/from-v1-to-v2.md) | ||
|
||
## [1.4.0](https://github.com/Okipa/laravel-html-helper/compare/1.3.1...1.4.0) | ||
|
||
2020-08-11 | ||
|
||
* Added support for Laravel 8. | ||
* Added support for Laravel 8 | ||
* Dropped support for Laravel 5.8 and 6 | ||
* Dropped support for PHP 7.2 and 7.3 | ||
|
||
## [1.3.1](https://github.com/Okipa/laravel-html-helper/compare/1.3.0...1.3.1) | ||
|
||
2020-03-03 | ||
|
||
* Added testing files to .gitattributes export-ignore. | ||
* Added testing files to .gitattributes export-ignore | ||
|
||
## [1.3.0](https://github.com/Okipa/laravel-html-helper/compare/1.2.0...1.3.0) | ||
|
||
2020-02-18 | ||
|
||
* Dropped support for Laravel 5.5, 5.6 and 5.7. | ||
* Added support for Laravel 7. | ||
* Dropped support for Laravel 5.5, 5.6 and 5.7 | ||
* Added support for Laravel 7 | ||
|
||
## [1.2.0](https://github.com/Okipa/laravel-html-helper/compare/1.1.1...1.2.0) | ||
|
||
2019-09-04 | ||
|
||
* Added support for Laravel 6. | ||
* Dropped support for php 7.1. | ||
* Added support for Laravel 6 | ||
* Dropped support for php 7.1 | ||
|
||
## [1.1.1](https://github.com/Okipa/laravel-html-helper/compare/1.1.0...1.1.1) | ||
|
||
2019-08-02 | ||
|
||
* Fixed `htmlAttributes()` feature which was adding a space before the returned value, even if it was supposed to be an empty space. | ||
* Fixed `html_attributes()` feature which was adding a space before the returned value, even if it was supposed to be an empty space | ||
|
||
## [1.1.0](https://github.com/Okipa/laravel-html-helper/compare/1.0.5...1.1.0) | ||
|
||
2019-08-02 | ||
|
||
* `classTag()` and `htmlAttributes()` helpers are now callable directly after a html tag : they do add a space if the helper returns something and no space if nothing is returned. | ||
* `html_classes()` and `html_attributes()` helpers are now callable directly after a html tag : they do add a space if the helper returns something and no space if nothing is returned | ||
|
||
```html | ||
<div{{ classTag(<your dynamic classes>) }}></div> | ||
<div{{ html_classes(<your dynamic classes>) }}></div> | ||
``` | ||
|
||
## [1.0.5](https://github.com/Okipa/laravel-html-helper/compare/1.1.4...1.0.5) | ||
|
||
2019-02-07 | ||
|
||
* Updated treatment to return an empty string when the classes list to return is empty. | ||
* Updated treatment to return an empty string when the classes list to return is empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Upgrade from v1 to V2 | ||
|
||
Follow the steps below to upgrade the package. | ||
|
||
## Naming changes | ||
|
||
Helpers have been renamed. Make sure you replaced all following occurrences when upgrading: | ||
* Search and replace all occurrences of `classTag(` by `html_classes(` | ||
* Search and replace all occurrences of `HtmlClassTag(` by `HtmlClasses(` | ||
* Search and replace all occurrences of `htmlAttributes(` by `html_attributes(` | ||
|
||
## See all changes | ||
|
||
See all change with the [comparison tool](https://github.com/Okipa/laravel-html-helper/compare/1.4.0...2.0.0). | ||
|
||
## Undocumented changes | ||
|
||
If you see any forgotten and undocumented change, please submit a PR to add them to this upgrade guide. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PSR2"> | ||
<description>PSR-2 validation</description> | ||
<ruleset name="PSR12"> | ||
<description>PSR-12 validation</description> | ||
<file>./src</file> | ||
<arg name="colors"></arg> | ||
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace"> | ||
<exclude-pattern>./tests/*</exclude-pattern> | ||
</rule> | ||
<rule ref="PSR2"/> | ||
<rule ref="PSR12"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.