All Notable changes to tamtamchik/simple-flash will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
Breaking Changes!
- Replaced stalled CSS frameworks with modern actively maintained alternatives.
- Fomantic UI template (replaces Semantic UI).
- Cirrus CSS template (replaces Spectre.css).
- Vanilla Framework template (replaces Halfmoon).
- Beer CSS template (replaces Materialize).
- New shortcut display methods:
flash()->displayFomantic(...)flash()->displayCirrus(...)flash()->displayVanilla(...)flash()->displayBeercss(...)
- Root-level devcontainer configuration (PHP 8.4).
- Updated CDN versions for all active frameworks:
- Bootstrap 5.3.0-alpha1 → 5.3.8
- Bulma 0.9.4 → 1.0.4
- Foundation 6.7.5 → 6.9.0
- Primer 20.8.0 → 21.1.1
- UIKit 3.15.22 → 3.23.13
Templates::SEMANTICconstant andSemanticTemplateclass.Templates::SPECTREconstant andSpectreTemplateclass.Templates::HALFMOONconstant andHalfmoonTemplateclass.Templates::MATERIALIZEconstant andMaterializeTemplateclass.- Shortcut methods:
displaySemantic(),displaySpectre(),displayHalfmoon(),displayMaterialize().
- PHP 8.4 support (#17) added.
- Integration with Devcontainers for local development.
- Build and tests CI processed moved to scrutinizer.
Breaking Changes!
- Minimum PHP version is now 7.3.
- Function
flash()is now namespaced:Tamtamchik\NameCase\flash.
- Halfmoon alerts added.
- New optional property for framework for display method.
flash()->display(..., Templates::TAILWIND)
- Shortcut methods for displaying alerts with framework templates:
flash()->displayBootstrap(...)flash()->displayFoundation(...)flash()->displayBulma(...)flash()->displayMaterialize(...)flash()->displayTailwind(...)flash()->displayPrimer(...)flash()->displayUikit(...)flash()->displaySemantic(...)flash()->displaySpectre(...)flash()->displayHalfmoon(...)
flash()->hasMessages(...)is deprecated. Useflash()->some(...)instead.
- PHP 8 support.
- Only latest versions of the frameworks are now supported.
- Discontinued support for:
- Bootstrap 3
- Foundation 5
- UIKit 2
- Siimple 1 & Siimple 2
Templates::BASEnow points toTemplates::BOOTSTRAP(version 4).- Renamed presets:
Templates::BOOTSTRAP_4→Templates::BOOTSTRAPTemplates::FOUNDATION_6→Templates::FOUNDATIONTemplates::UIKIT_3→Templates::UIKITTemplates::SEMANTIC_2→Templates::SEMANTICTemplates::SIIMPLE_3→Templates::SIIMPLE
- Renamed classes:
src/Templates/Bootstrap4Template.php→src/Templates/BootstrapTemplate.phpsrc/Templates/Foundation6Template.php→src/Templates/FoundationTemplate.phpsrc/Templates/Semantic2Template.php→src/Templates/SemanticTemplate.phpsrc/Templates/Uikit3Template.php→src/Templates/UikitTemplate.phpsrc/Templates/Siimple3Template.php→src/Templates/SiimpleTemplate.php
- Removed classes:
src/Templates/Bootstrap3Template.phpsrc/Templates/Foundation5Template.phpsrc/Templates/Uikit2Template.phpsrc/Templates/Siimple2Template.phpsrc/Templates/SiimpleTemplate.php
- All framework templates updated to be compatible with latest versions of frameworks.
- Materialize alerts added.
- Spectre.css alerts added.
- Tailwind alerts added.
- Bulma alerts added.
- Bootstrap template fixed.
- Siimple alerts added.
- Removed
FlashInterface. It was causing troubles.
- Removed
FlashInterface. It was causing troubles.
FlashInterface
- Templates
- Don't allow instantiation
- Bumped version to 1.0.0
- Support for array as
$messagevariable.
- Singleton instance.
- Empty
$messagebug.
- New namespace
\Tamtamchik\SimpleFlash\Flash.
- Old namespace
\Tamtamchik\Flash\Flash.
- Initial version